Error building firmware 'kaleidoscope::hid' has not been declared

Hi all,

yesterday I received the model 01 I bought to a member of the forum. Today I was trying to build my first firmware. I have followed the instructions but I get a build error. The steps I executed are:

and this is the error I get:

arnau@lorien Model01-Firmware % make
BOARD_HARDWARE_PATH="/Users/arnau/Documents/Arduino/hardware" /Users/arnau/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/bin//kaleidoscope-builder build-all
Building ./Model01-Firmware 0.0.0 into /var/folders/m5/05gwq0dn3js2bhx64t7zdllr0000gn/T//kaleidoscope-arnau/sketch/1890377-Model01-Firmware.ino/output…
/Users/arnau/Documents/Arduino/hardware/keyboardio/avr/libraries/Model01-Firmware/Model01-Firmware.ino: In function ‘void anyKeyMacro(uint8_t)’:
/Users/arnau/Documents/Arduino/hardware/keyboardio/avr/libraries/Model01-Firmware/Model01-Firmware.ino:313:19: error: ‘kaleidoscope::hid’ has not been declared
kaleidoscope::hid::pressKey(lastKey, toggledOn);

Any ideas about what I’m doing wrong?

Cheers!


Arnau

This issue has been fixed since your post, so you should be able to;

  • remove the keyboardio directory created in the clone step
  • redo the clone and the following steps
  • be all set
1 Like

Another option is to add #include "kaleidoscope/hid.h" to your Model01-Firmware.ino, somewhere after the Kaleidoscope.h include.

1 Like