Skip to content

Commit fb01415

Browse files
committed
stm32/boards/PYBD_SF2: Configure LEDs as inverted, for LED.intensity().
1 parent 4b184d1 commit fb01415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/stm32/boards/PYBD_SF2/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ extern struct _spi_bdev_t spi_bdev2;
154154
#define MICROPY_HW_USRSW_PRESSED (0)
155155

156156
// LEDs
157+
#define MICROPY_HW_LED_INVERTED (1) // LEDs are on when pin is driven low
157158
#define MICROPY_HW_LED1 (pyb_pin_LED_RED)
158159
#define MICROPY_HW_LED2 (pyb_pin_LED_GREEN)
159160
#define MICROPY_HW_LED3 (pyb_pin_LED_BLUE)

0 commit comments

Comments
 (0)