Jesse Vincent
68cdc384de
astyle
6 years ago
Jesse Vincent
10348707f6
Merge pull request #7 from keyboardio/f/onFocusEvent
...
Migrate to the new onFocusEvent API
6 years ago
Gergely Nagy
504727d677
Migrate to the new onFocusEvent API
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
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
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
a643e323e6
shellcheck should only be run in the Kaleidoscope repo
6 years ago
Jesse Vincent
8605ff7d1d
Update travis.yml to point to new bundle repo
6 years ago
Jesse Vincent
eed9496e22
Merge pull request #4 from keyboardio/f/license-and-copyright-assignment
...
License update, copyright assignment & CONTRIBUTING.md
6 years ago
Gergely Nagy
a0bab51db8
Add CONTRIBUTING.md
...
Copied from Kaleidoscope, as it is applicable here too.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
cbae65ceb4
Assign my copyright to Keyboard.io
...
While the original plugin was written independently, significant developments
were made while working for Keyboard.io. As such, I feel it is appropriate to
assign copyright to the company.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
fc130b8870
Relicense under the GPLv3 (only)
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
c11c09ba5f
Drop the V1 plugin API compatibility code
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
989f1417ac
Merge pull request #3 from keyboardio/f/plugin-v2
...
Updated to use the new plugin APIs
7 years ago
Gergely Nagy
94b7d13990
Updated to use the new plugin APIs
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Jesse Vincent
50c92bddf7
Update Makefile with OSX fixes and new paths
7 years ago
Gergely Nagy
1b6dc98703
Use `Kaleidoscope.use` instead of `USE_PLUGINS`
...
The latter is being obsoleted, so use the former, newer API.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
30ebf9599f
Update Makefile to fix OS X build
8 years ago
Gergely Nagy
583e916590
Fix a typo
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
33a19c3b51
Fix the Focus hooks
...
We need to reference the global `Focus` object, not a local one, to avoid confusion.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ae8cd514a2
Focus hooks shall follow the style guide more closely
...
Moved them to the a namespace much more fitting, and renamed the hooks too.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
c5980dc5a6
Local variables shall follow the style guide too
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
564b656162
README.md: Minor style adjustment
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
da90c342fb
Some more linter-triggered fixes
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
202860575b
Kaleidoscope Style Guide conformance
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
49887a2805
virtual void begin(void) final is redunant and makes the linter unhappy
8 years ago
Jesse Vincent
a0b2d400db
astyle with current project style guidelines
8 years ago
Jesse Vincent
e3dc58f384
make astyle
8 years ago
Jesse Vincent
59c361e6c8
New build infrastructure
8 years ago
Jesse Vincent
a5a3bb6521
Update to new Keymap
8 years ago
Gergely Nagy
664df896e0
README: Rearrange the methods a bit
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
957866fb84
README: Drop a left over sample from another plugin
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
b811e1f973
Document the Focus hooks too
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
1379094d39
Add some developer-oriented docs to the README
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e3e6ec9488
README: Change the status images to SVG
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
a83d61e280
Focus: Fix the command list
...
`eeprom.dump` and `eeprom.upload` has been merged into `eeprom.contents`,
reflect that in the command list, too.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
cdd6b811f9
Focus: Allow partial eeprom upload
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
fc59d1f64b
Focus: Merge the eeprom.dump and eeprom.upload commands
...
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
0bfb773619
Focus: Don't format the eeprom.dump output
...
Fixes #1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
19b5655770
Add a way to figure out the used & free EEPROM amount
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
26d7af1b96
Fix the `settings.version` Focus command
...
There was a missing `break`, so control flowed through to the CRC case.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
f1e7ab05eb
Instead of full docs, only document the commands
...
Full documentation takes way too much space, and command names are a reasonable
compromise for discoverability.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
7884289e59
README: Add a "Dependencies" section
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
3648c6687c
No need to consume the trailing \n anymore
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ff46d8eede
Use the new Focus helpers
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ff29bce43e
Focus: Add an EEPROM dump, and an upload command
...
Fixes keyboardio/Kaleidoscope-Focus#1 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
c0d2c51730
Rework how the whole thing operates
...
Allows other plugins to request a slice of EEPROM, and returns the starting
location of their area. Makes a CRC out of the slice sizes, so that it can
detect when the EEPROM and the Sketch become out of sync. Handling that case is
left up to the user.
As a consequence, we no longer reserve a big chunk of EEPROM for the keymap,
that just becomes another slice of it, which can be anywhere. This makes it a
bit harder to adjust the size of it, but as far as this plugin goes, playing
with the EEPROM layout will usually mean having to update its contents from
scratch, anyway.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
496cff414b
Travis: Remove obsolete workarounds
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ef832250f0
Add (optional) Focus hooks
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago