diff options
author | mux <freelancer.c@gmail.com> | 2014-01-06 06:41:56 +0200 |
---|---|---|
committer | mux <freelancer.c@gmail.com> | 2014-01-06 06:41:56 +0200 |
commit | 7c0c28dd71a66fc4028d86e5b34c85af5b32efb5 (patch) | |
tree | e65c85b7b296152d6426d62714c6e9f3bb2a3e44 /stm/led.c | |
parent | b3683abaebbb14f392edbb0772f4a96ca3d40a60 (diff) | |
download | micropython-7c0c28dd71a66fc4028d86e5b34c85af5b32efb5.tar.gz micropython-7c0c28dd71a66fc4028d86e5b34c85af5b32efb5.zip |
Fix LED pin enum
* Fix LED pin enum, first one should start at 1
* Fix LED initialization typo
Diffstat (limited to 'stm/led.c')
-rw-r--r-- | stm/led.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,8 +63,8 @@ void led_init(void) { /* Turn off LEDs */ PYB_LED_OFF(PYB_LED1_PORT, PYB_LED1_PIN); PYB_LED_OFF(PYB_LED2_PORT, PYB_LED2_PIN); - PYB_LED_OFF(PYB_LED3_PORT, PYB_LED1_PIN); - PYB_LED_OFF(PYB_LED4_PORT, PYB_LED2_PIN); + PYB_LED_OFF(PYB_LED3_PORT, PYB_LED3_PIN); + PYB_LED_OFF(PYB_LED4_PORT, PYB_LED4_PIN); /* Initialize LEDs */ GPIO_InitStructure.GPIO_Pin = PYB_LED1_PIN; |