Update
This commit is contained in:
parent
03374109fa
commit
1ff2f69014
@ -22,11 +22,15 @@ Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
|
||||
|
||||
char ctrlKey = KEY_LEFT_CTRL;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void setup() {
|
||||
Keyboard.begin();
|
||||
pinMode(ledpin,OUTPUT);
|
||||
digitalWrite(ledpin, HIGH);
|
||||
// Serial.begin(9600);
|
||||
|
||||
}
|
||||
|
||||
//funcs:
|
||||
@ -47,12 +51,6 @@ void fmcbv() {Keyboard.press(ctrlKey);delay(20);Keyboard.press(98);delay(20);Key
|
||||
void fmcbs() {Keyboard.press(ctrlKey);delay(20);Keyboard.press(98);delay(20);Keyboard.releaseAll();delay(5);Keyboard.print("s");}
|
||||
void fmexr() {Keyboard.println("exit");delay(5);}//ln
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void loop() {
|
||||
char key = kpd.getKey();
|
||||
if(key) {
|
||||
@ -105,8 +103,6 @@ void loop() {
|
||||
case 'f':
|
||||
fmexr();
|
||||
break;
|
||||
// default:
|
||||
// Serial.println(key);
|
||||
}
|
||||
delay(100);
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
//Declarations LED
|
||||
#define NUM_LED 4
|
||||
#define LED_PIN 7
|
||||
#define LED_PIN 11
|
||||
CRGB led[NUM_LED];
|
||||
char currentRGB = i;
|
||||
//Declarations KEYPAD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user