Jesse Vincent
1ca7c5f5e2
Merge pull request #12 from keyboardio/f/getKeyOverride/progmem-overflow-avoidance
...
Try to avoid a possible PROGMEM overflow in getKeyOverride
6 years ago
Gergely Nagy
f3eb6a7200
Try to avoid a possible PROGMEM overflow in getKeyOverride
...
If we're looking up a key from `PROGMEM`, only do that if the layer in question
is smaller than `layer_count`. Doing otherwise would read garbage from `PROGMEM`
in case we try to read from a layer higher than what we have in there. This can
happen if we have more layers in `EEPROM` than in `PROGMEM`.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Jesse Vincent
1a626ee1e8
Merge pull request #13 from keyboardio/f/auto-settings
...
Automatically pull in EEPROMSettings, and set up defaults
6 years ago
Jesse Vincent
1c7f9f6ae1
Merge pull request #361 from keyboardio/h/make-layer_count-public
...
Declare layer_count extern, so that plugins outside of core can use it too
6 years ago
Jesse Vincent
ad36c4c10f
Merge pull request #6 from keyboardio/f/implicit-seal
...
Seal the EEPROM layout automatically
6 years ago
Gergely Nagy
a02cde9c21
Automatically pull in EEPROMSettings, and set up defaults
...
To make it easier to use the plugin, pull in `EEPROMSettings` by default, and
explicitly call its `onSetup` (it is safe to do so), so user sketches don't have
to if they don't use `EEPROMSettings` directly. Also set `Layer.getKey` to
`EEPROMKeymap.getKeyOverride` to provide a sensible default.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
aad0e3a734
Declare layer_count extern, so that plugins outside of core can use it too
...
Without declaring it extern, other plugins will not have access to the symbol.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
47efb47506
Seal the EEPROM layout automatically
...
If `EEPROMSettings.seal()` wasn't explicitly called, seal the layout in
`beforeEachCycle()`. On the flip side, this makes user sketches simpler, because
they don't have to seal explicitly. This is done at the cost of an if check each
cycle.
In the long run, EEPROM layout management will be moving out of this plugin, so
this check will be eventually dropped too.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
ce921d48c5
Merge pull request #5 from martinakcsilla/drop-debugging-println
...
Remove a debugging Serial.print()
6 years ago
Csilla Nagyné Martinák
ba332c1846
Remove a debugging Serial.print()
...
These two lines went in by mistake earlier, they were meant for local
debugging only. As such, having them in the plugin is a bug, easily
squashed by removing them.
Signed-off-by: Csilla Nagyné Martinák <csilla@csillger.hu>
6 years ago
Jesse Vincent
47ce0989ba
Merge pull request #9 from martinakcsilla/travis-by-example
...
Add an example sketch, and a Travis CI control file
6 years ago
Csilla Nagyné Martinák
a2195357c6
Add an example sketch, and a Travis CI control file
...
Fixes #4 .
Signed-off-by: Csilla Nagyné Martinák <csilla@csillger.hu>
6 years ago
Jesse Vincent
ad59dfec5e
Merge pull request #360 from keyboardio/f/shellcheck-in-makefile
...
.travis.yml: Remove shellcheck from the script step
6 years ago
Gergely Nagy
dc0168216e
.travis.yml: Remove shellcheck from the script step
...
With keyboardio/Kaleidoscope-Build-Tools#2, it is now done by the `travis-test`
target. We still need to install the shellcheck package, however.
Fixes #356 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
aa6b4c3885
etc/kaleidoscope-builder.conf: Fix ARDUINO_IDE_VERSION
...
We had one zero too much, fix that.
Fixes #287 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
8ad5366850
Merge pull request #20 from Dygmalab/master
...
fix overflow bug on ARM and use millisAtCycleStart
6 years ago
Gergely Nagy
57f3ddd43a
Use Kaleidoscope.millisAtCycleStart()
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
4e8b738521
Coding style fix
...
Our coding style says that private properties should end with an underscore,
lets make it so.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
36a38b23b0
Merge pull request #7 from jamadagni/limit-refresh-rate
...
Limit refresh rate and don't update on every cycle
6 years ago
Jesse Vincent
19b47984f8
Merge pull request #357 from keyboardio/f/builder/max-size-workaround
...
kaleidoscope-builder: Support boards with multiple max sizes
6 years ago
Gergely Nagy
f8d42b72c4
kaleidoscope-builder: Support boards with multiple max sizes
...
With the Atreus, we have a board that has a different max upload size depending
on what MCU is used. Until we figure out how to properly support that in the CLI
builder, default to using the first value. That's a reasonable approximation in
most cases.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Jesse Vincent
0c7adb68b9
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
9320ade74f
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
5e672725c5
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
c738e6b991
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
480e644104
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
637943c924
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
e886a27853
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
e525aef803
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
fbdc8bdf35
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
a643e323e6
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
69b05c652a
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
9bab4e0bbf
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
13d781214d
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
6d2a3edbd2
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
cb081d2b90
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
020a67a413
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
1972c9f7c4
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
78816f4b36
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
cc26fcc996
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
4606191ff6
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
6d3d67157b
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
5e9202d25d
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
b9c5fd4c91
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
8605ff7d1d
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
cddb35e172
Update .travis.yml with new bundle pointer
6 years ago
Jesse Vincent
c749214e48
Update README to point to new Kaleidoscope-Bundle-Keyboardio
6 years ago
matt venn
96cfdd5c65
Merge branch 'master' of https://github.com/keyboardio/Kaleidoscope-LED-Stalker
...
Signed-off-by: matt venn <matt@mattvenn.net>
6 years ago
matt venn
ab89785ab5
moved to millisAtCycleStart and fixed overflow bug present on ARM platform
6 years ago
Jesse Vincent
d97b2060ba
The previous factoring just didn't work
6 years ago