Comments (4)
from model01-firmware.
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.
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.
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
from model01-firmware.
Related Issues (20)
- Cannot buld with Kaleidoscope==07f3ca and firmware==03bee4 HOT 3
- Add commit SHA to BUILD_INFORMATION string HOT 2
- Error building after upgrading to Catalina: bad CPU type in executable HOT 6
- Weird behavior on linux 5.12? HOT 11
- Relationship with kaleidoscope repo is confusing HOT 10
- Macro code is different from Arduino HOT 1
- How to have multiple "primary" layers? HOT 2
- Stuck in numlock on modified keymap HOT 6
- curly braces sometimes type square braces HOT 3
- Model01-Firmware doesn't seem to be in sync with the plugins anymore? HOT 2
- Magic combo or something to disable eeprom keymaps HOT 3
- Colormap support is incomplete HOT 1
- Keypresses are wrong over RDP HOT 8
- List default LED effect modes
- Building fails? HOT 4
- running `make flash` on OSX Catalina fails with "avrdude: butterfly_recv(): programmer is not responding" HOT 2
- build error in LED-Stalker HOT 19
- ps/2 fallback support HOT 2
- Consider replacing the Numpad plugin with a custom colormap for the layer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model01-firmware.