Update
This commit is contained in:
parent
44690ff1b4
commit
0714cf5252
@ -6,7 +6,7 @@
|
||||
#define NUM_LED 4
|
||||
#define LED_PIN 11
|
||||
CRGB led[NUM_LED];
|
||||
char currentRGB = i;
|
||||
char currentRGB = 'i';
|
||||
//Declarations KEYPAD
|
||||
const byte ROWS = 4;
|
||||
const byte COLS = 4;
|
||||
@ -30,22 +30,23 @@ void setQ(int red, int grn, int blu){led[0] = CRGB(red, grn, blu);}
|
||||
void setW(int red, int grn, int blu){led[1] = CRGB(red, grn, blu);}
|
||||
void setA(int red, int grn, int blu){led[2] = CRGB(red, grn, blu);}
|
||||
void setS(int red, int grn, int blu){led[3] = CRGB(red, grn, blu);}
|
||||
void show(){FastLED.show();}
|
||||
void show() {FastLED.show();}
|
||||
|
||||
void fmf1() {setAll(125, 241, 255);show();}
|
||||
void fmf2() {setAll(255, 0, 255);show();}
|
||||
void fmf3() {
|
||||
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";
|
||||
break;
|
||||
case "o":
|
||||
case 'o':
|
||||
setAll(0, 0, 255);show();currentRGB = "i";
|
||||
break;
|
||||
default:
|
||||
setAll(0, 0, 0);show();currentRGB = "o";
|
||||
break;
|
||||
}
|
||||
}
|
||||
void fmfky() {Keyboard.print("Fuck You");}
|
||||
void fmshl() {Keyboard.println("ssh root@192.168.1.95");}
|
||||
void fmshg() {Keyboard.println("ssh -p 9999 root@git64.ddns.net");}
|
||||
@ -65,9 +66,7 @@ void setup() {
|
||||
setAll(0, 0, 255);
|
||||
|
||||
Keyboard.begin();
|
||||
pinMode(ledpin,OUTPUT);
|
||||
digitalWrite(ledpin, HIGH);
|
||||
setAll(100, 0, 0)
|
||||
setAll(100, 0, 0);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
@ -125,4 +124,4 @@ void loop() {
|
||||
}
|
||||
delay(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user