generated from macoy/gamelib-project-template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 months ago | |
---|---|---|
Dependencies | 4 months ago | |
data/Fonts | 4 months ago | |
printOnly | 3 months ago | |
src | 3 months ago | |
.gitignore | 3 months ago | |
.gitmodules | 4 months ago | |
Build.sh | 4 months ago | |
BuildPico.sh | 3 months ago | |
COPYING | 4 months ago | |
FlashPico.sh | 3 months ago | |
FlashPicoPrintOnly.sh | 3 months ago | |
LICENSE | 4 months ago | |
ReadMe.org | 3 months ago | |
RunProfiler.sh | 4 months ago |
ReadMe.org
Keyboards
This is my dumping ground for various physical keyboard firmware and designs.
Building and running
Via Raspberry Pi Pico
Initial setup
# Get all the compilers and code
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
git clone https://github.com/raspberrypi/pico-sdk
cd pico-sdk
git submodule update --init
cd lib/tinyusb
git submodule update --init
cd ../../../
# Get picotool for flashing
git clone https://github.com/raspberrypi/picotool.git --branch master
cd picotool
mkdir build
cd build
cmake .. -DPICO_SDK_PATH=/home/macoy/Development/code/3rdParty/repositories/pico-sdk
To get the pico examples working:
git clone https://github.com/raspberrypi/pico-examples
cd pico-examples
mkdir build
cd build
cmake .. -DPICO_SDK_PATH=/home/macoy/Development/code/3rdParty/repositories/pico-sdk -DPICO_BOARD=adafruit_kb2040
make -j
Example flashing:
-
Hold down the boot button and plug in the board
-
Run in
picotool/build
:
sudo ./picotool load ../../pico-examples/build/usb/device/dev_hid_composite/dev_hid_composite.uf2
sudo ./picotool verify ../../pico-examples/build/usb/device/dev_hid_composite/dev_hid_composite.uf2
sudo ./picotool reboot
Building Keypad
Before flashing, plug in the kb2040 while holding the boot button down.
mkdir build
cd build
cmake ../src/ -DPICO_SDK_PATH=/home/macoy/Development/code/3rdParty/repositories/pico-sdk -DPICO_BOARD=adafruit_kb2040
cd ../
./BuildPico.sh
./FlashPico.sh
Now, unplug and replug the pico or:
sudo /home/macoy/Development/code/3rdParty/repositories/picotool/build/picotool reboot
Via Arduino (old, don't use)
Follow Arduino IDE Setup. In short:
-
Get Arduino IDE (and Arduino Console while you're at it)
-
Add
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
toPreferences > Additional Boards Manager URLs
-
Search for
RP2040
in Board Manager and install theRaspberry Pi Pico/RP2040 by Earle F Philhower, III
The console board name is rp2040:rp2040:adafruit_kb2040
.
Run Build.sh
.
Observing output
screen /dev/ttyACM0 115200
Killing screen sessions
Ctrl + a
then k