Microcontrollers are wonderfully useful things, but programming them can be a little daunting if you’re used to the simplicity of compiling for regular PCs. Over time though, this has become easier. Communities have strayed away from assembly code and created higher-level languages such as Micropython, to allow these devices to be programmed in a more accessible manner. Unfortunately, Micropython has historically lacked a decent high-level GUI library. Thankfully, that’s no longer the case, with [amirgon] porting LittlevGL to the platform.
Putting a GUI into a project with a screen seems simple, until one actually gets down to brass tacks. A simple button can consist of a background color, text, and a symbol – and that’s not even considering the use of shading or other visual effects. Having a library to handle the grunt work can massively cut down development time.
[...] There are other approaches to this problem, too – with MyOpenLab being a particularly versatile example.
(Score: 2) by krishnoid on Monday March 04 2019, @02:15AM (4 children)
Is there a good cross-platform curses-style library available? It's difficult to get something like that to work under a Windows cmd shell, but at least on Linux, the interactivity in curses apps gets faster over time as CPU speeds increase and pty code stays the same.
It's very handy to ssh in/out and reconnect to multiple emacsclient sessions in different screen/tmux windows, flipping between them quickly and never experiencing any significant lag to speak of.
(Score: 4, Funny) by Subsentient on Monday March 04 2019, @03:29AM (1 child)
Try this [sourceforge.io], though I sure haven't. Windows shells are a real cat shit smoothie compared to almost anything else. It's quite depressing, really. Expect a lot of the ncurses functionality not to work, or to be weird and broken, and to be inconsistent across Windows versions.
"It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti
(Score: 3, Informative) by Fnord666 on Monday March 04 2019, @12:59PM
COTD for sure!
(Score: 3, Informative) by NotSanguine on Monday March 04 2019, @05:05AM (1 child)
Use something like Cygwin/X [cygwin.com] to give you decent terminal support with full support for ncurses on Windows.
No, no, you're not thinking; you're just being logical. --Niels Bohr
(Score: 3, Informative) by Subsentient on Monday March 04 2019, @06:31AM
The problem with that is that you have to pull in that huge runtime just to be able to run the application.
"It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti