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: 5, Informative) by c0lo on Monday March 04 2019, @03:38AM (1 child)

    by c0lo (156) Subscriber Badge on Monday March 04 2019, @03:38AM (#809685) Journal

    Yeah, was gonna say, even an 8-bit ATTiny25 can run C or C++, as gcc has official support for AVR.

    To put the things in perspective:

    TFA:

    Micropython highlights

    • Compact - fit and run within just 256k of code space and 16k of RAM. No OS is needed, although you can also run it with OS, if you want.

    ATTiny25 spec [microchip.com]:

    2/4/8K ISP flash memory, 128/256/512 Bytes EEPROM, 128/256/512B SRAM

    --
    https://www.youtube.com/watch?v=aoFiw2jMy-0 https://soylentnews.org/~MichaelDavidCrawford
    Starting Score:    1  point
    Moderation   +3  
       Interesting=1, Informative=2, Total=3
    Extra 'Informative' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   5  
  • (Score: 2) by Subsentient on Monday March 04 2019, @03:41AM

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

    Thank you. Illustrates my point nicely.

    --
    "It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti