Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Keyboard.h>
- const int osutapa = 10;
- const int osutapb = 3;
- void setup() {
- pinMode(osutapa, INPUT_PULLUP);
- pinMode(osutapb, INPUT_PULLUP);
- Keyboard.begin();
- }
- void loop() {
- if (digitalRead(osutapa) == LOW){
- Keyboard.press('z');
- } else {
- Keyboard.release('z');
- }
- if (digitalRead(osutapb) == LOW){
- Keyboard.press('x');
- } else {
- Keyboard.release('x');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement