(Provide a demo circuit) |
(Add simpler store last key value demo) |
||
Line 13: | Line 13: | ||
[[File:Keyboard demo.png]] | [[File:Keyboard demo.png]] | ||
This simple demo show how to store the most recent key event. In this picture it was the {{kbd|a}} up. | |||
{{Note|In "run fast" mode the register will not appear to update, but the value is being saved and can be used as expected.}} | {{Note|In "run fast" mode the register will not appear to update, but the value is being saved and can be used as expected.}} | ||
This can be adatped to store only the key value by removing the wire from <code>key_up</code> | == Example: Store last key only == | ||
This can be adatped to store only the key value (discarding any key up/down data) by removing the wire from <code>key_up</code> and using an 8-bit register. | |||
[[File:Keyboard_demo_value.png]] | |||
== Alpha == | == Alpha == | ||
The positions and meanings of the IO pins changed with the save_breaker alpha, builds using the keyboard will need to be adapted. | The positions and meanings of the IO pins changed with the save_breaker alpha, builds using the keyboard will need to be adapted. |
Latest revision as of 13:06, 20 May 2025
![]() | |
Type | io / sandbox |
---|---|
Unlocked by | Lab |
Example: Store last event[edit | edit source]
This simple demo show how to store the most recent key event. In this picture it was the
up.This simple demo show how to store the most recent key event. In this picture it was the
up.In "run fast" mode the register will not appear to update, but the value is being saved and can be used as expected.
Example: Store last key only[edit | edit source]
This can be adatped to store only the key value (discarding any key up/down data) by removing the wire from key_up
and using an 8-bit register.
Alpha[edit | edit source]
The positions and meanings of the IO pins changed with the save_breaker alpha, builds using the keyboard will need to be adapted.