2013-10-18 18:44:05 -04:00
|
|
|
typedef enum {
|
2014-01-21 18:28:03 -05:00
|
|
|
// PYBv3
|
2014-01-05 23:41:56 -05:00
|
|
|
PYB_LED_R1 = 1,
|
|
|
|
PYB_LED_R2 = 2,
|
|
|
|
PYB_LED_G1 = 3,
|
|
|
|
PYB_LED_G2 = 4,
|
2014-01-21 18:28:03 -05:00
|
|
|
// PYBv4
|
|
|
|
PYB_LED_RED = 1,
|
|
|
|
PYB_LED_GREEN = 2,
|
|
|
|
PYB_LED_YELLOW = 3,
|
|
|
|
PYB_LED_BLUE = 4,
|
2014-01-05 12:38:41 -05:00
|
|
|
//STM32F4DISC
|
2014-01-05 23:41:56 -05:00
|
|
|
PYB_LED_R = 1,
|
|
|
|
PYB_LED_G = 2,
|
|
|
|
PYB_LED_B = 3,
|
|
|
|
PYB_LED_O = 4,
|
2013-10-18 18:44:05 -04:00
|
|
|
} pyb_led_t;
|
|
|
|
|
2013-10-23 15:39:20 -04:00
|
|
|
void led_init(void);
|
2013-10-18 18:44:05 -04:00
|
|
|
void led_state(pyb_led_t led, int state);
|
2013-10-19 09:40:54 -04:00
|
|
|
void led_toggle(pyb_led_t led);
|
2013-12-21 13:17:45 -05:00
|
|
|
|
2014-01-21 18:28:03 -05:00
|
|
|
MP_DECLARE_CONST_FUN_OBJ(pyb_Led_obj);
|