From 0ac263a3db29d2586a0e83fe2592a9f891c9bee6 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 10 Jul 2018 03:52:09 -0700 Subject: Move example sketch to appropriately named folder This change causes the example sketch to be accessible via the Arduino IDE's File > Examples > OLEDFourBit menu after the library is installed. Reference: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#library-examples --- OLEDFourBit/examples/test/test.ino | 25 +++++++++++++++++++++++++ test.ino | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 OLEDFourBit/examples/test/test.ino delete mode 100644 test.ino diff --git a/OLEDFourBit/examples/test/test.ino b/OLEDFourBit/examples/test/test.ino new file mode 100644 index 0000000..491d9b3 --- /dev/null +++ b/OLEDFourBit/examples/test/test.ino @@ -0,0 +1,25 @@ +#include + +// see datasheet for pinouts +#define RS 12 //RegisterSelect +#define RW 10 //ReadWrite +#define E 11 //Enable +#define DB4 4 //4bit DataBus +#define DB5 5 +#define DB6 6 +#define DB7 7 + +OLEDFourBit oled(RS, RW, E, DB4, DB5, DB6, DB7); + +void setup() +{ + oled.begin(20,4); + oled.print("Hello World!"); +} + +void loop() +{ + oled.setCursor(0,1); + oled.print(millis()/1000); +} + diff --git a/test.ino b/test.ino deleted file mode 100644 index 491d9b3..0000000 --- a/test.ino +++ /dev/null @@ -1,25 +0,0 @@ -#include - -// see datasheet for pinouts -#define RS 12 //RegisterSelect -#define RW 10 //ReadWrite -#define E 11 //Enable -#define DB4 4 //4bit DataBus -#define DB5 5 -#define DB6 6 -#define DB7 7 - -OLEDFourBit oled(RS, RW, E, DB4, DB5, DB6, DB7); - -void setup() -{ - oled.begin(20,4); - oled.print("Hello World!"); -} - -void loop() -{ - oled.setCursor(0,1); - oled.print(millis()/1000); -} - -- cgit v1.2.3