* add support for hid gamepad interface
add documentation for HID joystick
Add joystick_task to read analog axes values even when no key is pressed or release. update doc
Update docs/feature_joystick.md
Manage pin setup and read to maintain matrix scan after analog read
* Incorporates patches and changes to HID reporting
There are some patches provided by @a-chol incorporated on this commit,
and also some changes I made to the HID Report structure.
The most interesting is the one dealing with number of buttons: Linux
doesn't seem to care, but Windows requires the HID structure to be byte
aligned (that's in the spec). So if one declares 8/16/32... buttons they
should not have any issues, but this is what happens when you have 9
buttons:
```
bits |0|1|2|3|4|5|6|7|
|*|*|*|*|*|*|*|*| axis 0 (report size 8)
|*|*|*|*|*|*|*|*| ...
|*|*|*|*|*|*|*|*|
|*|*|*|*|*|*|*|*|
|*|*|*|*|*|*|*|*|
|*|*|*|*|*|*|*|*|
|*|*|*|*|*|*|*|*| axis 6
|*|*|*|*|*|*|*|*| first 8 buttons (report size 1)
|*| | | | | | | | last of 9 buttons, not aligned
```
So for that I added a conditonal that will add a number of reports with
size 1 to make sure it aligns to the next multiple of 8. Those reports
send dummy inputs that don't do anything aside from aligning the data.
Tested on Linux, Windows 10 and Street Fighter (where the joystick is
recognized as direct-input)
* Add save and restore of each pin used in reading joystick (AVR).
Allow output pin to be JS_VIRTUAL_AXIS if the axis is connected to Vcc
instead of an output pin from the MCU.
Fix joystick report id
Fix broken v-usb hid joystick interface. Make it more resilient to unusual settings (none multiple of eight button count, 0 buttons or 0 axes)
Correct adc reading for multiple axes. Piecewise range conversion for uncentered raw value range. Input, output and ground pin configuration per axis.
Documentation fixes
* Fix port addressing for joystick analog read
* The other required set of changes
As per the PR, the changes still holding it up.
Add onekey for testing.
Fix ARM builds.
Fix device descriptor when either axes or buttons is zero.
Add compile-time check for at least one axis or button.
Move definition to try to fix conflict.
PR review comments.
qmk cformat
* avoid float functions to compute range mapping for axis adc reading
* Remove V-USB support for now. Updated docs accordingly.
* Update tmk_core/protocol/lufa/lufa.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update tmk_core/protocol/usb_descriptor.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update tmk_core/protocol/usb_descriptor.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update tmk_core/protocol/usb_descriptor.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Add support for joystick adc reading for stm32 MCUs. Fix joystick hid report sending for chibios
* Fix HID joystick report sending for ChibiOS.
Add one analog axis to the onekey:joystick keymap.
Fix pin state save and restore during joystick analog read for STM32
MCUs.
* Update tmk_core/protocol/chibios/usb_main.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update tmk_core/protocol/lufa/lufa.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Add missing mcuconf.h and halconf.h to onekey:joystick keymap.
Add suggested fixes from PR.
* Switch saveState and restoreState signature to use pin_t type.
onekey:joystick : add a second axis, virtual and programmatically animated.
* Update docs/feature_joystick.md
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update docs/feature_joystick.md
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Add PR corrections
* Remove halconf.h and mcuconf.h from onekey keymaps
* Change ADC_PIN to A0
Co-authored-by: achol <allecooll@hotmail.com>
Co-authored-by: José Júnior <jose.junior@gmail.com>
Co-authored-by: a-chol <achol@notamail.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
* Initial work for consolidation of board files and default ChibiOS configs.
* Migrate F401/F411 black pills for testing.
* Add early init bootloader jump flag.
* Add support for I2C in order to use i2c_scanner keymap.
* Add F401/F411 HSE bypass to get things booting.
* Exempt "hooked" ChibiOS conf files from updater script.
* Fix up ordering for bootloader_defs file check.
* Match previous $(KEYBOARD_PATHS) value for Proton-C, updated for all board configs.
* setup handwired pteron38
* Clean up readme
* readme follow template
* c formatting conventions
* remove file size comments from rules.mk
* use direct link to imgur image
* Apply suggestions from code review
* add license
* cleaning up
* got some working bones
* working pretty well
* really livin' now
* all done
* copyright adjustments
* default keymap
* readme
* no descrip
* remove trailing slashes
* remove blank line
* remove trailing slashes
* clean up readme
* clean up rules spacing
* bootloader spacing
* made quick json from KLE converter
* remove postageboard mini references
* add actual manu and product values
* add make example
* rework
* remove double bootload define
* smoller image
* liscensed
* correct dimensions
* dimensions
* Added handwired/selene based on handwired/106_with_trackpoint
* now at least parially working
* Selene Firmware 1, ready
* Updated Readme to align more with Template
* Added URL to info.json
* Fix status Lights being wired incorrectly
* Update keyboards/handwired/selene/config.h
* Update keyboards/handwired/selene/keymaps/Bpendragon/keymap.c
* Update keyboards/handwired/selene/selene.c
* Update keyboards/handwired/selene/selene.h
* Changes for PR requested by fauxpark
* Adds `default` keymap
* Renames `Bpendragon` to `bpendragon`
* Removes uneeded descriptors and options
* Simplifies return statement in `keymap.c`
* Removes trailing slashes from layout in `keymap.c`
* Updates `readme.mk` to reflect default keymap
* Aligns comments in `rules.mk`
* Forced folder name update to lowercase
* Apply suggestions from code review
* Added a new handwired 2x3,2x4,2x5 keyboard called the Stream_cheap
stream cheap is a diy version of the El Gato Stream deck minus the LCD keys
but you can always get relegendable keycaps to change the icon if you want
* added missing commas in info.json files
* update config to change pin definition
* changed keymap.c for 2x4
was trying to add macros and multi key commands to the keymap,
i added 2 ctrl commands that have more than one key i.e. ctrl-k-c (visual studio comment hot key)
and i added a test string to see how type out a string with the press of a button
* testing more changes to the keymap to the 2x5
* Update keyboards/handwired/stream_cheap/2x3/2x3.c
* Update keyboards/handwired/stream_cheap/2x3/config.h
* Update keyboards/handwired/stream_cheap/2x3/rules.mk
* Update keyboards/handwired/stream_cheap/2x5/config.h
* Update keyboards/handwired/stream_cheap/2x5/info.json
* Update keyboards/handwired/stream_cheap/2x3/config.h
* Update keyboards/handwired/stream_cheap/2x3/info.json
* Update keyboards/handwired/stream_cheap/2x4/config.h
* Update keyboards/handwired/stream_cheap/2x4/info.json
* Update keyboards/handwired/stream_cheap/2x4/keymaps/default/keymap.c
* Update keyboards/handwired/stream_cheap/2x5/info.json
* Update keyboards/handwired/stream_cheap/2x5/config.h
* Update keyboards/handwired/stream_cheap/2x5/rules.mk
* Update keyboards/handwired/stream_cheap/2x4/2x4.c
* Update keyboards/handwired/stream_cheap/2x4/config.h
* Update keyboards/handwired/stream_cheap/2x4/info.json
* Update keyboards/handwired/stream_cheap/2x5/2x5.c
* Update keyboards/handwired/stream_cheap/2x4/rules.mk
* removed file as per request of user zvecr
* removed line in rules.mk for 2x5
* Update keyboards/handwired/stream_cheap/2x5/keymaps/default/keymap.c
* Apply suggestions from code review
changes suggested in code review
* I2C_TIMEOUT is not defined on arm teensy
* Work round teensy having different ChibiOS config options
* Stash OLED conf files
* update comment
* update comment
* Remove stm32 alias to allow teensy alt mode
* adding via support for Dactyl Manuform 5x7
* Changing Vendor ID from FEED to 444D (DM)
* Update keyboards/handwired/dactyl_manuform/4x6/config.h
Fixing typo in Dactyl Manuform 4x6 Product Id
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/dactyl_manuform/4x5/config.h
Fixing typo in Dactyl Manuform 4x5 Product Id
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Roland Bernau <roland@bernau.dev>
Co-authored-by: Joel Challis <git@zvecr.com>
* Write firmware for the Ferris keyboard
Took inspiration from the gergoplex and the ergodox_ez firmware for the
split matrix with io_expander on the right hand.
Cleaned up a lot of bit fiddling on the mcu side by taking inspiration
from the `split_custom` in quantum.
Still bit fiddling on the mcp side as it is particularly natural to do
so with the abstractions provided by the i2c protocol. Would be good to
clean that up and abstract away the wiring from the generic i2c code in
a similar fashion as quantum and the mcp side behave.
One improvement over the ergodox_ez and the gergoplex firmwares is that
the wiring is straight forward as opposed to swapping rows and columns
in two different places that end up cancelling out for some reason.
At this stage, I have flashed this firmware to a board and have verified
that all keys are behaving as intended by shorting pins.
I still have to solder in some switches and test that everything works
correctly at normal typing speeds, but I don't expect any major issues
given I'm building up on previous effort, including the debouncing code
from the ergodox_ez.
* Remove rotation from info.json and label the keys as per default keymap
* Comply with minor review feedback points
* Use CUSTOM_MATRIX=lite to remove boilerplate
* Update keyboards/handwired/ferris/info.json
Didn't play nicely in the configurator
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove MIDI_ENABLE from rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove FAUXCLICKY_ENABLE from rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Prefer wait_ms over _delay_ms
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove unused include
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove unused include
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove unused include
Co-authored-by: Ryan <fauxpark@gmail.com>
* Remove unused includeh
Co-authored-by: Ryan <fauxpark@gmail.com>
* Use dprint over print and remove include for print.h
* Remove all unused includes
* Remove unused code
* Cleanups thanks to code review
* Move more personal settings from the ferris config to the default keymap config
These setting happen to be unused in the default keymap at the moment,
as it has only one layer with no homerow modifiers and no mouse key; but
I would like to keep it there for two reasons:
* It can serve as an example to people creating their own keymap
* I plan to design a more usable default keymap that uses these features
once this PR which adds the Ferris keyboard is merged.
* Consolidate mcp logic inside matrix.c
Co-authored-by: Ryan <fauxpark@gmail.com>
* Added Handwired Redragon Keyboard as well as default and via keymaps
* Update keyboards/handwired/boss566y/redragon_vara/info.json
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/via/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/via/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/via/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/redragon_vara.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/redragon_vara.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/rules.mk
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/keymaps/default/keymap.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/handwired/boss566y/redragon_vara/info.json
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/handwired/boss566y/redragon_vara/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keymap.c
Removed defined keycodes from via keymap
* Update keymap.c
replaced defined keycodes in default keymap
* Update readme.md
Changed image to one that matches the physical keyboard
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
* Branch point for 2020 May 30 Breaking Change
* Migrate `ACTION_LAYER_TOGGLE` to `TG()` (#8954)
* Migrate `ACTION_MODS_ONESHOT` to `OSM()` (#8957)
* Migrate `ACTION_DEFAULT_LAYER_SET` to `DF()` (#8958)
* Migrate `ACTION_LAYER_MODS` to `LM()` (#8959)
* Migrate `ACTION_MODS_TAP_KEY` to `MT()` (#8968)
* Convert V-USB usbdrv to a submodule (#8321)
* Unify Tap Hold functions and documentation (#8348)
* Changing board names to prevent confusion (#8412)
* Move the Keyboardio Model01 to a keyboardio/ subdir (#8499)
* Move spaceman keyboards (#8830)
* Migrate miscellaneous `fn_actions` entries (#8977)
* Migrate `ACTION_MODS_KEY` to chained mod keycodes (#8979)
* Organizing my keyboards (plaid, tartan, ergoinu) (#8537)
* Refactor Lily58 to use split_common (#6260)
* Refactor zinc to use split_common (#7114)
* Add a message if bin/qmk doesn't work (#9000)
* Fix conflicting types for 'tfp_printf' (#8269)
* Fixed RGB_DISABLE_AFTER_TIMEOUT to be seconds based & small internals cleanup (#6480)
* Refactor and updates to TKC1800 code (#8472)
* Switch to qmk forks for everything (#9019)
* audio refactor: replace deprecated PLAY_NOTE_ARRAY (#8484)
* Audio enable corrections (2/3) (#8903)
* Split HHKB to ANSI and JP layouts and Add VIA support for each (#8582)
* Audio enable corrections (Part 4) (#8974)
* Fix typo from PR7114 (#9171)
* Augment future branch Changelogs (#8978)
* Revert "Branch point for 2020 May 30 Breaking Change"
* [Keyboard] Added D48 keyboard.
* Updated README.
* Cleanups.
* Moved d48 to handwired/
* Added link to build process album.
* Coding conventions cleanups.
* Added DS1307 RTC!
* Minor cleanups.
* Apply suggestions from code review
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Minor refactoring.
* Readme fix.
* Moved leftover keymap-specific code from keyboard space into keymap.
* Added encoder button pins to extra matrix row.
* Updated README, updated pinout & cleaned up the glcdfont
* Apply suggestions from code review
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update config.h
* Apply suggestions from code review
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Added default keymap. Refactored existing keymap.
* Update keyboards/handwired/d48/README.md
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Apply suggestions from code review
Co-Authored-By: Joel Challis <git@zvecr.com>
* Minor alignment fix.
* Update keyboards/handwired/d48/glcdfont_d48.c
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Changes as per PR.
* Apply suggestions from code review
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update to xealousbrown.
5-13ms Latency decrease, 4x scan rate improvement.
(CUSTOM_MATRIX = lite) is a really great feature!
* Updated Readme.md, added an extra speedhack.
* More optimizations
* Update keyboards/handwired/xealousbrown/rules.mk
* Update keyboards/handwired/xealousbrown/rules.mk
* Adding Novem keyboard (macropad) and demo layout
* Making changes suggested during pull request
* Removing keyboards/novem/keymaps/default/config.h as suggested during the pull request
* Moving keyboard to the handwired folder and changing the build line from readme in order to reflect this new location
* Add handwired BDN9-BLE
* Apply suggestions from code review
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update keyboards/handwired/bdn9_ble/rules.mk
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update keyboards/handwired/bdn9_ble/rules.mk
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Update keyboards/handwired/bdn9_ble/readme.md
Co-Authored-By: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Set backlight and RGB pins for AVR onekeys
* Set pin for ADC as well
* Define ADC_PIN for F4 blackpills
* Use A0 for F4 ADCs
* Set ADC pins for F0 and F1
* Update switch to array to allow custom values
* Add adc keymap
* update docs to reflect alignment of default 10 bit
* start conversion to USE_ADCVn
* samplerate is hella wrong...stub out for now
* basic f1 and f4 functionality
* Tidy up current changes
* Restore old pinToMux function
* Add back sample rate for supported platforms
* F0 compile fixes
* wordsmithery
Co-Authored-By: Ryan <fauxpark@gmail.com>
* Remove reference to avr only function
Co-authored-by: Ryan <fauxpark@gmail.com>
* adding Handwired Skeeb Keyboard
* Apply suggestions from fauxpark
* Apply more suggestions from fauxpark and small change to layout
* Apply more suggestions from noroadsleft and last tap dance
* to ease the maintenance for some boards ibnuda has.
* followed ridingqwerty's suggestion on 8821.
* folloing drashna's suggestion on qmk's 8221.
* following drashn's suggestion on qmk's 8211
* Add VIA support for Prime_L
* Update keyboards/primekb/prime_l/v1/config.h
* Add prime_exl_plus keyboard
* Temporary removal of prime_exl_plus
* Add Prime_EXL Plus, including VIA support
* Update keyboards/handwired/prime_exl_plus/readme.md
* Update keyboards/handwired/prime_exl_plus/readme.md
* Update keyboards/handwired/prime_exl_plus/readme.md
* Update keyboards/handwired/prime_exl_plus/rules.mk
* Update keyboards/handwired/prime_exl_plus/info.json
* Update keyboards/handwired/prime_exl_plus/info.json
* Update keyboards/handwired/prime_exl_plus/info.json
* Update keymap.c
* correct spacing of keymaps and layout macro. move indicator logic from user space to keyboard space
* further corrections to keymaps and layout macro.
* Update keyboards/handwired/prime_exl_plus/prime_exl_plus.c
* Update keyboards/handwired/prime_exl_plus/prime_exl_plus.c
* Update keyboards/handwired/prime_exl_plus/prime_exl_plus.c
* Update keyboards/handwired/prime_exl_plus/prime_exl_plus.c
* Update prime_exl_plus.c
* small edit to prime_exl_plus.c
Clean up checks and logics that are unnecessary due to MILC updates.
Use pathlib instead of os.path for readability.
Use the 'pytest' keyboard for the tests.
Add community layout for 'handwired/onekey/pytest' so we can test
community layouts.
* correct indicator light states.
function of indicator lights was inverted. these changes correct that.
* flesh out keymaps pre production
* Enable extrakey in rules
* Prime_BLE initial commit
* Initial commit for Prime_L V2
* Update info.json
correct key spacing.
* update copyright
* Update readme.md
* Inital commit
* updates before PR into QMK master
* Drop Prime_EXL Plus from PR. Make requested changes to Prime_L V2
* Rename keyboards/primekb/Prime_l_v2/config.h to keyboards/primekb/prime_l_v2/config.h
* Rename keyboards/primekb/prime_l_v2/config.h to keyboards/primekb/Prime_l_v2/config.h
* remove directory Prime_l_v2
* re-submit with proper folder name.
* Ensure setPinInput actually sets input high-z
* Fixed _PIN_ADDRESS Macro arguments
as recommended by vomindoraan
* Fixed instances of setInput to use new behavour
* Changed kmac matrix to use input with pullups
* Update keyboards/gh60/revc/revc.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Fixed input state for unselect_rows
* fixed merge conflict
* Updated all instances of older uses of setPinInput()
* Fixed naming mistake
Co-authored-by: fauxpark <fauxpark@gmail.com>