Skip to content
Snippets Groups Projects
Commit 20dcbe3e authored by Václav Aubrecht's avatar Václav Aubrecht
Browse files

deleted some shit

parent 9fe3a870
No related branches found
No related tags found
No related merge requests found
//Toto je dementní selftest, kde půlka esenciálních informací jistě chybí
//Toto je dementní selftest, kde půlka esenciálních informací chybí
#include "LedControl.h"
//Konfigurace segmentů, protože jistý Václav Aubrecht se slepej
//Konfigurace segmentů, protože jsem slepej dement.
const int s1 = 0;
const int s2 = 1;
const int s3 = 3;
......@@ -12,11 +12,33 @@ const int s6 = 2;
const int s7 = 6;
const int s8 = 7;
//Inicializace SPI pro instanci LedControl ic
//Inicializace SPI
LedControl lc=LedControl(11, 13, 9 ,1);
unsigned long delaytime=250;
byte alldigits= B11111111;
byte A = B01110111;
byte C = B01001110;
byte b = B00011111;
byte d = B00111101;
byte E = B01001111;
byte F = B01000111;
byte G = B01011111;
byte H = B00110111;
byte I = B00110000;
byte J = B00111100;
byte L = B00001110;
byte n = B00010101;
byte O = B01111110;
byte P = B01100111;
byte r = B00000101;
byte S = B01011011;
byte t = B00001111;
byte U = B00111110;
byte v = B00011100;
byte y = B00110011;
byte Z = B01101011;
void setup() {
lc.shutdown(0,false); //Vzbuzení ICčka
......@@ -24,6 +46,28 @@ void setup() {
lc.clearDisplay(0); //Vyčištění displeje
}
/* B00000001 G
B00000010 F
B00000100 E
B00001000 D
B00010000 C
B00100000 B
B01000000 A
B10000000 DP
-----A-----
I I
F B
I I
-----G-----
I I
E C
I I
-----D-----
DP
B01001111
*/
void scrollDigits() {
//(nevim, dej tam nulu; segment; hexadecimální číslo, který to má zobrazit; false);
lc.setDigit(0,s1,6,false);
......@@ -57,8 +101,8 @@ void displayAllDigits() {
delay(delaytime);
}
void loop() {
scrollDigits();
displayAllDigits();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment