This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SIZE 40 | |
#define SPEED 30 | |
#include <DigiMouse.h> | |
void setup(){ | |
DigiMouse.begin(); | |
} | |
void loop() { | |
DigiMouse.update(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SIZE 40 | |
#define SPEED 30 | |
#include <DigiMouse.h> | |
const int inputPin = 2; | |
int buttonState; | |
int lastButtonState = LOW; | |
unsigned long lastDebounceTime = 0; // the last time the output pin was toggled | |
unsigned long debounceDelay = 50; // the debounce time; increase if the output flickers |
OlderNewer