by Matt Gemmell
It's a text-entry menu plugin for the Raspberry Pi's Display-O-Tron.
- Any Raspberry Pi
- Any Display-O-Tron (either HAT or 3000)
- Pimoroni's Display-O-Tron code and examples
It lets you enter text on the Display-O-Tron (DOT), using either the touch-controls or the joystick, depending on which version of the DOT you have.
It's basically a games-console-like text-entry system, with a grid of letters and numbers, and a cursor to move around and select them for entry. Here it is in action:
And here's my original design plan for it:
(Here's a larger version.)
You move around with the directional controls, enter characters into the input field with the Select touch-button (or pressing the joystick), and if you have a DOT HAT, you can use the Cancel button as a Delete key.
The keyboard can be toggled into uppercase, lowercase, or symbols mode. There are also options to quit the editor, or accept what you've typed so far (it'll be returned to the parent menu system, for use by whatever menu used this plugin as its input-handler).
That's about it.
Use it as a plugin for your existing menus, using Pimoroni's menu API. You can also use it on its own, I suppose. See the included text-test.py
file.
Matt Gemmell (that's me).
-
My website is at mattgemmell.com
-
I'm on Twitter as @mattgemmell
-
This code is on github at github.com/mattgemmell/DOT-MGTextEntry
The MIT license.
If you need a difference license, feel free to ask. I'm flexible about this.
It's my first ever Raspberry Pi-related coding project. Mostly for fun.
Nope. If you find a bug, please fix it and submit a pull request via github.
Feel free to create an issue with your idea.
You can:
-
Check out my Amazon wishlist.
-
Say thanks on Twitter, I suppose.