Arduino Osu! Project Code
Arduino Osu! Project Code
com/document/374788499/Arduino-Nano-as-Keyboard
d0,d1,d2,d4
/*BEGINNING OF NOTES
pinMode(buttonM, INPUT);
if (digitalRead(buttonM) == LOW)
{
Keyboard.press('m');
}
else
{
Keyboard.release('m');
}
Don't forget to put them in the right place! If they are outside the correct loop,
it won't work!
END OF NOTES*/
else //Otherwise,
{
Keyboard.release('x'); //release the 'x' key.
digitalWrite(led1, LOW); //turn the first led off.
}
else //Otherwise,
{
Keyboard.release('z'); //release the 'z' key.
digitalWrite(led2, LOW); //turn the second led off.
}
} //Don't forget this little
bracket ;)