X-Git-Url: http://git.harvie.cz/?p=mirrors%2FPrograms.git;a=blobdiff_plain;f=arduino%2Fexit-rum-display%2Fexit-rum-display.ino;fp=arduino%2Fexit-rum-display%2Fexit-rum-display.ino;h=0000000000000000000000000000000000000000;hp=68e420b8c009336326a0269c8c92313c4102506c;hb=de8021a10a2d637bb82fcfbf59ab419605f2ae0e;hpb=46a1695823fd4553a6f481c65b2594340d99dbc4 diff --git a/arduino/exit-rum-display/exit-rum-display.ino b/arduino/exit-rum-display/exit-rum-display.ino deleted file mode 100644 index 68e420b..0000000 --- a/arduino/exit-rum-display/exit-rum-display.ino +++ /dev/null @@ -1,44 +0,0 @@ -#include -#include -#include - -// Module connection pins (Digital Pins) -#define CLK 2 -#define DIO 3 - -TM1637Display display(CLK, DIO); - -// Set the LCD address to 0x27 for a 16 chars and 2 line display -LiquidCrystal_I2C lcd(0x3F, 16, 2); - -int i; - -void setup() -{ - // initialize the LCD - lcd.begin(); - - // Turn on the blacklight and print a message. - lcd.backlight(); - lcd.print("Rychta pyco!"); - - display.setBrightness(0x0f); - display.setColon(true); - display.showNumberDec(23); - - pinMode(8, OUTPUT); - pinMode(9, OUTPUT); - -} - -void loop() -{ - digitalWrite(8, HIGH); // turn the LED on (HIGH is the voltage level) - display.setColon(true); - display.showNumberDec(i); - delay(1000); - digitalWrite(8, LOW); // turn the LED off by making the voltage LOW - display.setColon(false); - display.showNumberDec(i++); - delay(1000); -}