diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-07-31 14:01:01 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-08-02 13:59:05 -0700 |
| commit | 168aa394dba31449cdb267444992b4f636906aaa (patch) | |
| tree | 9eb83b7feef219a49700810dddd1ac4a0c215a65 /supervisor | |
| parent | e7ae5a3070a1422cf7287f546004b12eec9d0d49 (diff) | |
Move pin struct to the peripherals library.
Its slimmed down by removing the qstr and bit packing TCC info.
The trinket m0 build actually grows by 20 bytes. The arduino zero
build shrinks by 188 bytes.
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/rgb_led_status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/supervisor/shared/rgb_led_status.c b/supervisor/shared/rgb_led_status.c index 584d021b0..aea656798 100644 --- a/supervisor/shared/rgb_led_status.c +++ b/supervisor/shared/rgb_led_status.c @@ -103,11 +103,11 @@ void rgb_led_status_init() { void reset_status_led() { #ifdef MICROPY_HW_NEOPIXEL - reset_pin(MICROPY_HW_NEOPIXEL->pin); + reset_pin(MICROPY_HW_NEOPIXEL->number); #endif #if defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK) - reset_pin(MICROPY_HW_APA102_MOSI->pin); - reset_pin(MICROPY_HW_APA102_SCK->pin); + reset_pin(MICROPY_HW_APA102_MOSI->number); + reset_pin(MICROPY_HW_APA102_SCK->number); #endif } |
