Browse Source
machine/i2c already uses mp_hal_get_pin_obj which points to pin_find function in order to locate correct pin object to use. The pin_find function was recently updated to also being able to locate pins based on an integer value, such that pin number can be used as argument to object constructors. This patch modfies and uniforms pin object lookup for SPI, music and pwm.pull/3137/merge
Glenn Ruben Bakke
7 years ago
committed by
Damien George
3 changed files with 7 additions and 8 deletions
Loading…
Reference in new issue