This commit is contained in:
MAXIM HUNT 2018-09-30 17:04:37 +01:00
parent 44690ff1b4
commit 0714cf5252

View File

@ -6,7 +6,7 @@
#define NUM_LED 4 #define NUM_LED 4
#define LED_PIN 11 #define LED_PIN 11
CRGB led[NUM_LED]; CRGB led[NUM_LED];
char currentRGB = i; char currentRGB = 'i';
//Declarations KEYPAD //Declarations KEYPAD
const byte ROWS = 4; const byte ROWS = 4;
const byte COLS = 4; const byte COLS = 4;
@ -36,16 +36,17 @@ void fmf1() {setAll(125, 241, 255);show();}
void fmf2() {setAll(255, 0, 255);show();} void fmf2() {setAll(255, 0, 255);show();}
void fmf3() { void fmf3() {
switch (currentRGB) { switch (currentRGB) {
case "i": case 'i':
setQ(255, 0, 63);setW(255, 246, 0);setA(0, 128, 0);setS(255, 0, 63);show();currentRGB = "r"; setQ(255, 0, 63);setW(255, 246, 0);setA(0, 128, 0);setS(255, 0, 63);show();currentRGB = "r";
break; break;
case "o": case 'o':
setAll(0, 0, 255);show();currentRGB = "i"; setAll(0, 0, 255);show();currentRGB = "i";
break; break;
default: default:
setAll(0, 0, 0);show();currentRGB = "o"; setAll(0, 0, 0);show();currentRGB = "o";
break; break;
} }
}
void fmfky() {Keyboard.print("Fuck You");} void fmfky() {Keyboard.print("Fuck You");}
void fmshl() {Keyboard.println("ssh root@192.168.1.95");} void fmshl() {Keyboard.println("ssh root@192.168.1.95");}
void fmshg() {Keyboard.println("ssh -p 9999 root@git64.ddns.net");} void fmshg() {Keyboard.println("ssh -p 9999 root@git64.ddns.net");}
@ -65,9 +66,7 @@ void setup() {
setAll(0, 0, 255); setAll(0, 0, 255);
Keyboard.begin(); Keyboard.begin();
pinMode(ledpin,OUTPUT); setAll(100, 0, 0);
digitalWrite(ledpin, HIGH);
setAll(100, 0, 0)
} }
void loop() { void loop() {