From other macro input devices offered homemade author Instructables under the nickname raul7321 is distinguished by the presence of a display and a memory card. The text file is stored on the map with 64 macro commands, divided into 8 pages, with 8 displayed macro commands on each. In page selection mode, the display shows their names.
The master takes the basis of the 3D model of the device case housing for PMOLED display (CC-BY 3.0), developed by Thingiverse author under the nickname TAz00. It completes, adding everything else, and it turns out like this:
The wizard uploads the files: base, case with keyboard cover, memory card cover, top cover with a hole for the display. Then makes a diagram of the device:
Arduino Applied type Pro Micro Leonardo on the Atmega32u4 microcontroller. PMOLED display - 0.96-inch, resolution 128x64. A modulator with a memory card holder is ready-made, or home-made, made from a Micro SD-SD adapter. The keyboard is touch-sensitive, such as TTP226. There are also two mechanical buttons: the upper one is for switching to the page selection mode, the lower one is for resetting.
The wizard connects the components according to the scheme, prints the case and puts the assembly result into it.
Then the master writes a sketch and puts it here. Then it composes the text file macros.txt of the structure shown below and places it on the memory card.
- / Page1 / -NamePage1
- / Macro1 / -NameMacro1
.
.
- / Macro2 / -NameMacro2
.
.
- / Macro3 / -NameMacro3
.
.
- / Page2 / -NamePage2
- / Macro1 / -NameMacro1
.
.
- / Page8 / -NamePage8
- / Macro8 / -NameMacro8
As an example, the wizard uploads here a file with common macros for LaTeX, Arduino, C and Python.
How to use the device:
1. Connect to USB - defined as another keyboard.
2. Use the page selection button to enter the corresponding mode.
3. Press the key with the page number, it will be selected.
4. When you need to enter a macro, press the key with its number.
5. If necessary, change the page to another, repeat step 2.3.
6. If the microcontroller freezes, press the reset button.