Commit Graph

25756 Commits

Author SHA1 Message Date
74d8f16c1d Keychron V3: correct layout data (#19567)
* keychron/v3/ansi_encoder: correct layout data

* keychron/v3/iso_encoder: correct layout data
2023-01-11 22:33:30 +00:00
b61654fb95 Tidy up use of CTPC (#19570) 2023-01-11 22:31:54 +00:00
6576127b4c Merge remote-tracking branch 'origin/master' into develop 2023-01-11 14:18:08 -08:00
377f87cb7e Keychron V1: correct layout data for ANSI versions (#19558)
* keychron/v1/ansi: correct layout data

* keychron/v1/ansi_encoder: correct layout data
2023-01-11 12:50:11 -08:00
46c85c93f0 Revert "De-duplicate platform detection (#19545)" (#19564)
This reverts commit e11235ee14.
2023-01-11 19:58:27 +00:00
e11235ee14 De-duplicate platform detection (#19545) 2023-01-11 02:13:32 +00:00
20474ae232 Fix CLI community detection (#19562) 2023-01-11 12:38:35 +11:00
a1676c3b8c [Keyboard] Work Louder updates for via v3 (#19555) 2023-01-10 16:35:33 -08:00
f4a25bcfaf Merge remote-tracking branch 'origin/master' into develop 2023-01-10 16:34:14 +00:00
5e5b19cf94 Keychron S1 ANSI Layout Touch-Up (#19556) 2023-01-10 15:09:09 +00:00
2ce52c5b54 lotus: keypress command just does RGB handling
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-01-10 17:58:39 +08:00
e7061ed797 lotus: Update matrix to use NO_LED
Clearer than magic number.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-01-10 17:53:33 +08:00
6b81ba1d4c Merge remote-tracking branch 'origin/master' into develop 2023-01-10 09:06:09 +00:00
aba67829e9 [Keymap] Kbdfans Tiger 80 keymap & Planck keymap (#19428)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Abhishek Malavalli <abhishek.malavalli@fphcare.co.nz>
2023-01-10 01:05:31 -08:00
5b4f836e8c lotus: Fix Key Matrix to LED Index
Now the key press based animations work!

Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-01-10 16:26:09 +08:00
64dea51094 Merge remote-tracking branch 'origin/master' into develop 2023-01-10 06:39:27 +00:00
4d83583410 [Keymap] Updated Freoduo keymap (#19351) 2023-01-09 22:38:54 -08:00
78e762028f lotus: Remove factory commands that overlap with VIA
Can use qmk_hid for those now, yay!

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-10 11:29:40 +08:00
8bc85c0f42 Merge remote-tracking branch 'origin/master' into develop 2023-01-10 03:22:17 +00:00
90fd08bf4b [Bug] Use correct functions for RGB Matrix support in VIA (#19554) 2023-01-10 03:21:38 +00:00
56555c61e1 Migrate LAYOUTS to data driven (#19541)
* Migrate `LAYOUTS` to data driven, 0-9

* Migrate `LAYOUTS` to data driven, A

* Migrate `LAYOUTS` to data driven, B

* Migrate `LAYOUTS` to data driven, C

* Migrate `LAYOUTS` to data driven, D

* Migrate `LAYOUTS` to data driven, E

* Migrate `LAYOUTS` to data driven, F

* Migrate `LAYOUTS` to data driven, G

* Migrate `LAYOUTS` to data driven, H

* Migrate `LAYOUTS` to data driven, handwired

* Migrate `LAYOUTS` to data driven, I

* Migrate `LAYOUTS` to data driven, J

* Migrate `LAYOUTS` to data driven, K

* Migrate `LAYOUTS` to data driven, L

* Migrate `LAYOUTS` to data driven, M

* Migrate `LAYOUTS` to data driven, N

* Migrate `LAYOUTS` to data driven, O

* Migrate `LAYOUTS` to data driven, P

* Migrate `LAYOUTS` to data driven, Q

* Migrate `LAYOUTS` to data driven, R

* Migrate `LAYOUTS` to data driven, S

* Migrate `LAYOUTS` to data driven, T

* Migrate `LAYOUTS` to data driven, U

* Migrate `LAYOUTS` to data driven, V

* Migrate `LAYOUTS` to data driven, W

* Migrate `LAYOUTS` to data driven, X

* Migrate `LAYOUTS` to data driven, Y

* Migrate `LAYOUTS` to data driven, Z
2023-01-10 02:48:20 +00:00
30328f6f57 lotus: Enable RGB effects that react to keypress
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-10 10:18:35 +08:00
59ae682dc9 Merge remote-tracking branch 'origin/master' into develop 2023-01-10 00:49:04 +00:00
caca029e12 [Keyboard] add YMDK40 AIR40 (#19276)
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
2023-01-09 16:48:11 -08:00
2dd4359181 Merge remote-tracking branch 'origin/master' into develop 2023-01-09 23:50:53 +00:00
0becd33c4d [keyboard] Enable community layout support (#19499) 2023-01-09 23:50:18 +00:00
14fabfd893 Merge remote-tracking branch 'origin/master' into develop 2023-01-09 21:34:03 +00:00
01de98428c [Keychron Q5] Build failures: recursive function call. (#19553) 2023-01-10 08:33:28 +11:00
3a726203a4 Merge remote-tracking branch 'origin/master' into develop 2023-01-09 20:19:56 +00:00
2891d901c3 New ChibiOS SVN URL, added new release. (#19493) 2023-01-10 07:19:20 +11:00
b57714f793 qmk doctor - Handle timeouts while checking binaries (#19549) 2023-01-09 09:27:41 +00:00
a3ed1b0c8d Relax converter within keymap schema (#19544) 2023-01-09 09:23:02 +00:00
1b045b1e60 Handle doctor permission issues while checking udev (#19548) 2023-01-09 08:21:21 +00:00
cf55032485 Merge remote-tracking branch 'origin/master' into develop 2023-01-08 15:27:43 +00:00
1c024bfa91 Add some missing layout data (#19539) 2023-01-08 15:26:37 +00:00
c172ae107e Merge remote-tracking branch 'origin/master' into develop 2023-01-07 17:07:51 +00:00
f6023a36bc Remove invalid pin_compatible config from defaults (#19512) 2023-01-07 17:07:19 +00:00
974a1eaf2a Ignore defaults.hjson values if already set (#19511)
* Ignore defaults.hjson values if already set

* Add warning when nothing is merged
2023-01-07 17:05:53 +00:00
403c7eeb5c Merge remote-tracking branch 'origin/master' into develop 2023-01-07 17:03:18 +00:00
c5e3275299 Fix handwired/onekey/kb2040 WS2812 pin (#19517) 2023-01-07 17:02:40 +00:00
920b502077 lotus: Reduce sleep before ADC read
5us seems enough sleep. Still works

Also need to measure delay not between each ADC scan but between each
matrix scan! That's what matters to the user.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 22:49:16 +08:00
8d392644b0 lotus: Remove pins that we don't use
Now if you grep GP0 through GP29 they'll all only show for the exact
uses we need them for.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 22:25:27 +08:00
48deca2b32 lotus: Add host SLEEP# detection
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 22:17:19 +08:00
50136360e7 lotus: Auto start ADC conversion
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 21:58:51 +08:00
b192ff0c3e lotus: Fix print_float
Would print 3.09 as 3.9. Need to add leading 0.

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 21:53:35 +08:00
1413dfa26e lotus: Add some comments
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 21:47:46 +08:00
e37039c23e lotus: Add two missing columns
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 21:35:35 +08:00
12c192c323 lotus: Integrate ADC reading into matrix logic
Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 21:35:16 +08:00
72247be69f lotus: Clean up ADC code a bit
Should now work on non-pi and prints:

```
...
Framework Computer Inc:Lotus Keyboard:1: scan
Framework Computer Inc:Lotus Keyboard:1: 5 ms (200 Hz)
Framework Computer Inc:Lotus Keyboard:1: Temperature: 18.71
Framework Computer Inc:Lotus Keyboard:1: ADC Voltage: 0.1
Framework Computer Inc:Lotus Keyboard:1: scan
Framework Computer Inc:Lotus Keyboard:1: 6 ms (166 Hz)
Framework Computer Inc:Lotus Keyboard:1: Temperature: 18.24
Framework Computer Inc:Lotus Keyboard:1: ADC Voltage: 0.1
Framework Computer Inc:Lotus Keyboard:1: scan
Framework Computer Inc:Lotus Keyboard:1: 6 ms (166 Hz)
...
```

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 20:58:38 +08:00
37aae1748e lotus: Implement quick ADC reading
Has to be started manually:
hidapitester --vidpid 32ac/0012 --usagePage 0xFF60 --usage 0x0061 -v --open -l33 --send-output 0,11,3

Will print:

```
Framework Computer Inc:Lotus Keyboard:1: After handle_samplescan
Framework Computer Inc:Lotus Keyboard:1: prev: 959345
Framework Computer Inc:Lotus Keyboard:1: curr: 959352
Framework Computer Inc:Lotus Keyboard:1: 7 ms
Framework Computer Inc:Lotus Keyboard:1: 142 Hz
Framework Computer Inc:Lotus Keyboard:1: letsgo
Framework Computer Inc:Lotus Keyboard:1: adc_end_callback
Framework Computer Inc:Lotus Keyboard:1: After adcConvert
Framework Computer Inc:Lotus Keyboard:1: Raw ADC samples: 1004, 892, 1003, 892
Framework Computer Inc:Lotus Keyboard:1: Temp: 19.64
Framework Computer Inc:Lotus Keyboard:1: ADC Voltage: 0.80
```

Signed-off-by: Daniel Schaefer <git@danielschaefer.me>
2023-01-07 19:49:24 +08:00