Essentials
Setup prerequisites
This is a RP2040-type board, and you'll essentially treat it as a Raspberry Pi Pico board. Follow these instructions to get ready to code.
Board setup
The only thing you need to set up is in 2_Board.ino. Have a look at the very top:
To activate the pre-programmed features for you CB1, set the following:
BOARDTYPE
to 2
USING_CB1
to 1
That is all. Now, if you have removed components from the board or in general have some advanced setup for switches, have a look at advanced settings.
Analog switches
If you're using analog switches that will produce button numbers (typically rotary switches), you'll have to assign some button numbers to it. More on this in the complete project example.
Switch functions
We can move directly to start using switch functions now. This is all done in 30_Switches.ino. The various functions used to add firmware code for our switches are found in the library.
Lets say we have 4 pushbuttons wired to row 1, column pins 1-4. Open 30_Switches tab and you'll find the area between "Switches start here" and "Switches end here" to be empty. The following is all you need:
You've now edited two numbers and written 4 lines of code, your firmware is ready to upload.
Next, look at the complete project guide for a more comprehensive firmware setup.
Last updated