Skip to content

Commit

Permalink
Add client code for 'check the attiny's version'
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Aug 16, 2016
1 parent 89ca3b3 commit 9810df5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/VersionExample/VersionExample.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <Wire.h>
#include <KeyboardioScanner.h>

KeyboardioScanner controller(0);

void setup() {
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
pinMode(7, OUTPUT);
digitalWrite(7, LOW);

Serial.begin(9600);
Wire.begin();
delay(5000);
Serial.print("Talking to an ATTiny running scanner firmware version ");
Serial.print(controller.readVersion());
Serial.println();
}

void loop() {
1;
}

0 comments on commit 9810df5

Please sign in to comment.