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_3b_autoShift.md

25 lines
865 B
Markdown
Raw Normal View History

2016-05-09 14:05:08 +00:00
Tutorial 3b - autoShift
=======================
2016-05-10 15:05:25 +00:00
When you finish this tutorial your keyboard will be able to automatically shifted characters.
2016-05-09 14:05:08 +00:00
## AutoShift
2016-05-10 15:05:25 +00:00
Some mulit-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 library does this by automatically sending the MODIFIERKEY_SHIFT scancode.
2016-05-10 15:05:25 +00:00
The [keybrd_3_autoShift_annotated.ino](keybrd_proj/keybrd/examples/keybrd_3_autoShift_annotated/keybrd_3_autoShift_annotated.ino)
sketch explains the AutoShift feature.
2016-05-09 14:05:08 +00:00
Two keybrd classes use AutoShift:
* Code_ScS
* Code_ScNS
## Exercises
1) Modify the keybrd_3_autoShift_annotated sketch to make a 3-layer keyboard with two Code_LayerHold objects.
| Layout | **0** | **1** |
|:------:|-------|-------|
| **0** | a ! 6 | b @ 7 |
| **1** | sym | num |