There is a video associated with this repo, I highly recommend you watch it if you are going to use this repo.
*Installed directly from the Arduino library manager.
RF24
by TMRh20.Button
by Michael Adams./transmitter
):
CE and CSN
pin numbers to match your connections, these could be any GPIO pins in your MC.MAX_SHORTCUT_KEYS
, this is the maximum number of characters a keyboard shortcut/sequence can be. This is specified so only the required number of bytes are sent through the radio signal.BUTTONS_INFO
array. Each button element is made up of two values, the first is the pin number the button is connected to your MC. The second is a string of characters seperated by spaces. The characters are represented by their decimal/int values, which can be found here and here. Make sure you don't go over your MAX_SHORTCUT_KEYS
in the string of keys, if more keys are required, simply increase MAX_SHORTCUT_KEYS
./receiver
):
MAX_SHORTCUT_KEYS
in the transmitter side, if you did, make sure the MAX_SHORTCUT_KEYS
matches.Please refer to the /3d_models
directory.
You will also need to install the Attiny boards using the AttinyCore board manager by placing this link http://drazzy.com/package_drazzy.com_index.json
to your "Additional Boards Manager URLs", which can be accessed in File > Preferences
.
From Tools > Board
, choose your Attiny board with the no bootloader option.
Then go to Tools > Programmer
and choose USBasp (ATTinyCore)
, and then press Tools > Burn Bootloader
.
Then to simply upload code, use Sketch > Upload Using Programmer
.
You can use stripboards with some wires to make uploading code to the Attiny MCs more convenient: