parent
a7a11f1f63
commit
a44e256d3d
|
@ -9,7 +9,7 @@ volatile uint8_t led;
|
|||
#define LED LED_PURPLE
|
||||
#define led_init() do { gpio_pad_dir_set(LED); } while(0);
|
||||
#define led_on() do { led = 1; gpio_data_set(LED); } while(0);
|
||||
#define led_off() do { led = 0; gpio_data_set(0); } while(0);
|
||||
#define led_off() do { led = 0; gpio_data_reset(LED); } while(0);
|
||||
|
||||
void toggle_led(void) {
|
||||
if(0 == led) {
|
||||
|
|
Loading…
Reference in New Issue