Git Product home page Git Product logo

Comments (4)

obra avatar obra commented on July 26, 2024

from model01-firmware.

tsira avatar tsira commented on July 26, 2024

Using: https://github.com/keyboardio/Kaleidoscope/blob/master/examples/Devices/Keyboardio/Model01/Model01.ino

different error: 'KeyEvent' has not been declared

are there additional files aside from that .ino needed for compilation?

Model01-Firmware:88:46: error: 'KeyEvent' has not been declared
 const macro_t *macroAction(uint8_t macro_id, KeyEvent &event) {
                                              ^~~~~~~~
In file included from Arduino15\packages\keyboardio\hardware\avr\1.99.3\libraries\Kaleidoscope\src/kaleidoscope/key_events.h:23:0,
                 from Arduino15\packages\keyboardio\hardware\avr\1.99.3\libraries\Kaleidoscope\src/Kaleidoscope.h:83,
                 from Model01-Firmware\Model01-Firmware.ino:20:
Model01-Firmware\Model01-Firmware.ino: In function 'const macro_t* macroAction(uint8_t, int&)':
Model01-Firmware:89:43: error: request for member 'state' in 'event', which is of non-class type 'int'
   if (macro_id == 1 && keyToggledOn(event.state)) {
                                           ^
Arduino15\packages\keyboardio\hardware\avr\1.99.3\libraries\Kaleidoscope\src/kaleidoscope/keyswitch_state.h:34:35: note: in definition of macro 'keyIsPressed'
 #define keyIsPressed(keyState)  ((keyState) & IS_PRESSED)
                                   ^~~~~~~~
Model01-Firmware\Model01-Firmware.ino:89:24: note: in expansion of macro 'keyToggledOn'
   if (macro_id == 1 && keyToggledOn(event.state)) {
                        ^~~~~~~~~~~~
Model01-Firmware:89:43: error: request for member 'state' in 'event', which is of non-class type 'int'
   if (macro_id == 1 && keyToggledOn(event.state)) {
                                           ^
Arduino15\packages\keyboardio\hardware\avr\1.99.3\libraries\Kaleidoscope\src/kaleidoscope/keyswitch_state.h:39:35: note: in definition of macro 'keyWasPressed'
 #define keyWasPressed(keyState) ((keyState) & WAS_PRESSED)
                                   ^~~~~~~~
Model01-Firmware\Model01-Firmware.ino:89:24: note: in expansion of macro 'keyToggledOn'
   if (macro_id == 1 && keyToggledOn(event.state)) {
                        ^~~~~~~~~~~~

from model01-firmware.

gedankenexperimenter avatar gedankenexperimenter commented on July 26, 2024

Kaleidoscope v1.99.3 is now almost a year old, and doesn't have KeyEvent in it. The latest master branch of Model01-Firmware should be built with the latest Kaleidoscope master, not with v1.99.3.

from model01-firmware.

tsira avatar tsira commented on July 26, 2024

Thanks! Was able to find the correct .json file to add to the additional boards manager urls to update my Kaleidoscope Board version.
https://raw.githubusercontent.com/keyboardio/arduino-kaleidoscope-master/main/package_kaleidoscope_master_index.json

https://community.keyboard.io/t/macros-not-working-with-v1-99-3-for-atreus-and-java-lang-nullpointerexception-when-trying-to-get-the-master-branch-installed-in-the-arduino-ide/5010/8

from model01-firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.