aboutsummaryrefslogtreecommitdiff
path: root/c/arduino/test.ino
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2013-02-27 15:54:06 +0100
committerJakob Odersky <jodersky@gmail.com>2013-02-27 15:54:15 +0100
commitf56af0f9e5e0665bb3f582f01f0ac18ce88ee4bb (patch)
tree606ebb87c7bc8820e407c0fde96d77d1dcebf24b /c/arduino/test.ino
parent793983ca31eb05fce655ed5877b6f3faa4577acd (diff)
downloadace-f56af0f9e5e0665bb3f582f01f0ac18ce88ee4bb.tar.gz
ace-f56af0f9e5e0665bb3f582f01f0ac18ce88ee4bb.tar.bz2
ace-f56af0f9e5e0665bb3f582f01f0ac18ce88ee4bb.zip
fix error of byte values in specification
Diffstat (limited to 'c/arduino/test.ino')
-rw-r--r--c/arduino/test.ino12
1 files changed, 4 insertions, 8 deletions
diff --git a/c/arduino/test.ino b/c/arduino/test.ino
index e9df65f..ce48712 100644
--- a/c/arduino/test.ino
+++ b/c/arduino/test.ino
@@ -13,18 +13,19 @@ void ace_event(message_event e, int16_t size, const uint8_t* const message) {
digitalWrite(ERR_PIN, LOW);
lcd.clear();
for(int i = 0; i < size; ++i) {
- lcd.write(message[i]);
+ lcd.print(message[i]);
}
}
else {
digitalWrite(ERR_PIN, HIGH);
lcd.clear();
+ lcd.print("txerr: ");
lcd.print(e);
}
}
void setup() {
- init_ace(115200, 20);
+ init_ace(9600, 200);
lcd.begin(16,2);
lcd.clear();
lcd.print("ready");
@@ -33,12 +34,7 @@ void setup() {
uint8_t i = 0;
void loop() {
-
- lcd.clear();
- lcd.print("|");
-
-
delay(1000);
+ i += 1;
ace_send0(1, &i);
- delay(1000);
}