Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: app/dartino/main.c

Issue 1684433003: Add a small LED interface and demo app. (Closed) Base URL: git@github.com:domokit/sod.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: app/dartino/main.c
diff --git a/app/dartino/main.c b/app/dartino/main.c
index 44df2a42bdd733129069e7310d554025dfbfbe71..27005aa6768a83f614a498fce59d313e1dd6ec21 100644
--- a/app/dartino/main.c
+++ b/app/dartino/main.c
@@ -33,6 +33,8 @@
void SensorsInit(void);
+int change_led_status(int, int);
+
enum {
MODE_RUN,
MODE_BURN
@@ -78,6 +80,7 @@ DARTINO_EXPORT_TABLE_ENTRY("gfx_flush", gfx_flush)
DARTINO_EXPORT_TABLE_ENTRY("port_open", port_open)
DARTINO_EXPORT_TABLE_ENTRY("port_close", port_open)
DARTINO_EXPORT_TABLE_ENTRY("port_read", port_read)
+DARTINO_EXPORT_TABLE_ENTRY("led_toggle", change_led_status)
Søren Gjesse 2016/02/09 09:16:01 Why is is called led_toggle when exported? Wouldn'
herhut 2016/02/09 10:10:15 Because it is so long and these turn into strings
DARTINO_EXPORT_TABLE_END
//////////////// Port debug ///////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698