Archived
1
0
Commit Graph

93 Commits

Author SHA1 Message Date
Jacob Alexander
dd9c018378 Adding support to Macro support to DPH
- Added layout files for 50 key and kishsaver
- Not yet working (some USB issues on AVR to debug)
- Fixed an OSX issue when building AVR
- Cleanup
2014-09-14 19:27:22 -07:00
Jacob Alexander
e0a2a4806b Adding CMake build support for the KLL compiler
- Automatically downloads the kll compiler if not found
- Added capability files to each of the module that currently have them
- Split modules.cmake so kll.cmake could influence build targets (also needs info from modules.cmake)
- Updated .gitignore for kll compiler directory
- Added documentation on how to manipulate layouts using CMakeLists.txt
- Cleanup of old layout files
2014-09-14 15:51:36 -07:00
Jacob Alexander
28df956007 Updating DPH to compile with PartialLayer module 2014-09-11 10:57:30 -07:00
Jacob Alexander
d6d792fdf9 Changing decToInt to numToInt (adds support for Hex number interpreter)
- CLI now works with hex or decimal numbers
- Hex requires 0x (technically just x would work too)
2014-08-16 12:07:25 -07:00
Jacob Alexander
eabb1c546a Fixing RAM calculator and reduced actual SRAM usage
- Changed static variables to const that should have been const
- Updated CMake files to prepare for MCHCK custom bootloader
- Changed the USB ID numbers and ID number for bootloader
- Only generate DFU or Teensy binary image, not both
- Fixed RAM and FLASH calculator
- Added missing license in delay.c/h (much of it was taken from Teensy source though I've changed a bunch of it)
- Prepared mk20dx.c for upcoming bootloader addition
- mk20dx.h cleanup
- Reduced the MCHCK based flash size for the application image (bootloader changes requires more flash space)
- Fixed bugs in macro.c
- Added keyHold cli command
- Added show pending events debug message for PartialMap macro module
2014-08-15 10:49:44 -07:00
Jacob Alexander
19f42b0a81 Matrix scanning for ARM now functional.
- CLI Debugging options added
- Various bug fixes for the matrix scanning algorithm
- Changed debouncing algorithm
2014-08-02 22:19:33 -07:00
Jacob Alexander
d6345c307f Initial MatrixARM implementation
- Cleaned up Macro and USB callback naming
- Added security jumper for automated reload (MCHCK based only)
- Added additional LED position
2014-08-01 01:26:25 -07:00
Jacob Alexander
1fd777815b Initial work for partial layers and macros. 2014-07-15 21:29:56 -07:00
Jacob Alexander
366f6c9276 Kishsaver is fully working with DPH!
- More keyboard layouts and enhancements to come :D
2014-04-26 01:29:09 -07:00
Jacob Alexander
e444f96158 Adding different algorithm to re-enable problem keys.
- More generous to keys, and should reject all test points.
2014-04-25 23:53:46 -07:00
Jacob Alexander
219e90cdd3 Enabling USB keycodes.
- There are some bugs here:
  * Press/Release (this is a keymapping bug, has nothing to do with capsense press/release which is working)
  * Some keys give incorrect USB codes
2014-04-25 02:35:49 -07:00
Jacob Alexander
c3e1335678 Fixed repeated press/release of a single key bug.
Caveat: The problem is still there. When the averaging kicks in, there is a window of time where keypresses won't register
        This fix only delays the window a *really* long time, so the likelihood of hitting the delay is very low.
	Each keypress resets the countdown.
2014-04-25 02:06:40 -07:00
Jacob Alexander
1a5ae7fd68 Giving more breathing room for regular keys to be enable initially.
- Should be tested more on keyboards without test points (to see if more of a margin in necessary)
- Added more information messages on bootup
2014-04-25 01:26:45 -07:00
Jacob Alexander
ca1bf4fab9 Adding strobe detection.
- This requires that no strobes are floating.
  On Rev. 0.4, pins D1 and D0 of the teensy must be manually connected to GND
  On Rev. 0.2, when not using the 18 pin connector, pin C6 and C7 must be manually connected to GND
- Added a problem keys cli command, this is very useful to see which keys were disabled at startup because they looked like test points
  (the fastest way to get the keys to re-enable is to take off a keycap and jiggle the spring)
2014-04-25 01:08:15 -07:00
Jacob Alexander
5e9bcf012c Press/Release is working!
- Removed 'Zombie' code
- Still a bit of iffiness with the averaging algorithm (should be looked at again)
- Added more CLI debugging (averaging and press/debounce)
2014-04-20 01:08:02 -07:00
Jacob Alexander
5df7b55391 Adding compiler change detection.
- Tried to add auto cmake reset...so far unsuccessful
- Ported MBC-55X (was used to test compilers)
- Disabled in-source builds, to prevent CMake from shooting itself in the foot.
2014-04-19 01:51:25 -07:00
Jacob Alexander
a6e76d4fac Added better formatting for debugging code. 2014-04-17 00:34:27 -07:00
Jacob Alexander
c858078fde Added support for IBM 50key, better DPH debug, cleanup
- Strobe lines for IBM 50key
- Added CLI debugging for DPH, both per press and overall sense table
- Code cleanup (mostly just removal)
2014-04-17 00:11:36 -07:00
Jacob Alexander
c24f86b0ea Adding example CLI command to DPH module. 2014-04-16 00:20:45 -07:00
Jacob Alexander
bb9c009586 DPH Scan Module now compiles with recent architecture cleanups. 2014-04-16 00:15:09 -07:00
Jacob Alexander
c905bfdebf ADC0 is now working on Teensy 3.1. 2014-04-14 23:59:41 -07:00
Jacob Alexander
36c0b5f417 Adding initial code for ADC1 on Teensy 3.1 (and 3.0).
- To use the second ADC just specify ADC2 for all the commands.
2014-04-13 23:40:06 -07:00
Jacob Alexander
c25ded384f ADCTest DAC support for Teensy 3.1
- Vref of 1.2 V isn't working (may be due to missing setup/hardware)
2014-04-12 23:10:39 -07:00
Jacob Alexander
8ee8e3cb55 Adding analog.c lib from teensyduino.
- Mostly for reference, you shouldn't include it verbatim in your module.
2014-04-12 21:13:37 -07:00
Jacob Alexander
50d1f8c7e6 Updating Cygwin build environment for AVR and ARM. 2014-04-09 20:06:19 -07:00
Jacob Alexander
9d423a64a8 Major code cleanup and preparation for PartialMap Macro Module
- Code should be working, but much is untested
- All of the old modules will need to update and use the new DefaultMap keymap
- There might still be some naming conflicts with some Scan Modules
2014-04-06 11:49:27 -07:00
Jacob Alexander
15ec4ff71c Adding CLI and CDC Serial support for Teensy 2.0 and Teensy 2.0++
- Includes serial putchar and getchar cleanup (overall)
- Moved avr-capsense to DPH (renaming)
- Basic cleanup for including CLI on the avr architecture
2014-03-31 01:07:48 -07:00
Jacob Alexander
1accaf36cc Adding new kishsaver strobe map for new PCB revision 2014-01-12 11:39:25 -08:00
Jacob Alexander
909f20a937 Adding more USB codes and code cleanup 2014-01-12 11:27:10 -08:00
Jacob Alexander
61e45985c2 Added the averaged initial average as well as problem key rejection
- Any keys that exceed the high average are temporarily disabled
- If the sense value goes below the initial average sense, it is re-enabled
- Even works if *many* keys are pressed initially

- Still needs a bit of detection of consistent high keys that sometimes sneak below the threshold
  (May be able to have an elastic threshold that could deal with this)

- Removed dead code (and redundant calculations)
2013-12-01 23:07:38 -05:00
Jacob Alexander
dd1d3ad362 Increasing MAX_PRESS_DELTA_MV to measured min kishsaver value
- Enabling the test point strobe on the kishsaver really kills the sensing (many keys don't work, even at 400)
2013-12-01 17:13:42 -05:00
Jacob Alexander
2d5e6c4e12 Fixing the strobe count on the Kishsaver
- Should fix the last of the phantom keys
2013-12-01 14:52:54 -05:00
Jacob Alexander
6a4de5f356 Fixing more phantom keys on the kishsaver
- Not confirmed that this fixes all known phantom keypresses
2013-11-27 13:33:26 -05:00
Jacob Alexander
d5271befab Adding debounce and reorganized code
- Added debounce mechanism, currently looks for 5 consecutive scans
- Temporarily disabled the test point strobe on the kishsaver (spams debug messages, and not useful anymore; needs to be addressed before strobe detection is implemented though)
- Reorganized code to cleanup the main scan loop function
2013-11-19 03:18:44 -05:00
Jacob Alexander
c58e25d229 Adding initial Unsaver debug strobe map 2013-11-19 02:01:51 -05:00
Jacob Alexander
68f9de9ef5 Initial Terminal F strobe map
- Haven't fully verified all the strobes yet, but should be correct
2013-11-18 03:07:01 -05:00
Jacob Alexander
b32ab98cdf Adding strobe mapper and code cleanup
- Basic strobe mapper added (only kishsaver for now)
- Removed more (less obvious) dead code
- Moved keypress detection closer to detection
- Added more informative keypress debug messages
2013-11-18 02:46:48 -05:00
Jacob Alexander
3d98028679 Removed a keyscan layer and added more debug information
- Added a print macro for colourful convenience
- Removed the usb_keymap variable as it is no longer needed
- Changed usb_dirty to keymap_change (more accurate description)
- Removed the dumpkeys function and now detect key changes much sooner as well as displaying error messages more often
- Added a warming up information message and removed its error status (as it's not an error)
2013-11-17 19:17:54 -05:00
Jacob Alexander
6b38cfbaee Correcting license (should have been lgpl) 2013-11-17 16:42:41 -05:00
Jacob Alexander
a8e35f5cf5 Cleaning up cap sense Alpha code
- Added LGPL headers to appropriate files
- Removed *LOTS* of dead code
- Started standardizing formatting (important stuff done)
2013-11-16 19:37:16 -05:00
Jacob Alexander
afc227d515 Cap sense now functional! Alpha begins :D 2013-11-16 19:37:16 -05:00
Jacob Alexander
a8d8da88e4 Another dfj code merge. 2013-11-16 19:37:16 -05:00
Jacob Alexander
a108dbbbc3 Debugging kishsaver.
- Hardcoded strobe lines (required to make the hardware less noisy)
- Updated debug code
2013-11-16 19:37:16 -05:00
Jacob Alexander
4ce6d34cd8 Adapting the avr-capsense code to the Kiibohd Controller API
- Adding "template" keymap
- Removed "stray" functions, variables
- Cleaned up warnings
- Now builds
- Added buffered macro integration (rather than dealing with USB directly)
- Updated the print messages to use the Kiibohd print header

TODO
- Add generic matrix integration (this will require some changes to the matrix code)
- Add more comments...lots more
- Clean up dead code
2013-11-16 19:37:16 -05:00
Jo Makuch
99712e189e rsync'd over the changes 2013-11-16 19:37:16 -05:00
Jacob Alexander
473e3359f4 MBC-55x support virtually complete.
- I won't do any more, as I can't make the converter fully functional on a modern computer
- Basic typing support is working
- Some of the function modes move around the ASCII values, and this takes a while to decipher and figure out the pattern; it's not hard to do, and I don't really feel like doing it
- The hard part is already done :P
2013-02-01 16:49:32 -05:00
Jacob Alexander
d5c4a0a9fa UART0 on Teensy 3.0 now functional 2013-02-01 15:10:58 -05:00
Jacob Alexander
640c0f0686 Adding the MSBF register enable flag. 2013-02-01 12:17:52 -05:00
Jacob Alexander
4da44b8ff7 Adding initial ARM UART structure for UART0
- Transmit seems to be working
- Receive isn't working yet
- Inversion of the transmit signal doesn't seem to be working
2013-01-30 23:43:41 -05:00
Jacob Alexander
fc7998d605 Adding module compatibility check to CMake build scripts.
- All modules have a default avr compatibilty right now (since that is what they were developed on)
- As modules get tested and added, arm support has to be turned on in the respective setup.cmake file
2013-01-30 18:13:49 -05:00