Merge branch 'master' of https://github.com/iabdalkader/micropython
This commit is contained in:
commit
439ff90959
|
@ -63,8 +63,8 @@ void led_init(void) {
|
||||||
/* Turn off LEDs */
|
/* Turn off LEDs */
|
||||||
PYB_LED_OFF(PYB_LED1_PORT, PYB_LED1_PIN);
|
PYB_LED_OFF(PYB_LED1_PORT, PYB_LED1_PIN);
|
||||||
PYB_LED_OFF(PYB_LED2_PORT, PYB_LED2_PIN);
|
PYB_LED_OFF(PYB_LED2_PORT, PYB_LED2_PIN);
|
||||||
PYB_LED_OFF(PYB_LED3_PORT, PYB_LED1_PIN);
|
PYB_LED_OFF(PYB_LED3_PORT, PYB_LED3_PIN);
|
||||||
PYB_LED_OFF(PYB_LED4_PORT, PYB_LED2_PIN);
|
PYB_LED_OFF(PYB_LED4_PORT, PYB_LED4_PIN);
|
||||||
|
|
||||||
/* Initialize LEDs */
|
/* Initialize LEDs */
|
||||||
GPIO_InitStructure.GPIO_Pin = PYB_LED1_PIN;
|
GPIO_InitStructure.GPIO_Pin = PYB_LED1_PIN;
|
||||||
|
|
16
stm/led.h
16
stm/led.h
|
@ -1,13 +1,13 @@
|
||||||
typedef enum {
|
typedef enum {
|
||||||
PYB_LED_R1 = 0,
|
PYB_LED_R1 = 1,
|
||||||
PYB_LED_R2 = 1,
|
PYB_LED_R2 = 2,
|
||||||
PYB_LED_G1 = 2,
|
PYB_LED_G1 = 3,
|
||||||
PYB_LED_G2 = 3,
|
PYB_LED_G2 = 4,
|
||||||
//STM32F4DISC
|
//STM32F4DISC
|
||||||
PYB_LED_R = 0,
|
PYB_LED_R = 1,
|
||||||
PYB_LED_G = 1,
|
PYB_LED_G = 2,
|
||||||
PYB_LED_B = 2,
|
PYB_LED_B = 3,
|
||||||
PYB_LED_O = 3,
|
PYB_LED_O = 4,
|
||||||
} pyb_led_t;
|
} pyb_led_t;
|
||||||
|
|
||||||
void led_init(void);
|
void led_init(void);
|
||||||
|
|
Loading…
Reference in New Issue