2013-10-18 18:44:05 -04:00
|
|
|
typedef enum {
|
|
|
|
PYB_LED_R1 = 0,
|
|
|
|
PYB_LED_R2 = 1,
|
|
|
|
PYB_LED_G1 = 2,
|
|
|
|
PYB_LED_G2 = 3,
|
|
|
|
} 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
|
|
|
|
|
|
|
mp_obj_t pyb_Led(mp_obj_t led_id);
|