summaryrefslogtreecommitdiff
path: root/robot/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-09 17:17:53 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-09 17:17:53 +0200
commit32237bc52d1dd69d60dda75ddc29bb31ce165c83 (patch)
treeaff899e8b09f7a1b66e06eb4769548ca12169557 /robot/setup.c
parentbe84308e01ecc9e8de2997ab030420b401e06596 (diff)
implement setup and hypervisor
Diffstat (limited to 'robot/setup.c')
-rw-r--r--robot/setup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/robot/setup.c b/robot/setup.c
index 0652911..10001c7 100644
--- a/robot/setup.c
+++ b/robot/setup.c
@@ -1,11 +1,21 @@
#include <pololu/orangutan.h>
+#include <stdlib.h>
#include "consts.h"
+#include "halt.h"
+#include "modes.h"
#include "setup.h"
void w2_setup_main() {
serial_set_baud_rate(W2_SERIAL_BAUD);
+ // reset underside leds
+ red_led(0);
+ green_led(0);
+
+ // clear lcd
+ clear();
+
// indicate startup done
play("L50 c>c");
}