Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/tutorials/tutorial_3f_autoShift.md

36 lines
2.1 KiB
Markdown
Raw Normal View History

Tutorial 3f - autoShift
2016-05-09 14:05:08 +00:00
=======================
2016-07-18 02:26:00 +00:00
Some multi-layer keyboards have a symbols layer that writes symbols without using the shift key:
2016-05-09 14:05:08 +00:00
2016-05-10 15:05:25 +00:00
~ ! @ # $ % ^ & * () _ {} | < > : ?
2016-05-09 14:05:08 +00:00
The keybrd AutoShift class automatically sends a MODIFIERKEY_SHIFT scancode as needed.
2016-05-09 14:05:08 +00:00
Two keybrd classes use AutoShift:
* Code_ScS
* Code_ScNS
The [keybrd_3f_autoShift.ino](keybrd_3f_autoShift/keybrd_3f_autoShift.ino) sketch explains the AutoShift feature.
2016-07-18 02:26:00 +00:00
It will run on the basic breadboard keyboard described in [tutorial_1_breadboard_keyboard.md](tutorial_1_breadboard_keyboard.md).
After reading the sketch you too will be able to automatically shifted characters.
![basic breadboard keyboard](keybrd_1_breadboard/breadboard_keyboard_2x2.JPG "basic breadboard keyboard")
Exercises
---------
1) Modify the keybrd_3f_autoShift sketch to make a 3-layer keyboard with a default layer and two Code_LayerHold objects.
2016-05-09 14:05:08 +00:00
| Layout | **0** | **1** |
2016-07-18 02:26:00 +00:00
|:------:|:-----:|:-----:|
| **0** | a ! 1 | b @ 2 |
2016-07-22 08:34:23 +00:00
| **1** | sym | num |
2016-05-11 15:25:48 +00:00
2) Modify the keybrd_3f_autoShift sketch to write 1 and 2, regardless of if shift is held down or not (hint: use Code_ScNS).
| Layout | **0** | **1** |
|:------:|-------|-------|
| **0** | a 1 | b 2 |
| **1** | fn | shift |
2016-07-18 02:26:00 +00:00
<br>
2016-07-21 20:20:07 +00:00
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">keybrd tutorial</span> by <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd" property="cc:attributionName" rel="cc:attributionURL">Wolfram Volpi</a> is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <a xmlns:cc="https://creativecommons.org/ns" href="https://github.com/wolfv6/keybrd/issues/new" rel="cc:morePermissions">https://github.com/wolfv6/keybrd/issues/new</a>.