diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-06 13:49:32 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-06 13:49:32 +0100 |
commit | e49ce1e6d726ba7d3e6f80a9608d80cab316df32 (patch) | |
tree | 3c60defa36fc6ba7c1bfa106e57eae6209f5122c /src/os | |
parent | 82b779944d2c733d1db7a63a87452d9a5654a554 (diff) |
Add support for arduino-like loop function + blinky on esp8266
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/os/main.cc b/src/os/main.cc index fff8aec..b080185 100644 --- a/src/os/main.cc +++ b/src/os/main.cc @@ -84,11 +84,16 @@ void check_command(unsigned char argc, char** argv) } */ +void loop(void) +{ + gpio.led_toggle(1); +} + int main(void) { arch.setup(); gpio.setup(); - gpio.led_on(1); + gpio.led_on(0); arch.idle_loop(); //uart_setup(); |