2013-10-18 23:44:05 +01:00
|
|
|
typedef enum {
|
2014-01-06 04:41:56 +00:00
|
|
|
PYB_LED_R1 = 1,
|
|
|
|
PYB_LED_R2 = 2,
|
|
|
|
PYB_LED_G1 = 3,
|
|
|
|
PYB_LED_G2 = 4,
|
2014-01-05 17:38:41 +00:00
|
|
|
//STM32F4DISC
|
2014-01-06 04:41:56 +00:00
|
|
|
PYB_LED_R = 1,
|
|
|
|
PYB_LED_G = 2,
|
|
|
|
PYB_LED_B = 3,
|
|
|
|
PYB_LED_O = 4,
|
2013-10-18 23:44:05 +01:00
|
|
|
} pyb_led_t;
|
|
|
|
|
2013-10-23 20:39:20 +01:00
|
|
|
void led_init(void);
|
2013-10-18 23:44:05 +01:00
|
|
|
void led_state(pyb_led_t led, int state);
|
2013-10-19 14:40:54 +01:00
|
|
|
void led_toggle(pyb_led_t led);
|
2013-12-21 18:17:45 +00:00
|
|
|
|
|
|
|
mp_obj_t pyb_Led(mp_obj_t led_id);
|