- https://pyra-handheld.com/boards/pyrapics/pyrared.png
- main inspiration
- shoulder buttons as mx keys is what really sells it for me though
- would be neat to have game controls, but not required
- ~46 keys in 4 staggered rows, not including game keys etc
- https://i.ytimg.com/vi/6fZhIYBObWU/maxresdefault.jpg
- 4 row minimalist celphone layout
- could work well as a multi-layer layout?
- 10x4 grid, space is two keys, so 39 buttons
- http://img.weiku.com/a/006/018/New_Qwerty_Keyboard_Java_Wifi_TV_Flip_Cell_Phone_T3000_4188_1.jpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (srfi srfi-1)) | |
;; "record-types" will end up looking something like this: | |
;; | |
;; ((camera (matrix #:mat4)) | |
;; (model (position #:vec3) | |
;; (matrix #:mat4) | |
;; (clip-space (* (camera matrix) (model matrix) (model position))))) | |
(define record-types '()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (srfi srfi-1)) | |
(define (limit matcher list) | |
(define matched '()) | |
(for-each | |
(lambda (item) (if (matcher item) (set! matched (cons item matched)))) | |
list) | |
matched) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (srfi srfi-1)) | |
(load "patterns.scm") | |
(define all-drains '()) | |
(define (register-drain! drain) | |
(set! all-drains (cons drain all-drains)) | |
drain) | |
(define (solved?) | |
(every (lambda (drain) (not (null? (drain 'type)))) all-drains)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pinout assumes Arduino Micro | |
int verticals[] = { 6, 5, 4, 3, 2 }; | |
int horizontals[] = { 12, 11, 10, 9, 8 }; | |
// State tracker for keyboard events | |
bool state[5][5]; | |
// Define which pin sets are used for what when scanning. | |
#define drains verticals | |
#define inputs horizontals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "DataSource" classes are used to define assorted properties and | |
# functions that might be used by a shader. The properties etc are | |
# not specific to any particular shader stage. So, "vertex" | |
# properties will have an implied varrying variable if they're | |
# accessed from the fragment shader. | |
class BasicModel(DataSource): | |
position = vertex.float4(index=0) | |
normal = vertex.float3() | |
uv = vertex.float2() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: 10110000 ( 0xb0 ) status : Control Change, Channel: 0 | |
2: 01111100 ( 0x7c ) data : 124 | |
3: 00000000 ( 0x0 ) data : 0 | |
4: 01111111 ( 0x7f ) data : 127 | |
5: 00000000 ( 0x0 ) data : 0 | |
6: 11111110 ( 0xfe ) event : Active Sense | |
7: 11111110 ( 0xfe ) event : Active Sense | |
8: 11111110 ( 0xfe ) event : Active Sense | |
9: 11111110 ( 0xfe ) event : Active Sense | |
10: 11111110 ( 0xfe ) event : Active Sense |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38: 11111110 ( 0xfe ) event : Active Sense | |
39: 11111110 ( 0xfe ) event : Active Sense | |
40: 11000000 ( 0xc0 ) status : Program Change, Channel: 0 | |
41: 00000001 ( 0x1 ) data : 1 | |
42: 11111110 ( 0xfe ) event : Active Sense | |
43: 11111110 ( 0xfe ) event : Active Sense | |
44: 11111110 ( 0xfe ) event : Active Sense | |
45: 11111110 ( 0xfe ) event : Active Sense | |
46: 11111110 ( 0xfe ) event : Active Sense | |
47: 11111110 ( 0xfe ) event : Active Sense |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat">NUL' > /mnt/c/Users/aeva/cl.bat | |
echo '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe" %*' >> /mnt/c/Users/aeva/cl.bat | |
alias cl="cmd.exe /q /c C:/Users/aeva/cl.bat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
CASE 1: OLD | |
samples: 2 | |
ray hit: | |
(tx: 1.2360679774997898, sd: -2.220446049250313e-16) | |
error: 0.0 | |
-------------------------------------------------------------------------------- |