aboutsummaryrefslogtreecommitdiff
path: root/examples/TinySoftWareSerial/TinySoftwareSerial.ino
diff options
context:
space:
mode:
authorSudar <sudar@sudarmuthu.com>2013-06-22 15:35:01 +0530
committerSudar <sudar@sudarmuthu.com>2013-06-22 15:35:01 +0530
commit2b75a0ddb48b8aef12d2c67089f7189cb00ceab3 (patch)
tree67c4c11b6dc018c20a06557f1042127019020616 /examples/TinySoftWareSerial/TinySoftwareSerial.ino
parente0856e51d972c1b7484f769e665ba7a680c53724 (diff)
Add Tiny SoftwareSerial example
This example shows how to use softwareSerial in a ATtiny device using the ATtiny core
Diffstat (limited to 'examples/TinySoftWareSerial/TinySoftwareSerial.ino')
-rw-r--r--examples/TinySoftWareSerial/TinySoftwareSerial.ino12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/TinySoftWareSerial/TinySoftwareSerial.ino b/examples/TinySoftWareSerial/TinySoftwareSerial.ino
new file mode 100644
index 0000000..a53e059
--- /dev/null
+++ b/examples/TinySoftWareSerial/TinySoftwareSerial.ino
@@ -0,0 +1,12 @@
+#include <SoftwareSerial.h>
+
+SoftwareSerial mySerial(3, 4); // RX, TX
+
+void setup() {
+ mySerial.begin(9600);
+}
+
+void loop() {
+ mySerial.println(millis());
+ delay(1000);
+}