diff options
author | Jakob Odersky <jodersky@gmail.com> | 2013-02-26 16:44:22 +0100 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2013-02-26 16:44:22 +0100 |
commit | e8e5650006961593559b57176c4d2916b5c32d4e (patch) | |
tree | 4d93ffef4ba1439cec0b3f15928963ddd88cc6e7 /arduino/ace/test.ino | |
parent | a9ef6d2ce9ab5f8f7d5d7993fa281f89e756d09a (diff) | |
download | ace-e8e5650006961593559b57176c4d2916b5c32d4e.tar.gz ace-e8e5650006961593559b57176c4d2916b5c32d4e.tar.bz2 ace-e8e5650006961593559b57176c4d2916b5c32d4e.zip |
restructure c implementation directory
Diffstat (limited to 'arduino/ace/test.ino')
-rw-r--r-- | arduino/ace/test.ino | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/arduino/ace/test.ino b/arduino/ace/test.ino deleted file mode 100644 index e9df65f..0000000 --- a/arduino/ace/test.ino +++ /dev/null @@ -1,44 +0,0 @@ -#include "Arduino.h" - -#include "LiquidCrystal.h" -#include "ace.h" - -LiquidCrystal lcd(8, 9, 4, 5, 6, 11); - -#define ERR_PIN 3 - -void ace_event(message_event e, int16_t size, const uint8_t* const message) { - - if (e == 0 || e == 1) { - digitalWrite(ERR_PIN, LOW); - lcd.clear(); - for(int i = 0; i < size; ++i) { - lcd.write(message[i]); - } - } - else { - digitalWrite(ERR_PIN, HIGH); - lcd.clear(); - lcd.print(e); - } -} - -void setup() { - init_ace(115200, 20); - lcd.begin(16,2); - lcd.clear(); - lcd.print("ready"); - pinMode(ERR_PIN, OUTPUT); -} - -uint8_t i = 0; -void loop() { - - lcd.clear(); - lcd.print("|"); - - - delay(1000); - ace_send0(1, &i); - delay(1000); -} |