Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Monday March 04 2019, @01:44AM   Printer-friendly
from the micro-gooey dept.

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.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by krishnoid on Monday March 04 2019, @02:15AM (4 children)

    by krishnoid (1156) on Monday March 04 2019, @02:15AM (#809654)

    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.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 4, Funny) by Subsentient on Monday March 04 2019, @03:29AM (1 child)

    by Subsentient (1111) on Monday March 04 2019, @03:29AM (#809681) Homepage Journal

    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

      by Fnord666 (652) on Monday March 04 2019, @12:59PM (#809750) Homepage

      Windows shells are a real cat shit smoothie compared to almost anything else.

      COTD for sure!

  • (Score: 3, Informative) by NotSanguine on Monday March 04 2019, @05:05AM (1 child)

    It's difficult to get something like that to work under a Windows cmd shell,

    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

      by Subsentient (1111) on Monday March 04 2019, @06:31AM (#809715) Homepage Journal

      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