diff options
author | Christopher Baines <cbaines8@gmail.com> | 2011-09-07 16:38:19 +0100 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2011-09-07 16:38:19 +0100 |
commit | a09647f50841e23e4783ef8c34faa9219054234f (patch) | |
tree | 98b9b2285cbc63e12a0bdeea0ef5e2bbe23d8f99 /PunchingBag/src/Arduino.java | |
parent | 89557022d57e3d72ea9021691d70c80763fa31b6 (diff) | |
download | punchingbag-a09647f50841e23e4783ef8c34faa9219054234f.tar punchingbag-a09647f50841e23e4783ef8c34faa9219054234f.tar.gz |
More arduino stuff.
Diffstat (limited to 'PunchingBag/src/Arduino.java')
-rw-r--r-- | PunchingBag/src/Arduino.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/PunchingBag/src/Arduino.java b/PunchingBag/src/Arduino.java index f76bcf6..12df25f 100644 --- a/PunchingBag/src/Arduino.java +++ b/PunchingBag/src/Arduino.java @@ -179,5 +179,16 @@ public class Arduino implements Runnable { }
+ public void write(byte[] bytes) throws IOException {
+ out.write(bytes);
+ }
+
+ public void write(byte b) throws IOException {
+ out.write(b);
+ }
+
+ public int read() throws IOException {
+ return in.read();
+ }
}
|