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

**URL:** <https://community.keyboard.io/t/error-building-firmware-kaleidoscope-hid-has-not-been-declared/3469>\
**Category:** Programming\
**Created:** [January 4, 2020, 7:09pm UTC](https://community.keyboard.io/t/error-building-firmware-kaleidoscope-hid-has-not-been-declared/3469 "2020-01-04T19:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnau](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@arnau](https://community.keyboard.io/u/arnau)\
**Post date:** [January 4, 2020, 7:09pm UTC](https://community.keyboard.io/t/error-building-firmware-kaleidoscope-hid-has-not-been-declared/3469/1 "2020-01-04T19:09:16Z")

</div>

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:

- brew cask install arduino
- mkdir -p $HOME/Documents/Arduino/hardware
- cd $HOME/Documents/Arduino/hardware
- git clone --recursive [https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio.git](https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio.git) keyboardio
- cd keyboardio/avr/libraries/Model01-Firmware
- make

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

---

<div class="post-metadata">

**Author:** ![codelahoma](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/codelahoma/32/2626_2.png) [@codelahoma](https://community.keyboard.io/u/codelahoma)\
**Post date:** [January 11, 2020, 2:28pm UTC](https://community.keyboard.io/t/error-building-firmware-kaleidoscope-hid-has-not-been-declared/3469/2 "2020-01-11T14:28:45Z")

</div>

This issue has been [fixed](https://github.com/keyboardio/Model01-Firmware/pull/95) 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

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [January 11, 2020, 7:31pm UTC](https://community.keyboard.io/t/error-building-firmware-kaleidoscope-hid-has-not-been-declared/3469/3 "2020-01-11T19:31:33Z")

</div>

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