File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ void led_init(void) {
6363 /* Turn off LEDs */
6464 PYB_LED_OFF (PYB_LED1_PORT , PYB_LED1_PIN );
6565 PYB_LED_OFF (PYB_LED2_PORT , PYB_LED2_PIN );
66- PYB_LED_OFF (PYB_LED3_PORT , PYB_LED1_PIN );
67- PYB_LED_OFF (PYB_LED4_PORT , PYB_LED2_PIN );
66+ PYB_LED_OFF (PYB_LED3_PORT , PYB_LED3_PIN );
67+ PYB_LED_OFF (PYB_LED4_PORT , PYB_LED4_PIN );
6868
6969 /* Initialize LEDs */
7070 GPIO_InitStructure .GPIO_Pin = PYB_LED1_PIN ;
Original file line number Diff line number Diff line change 11typedef enum {
2- PYB_LED_R1 = 0 ,
3- PYB_LED_R2 = 1 ,
4- PYB_LED_G1 = 2 ,
5- PYB_LED_G2 = 3 ,
2+ PYB_LED_R1 = 1 ,
3+ PYB_LED_R2 = 2 ,
4+ PYB_LED_G1 = 3 ,
5+ PYB_LED_G2 = 4 ,
66 //STM32F4DISC
7- PYB_LED_R = 0 ,
8- PYB_LED_G = 1 ,
9- PYB_LED_B = 2 ,
10- PYB_LED_O = 3 ,
7+ PYB_LED_R = 1 ,
8+ PYB_LED_G = 2 ,
9+ PYB_LED_B = 3 ,
10+ PYB_LED_O = 4 ,
1111} pyb_led_t ;
1212
1313void led_init (void );
You can’t perform that action at this time.
0 commit comments