Building and flashing single examples from Kaleidoscope repo


(Noseglasses) #1

Is there a simple way to build and flash one of the examples of the Kaleidoscope project in place, i.e. without copying it to some other sketch folder? Something like

make <relative path to example from Kaleidoscope root>

This would be very useful when developing new examples as part PR.


(Gergely Nagy) #2

bin/kaleidoscope-builder Keystrokes/OneShot build flash

There’s no make target for them (yet; there will be when I have time to finish up #517).


(Noseglasses) #3

When I do that with my CWD set to the Kaleidoscope repo root, there is an error

> ./bin/kaleidoscope-builder Keystrokes/OneShot build
Building OneShot (0.0.0) ...
keyboardio: Unknown package

Any ideas?


(Gergely Nagy) #4

Does make smoke-examples work?


(Noseglasses) #5

Sorry, I forgot to define BOARD_HARDWARE_PATH. If I start it as

> BOARD_HARDWARE_PATH=$PWD/../../../.. ./bin/kaleidoscope-builder \
         Keystrokes/OneShot build

it works as expected. That’s because I never symlink the hardware path in my Arduino installation to avoid confusion.