I am trying to flash my keyboard with @andrewg’s branch, to get my danish characters working with a new approach, since the macro seems to be a dead end.
But it seems like my environment is stale somehow. I get this error:
luke:abg lasse$ make flash
BOARD_HARDWARE_PATH="/Users/lasse/Library/Arduino15/packages/keyboardio/hardware/avr/1.19.0" /Users/lasse/Library/Arduino15/packages/keyboardio/hardware/avr/1.19.0/libraries/Kaleidoscope/bin//kaleidoscope-builder flash
Building output/Model01-Firmware/Model01-Firmware (0.0.0-gv1.13-154-g3bc3) …
/Users/lasse/Documents/Arduino/abg/Model01-Firmware.ino:29:33: fatal error: Kaleidoscope-NumPad.h: No such file or directory
#include “Kaleidoscope-NumPad.h”
^
compilation terminated.
exit status 1
make: *** [flash] Error 1
And I already updated my hardware/libs (and I also tried deleting them and recloning them from github:
luke:avr lasse$ make update-submodules
git pull
Already up-to-date.
git submodule update --init --recursive
All Kaleidoscope libraries have been updated from GitHub
luke:avr lasse$ ls libraries/Kaleidoscope-NumPad/
COPYING Makefile README.md library.properties src
Why is the build looking inside /Users/lasse/Library/Arduino15/packages/keyboardio/hardware/avr ? I would expect it to search ~/Documents/Arduino/keyboardio/hardware/avr
That bit’s easy - there’s a section in the Model01-Firmware/Makefile that checks first for $(PACKAGE_DIR)/packages/keyboardio/hardware/avr and only if it doesn’t contain what it needs does it fall back to $(SKETCHBOOK_DIR)/hardware
The path should be ~/Documents/Arduino/hardware/keyboardio/avr
and not /packages/keyboardio/hardware/avr
I am not good at parsing makefiles, but I am sure I havn’t changed anything.
But I may have an old copy of the libs in /Users/lasse/Library/Arduino15/packages/keyboardio/hardware/avr – I had trouble at first and may have done made hacks to work around those problems.
There are two different places you might have installed our support infrastructure. Either in Documents/Arduino/hardware/ if you used git or in Library/Arduino15/ if you used the Arduino boards manager.
If you have both installed, Arduino prefers the version installed through the boards manager. If you want to use the version you installed with git, you should uninstall the Keyboardio package through the Arduino Boards Manager.