Slide 14
Slide 14 text
#include
#define PIN_KEYSW (0)
int preState;
int currentState;
void setup() {
pinMode(PIN_KEYSW, INPUT);
preState = HIGH;
Keyboard.begin();
}
void loop() {
currentState = digitalRead(PIN_KEYSW);
if((currentState != preState) && (currentState == HIGH)) {
Keyboard.press(KEY_LEFT_ALT);
Keyboard.print("d83c");
Keyboard.print("df63");
delay(10);
Keyboard.releaseAll();
}
preState = currentState;
delay(10);
}
ण࢘ΩʔϘʔυͷίʔυΛॻ͖͜Ή
Ωʔ͕ԡ͞ΕͨΒ
6OJDPEFೖྗͰ
ͷαϩήʔτϖΞΛೖྗ