summaryrefslogtreecommitdiff
path: root/robot/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'robot/main.c')
-rw-r--r--robot/main.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/robot/main.c b/robot/main.c
new file mode 100644
index 0000000..dfc8d68
--- /dev/null
+++ b/robot/main.c
@@ -0,0 +1,20 @@
+#include <pololu/orangutan.h>
+
+int main() {
+ print("Hello!");
+ play("L16 ceg>c");
+
+ while (1) {
+ red_led(0);
+ green_led(1);
+
+ delay_ms(100);
+
+ red_led(1);
+ green_led(0);
+
+ delay_ms(100);
+ }
+
+ return 0;
+}