LCD_screen Library Suite

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

LCD_screen Library Suite

Post by avenue33 »

Jump to the new LCD_screen Library Suite

Please find the latest release of the Serial_LCD library suite.

Please find the new LCD_screen Library Suite that replaces the Serial_LCD Library Suite.

The LCD_screen Library Suite supports a wider range of SPI and 16-parallel affordable screens, apart from the 4D Systems Picaso-based serial screens.
Enjoy :)

[hr]

This library suite works with all 4D Systems screens, uLCD, uOLED and uVGA. It handles text and graphic display, touch, SD-card and sound.
Image

High level library GUI provides label, buttons, menu, dialog box.
Image Image

High level library Graphics provides clock, gauge and histogram graphics.
Image Image
Hardware, software and I2C serial connections are managed through the proxySerial library.

Image

Serial_LCD: Feb 12, 2012 release 119a - __AVR_ATmega328P__ added
proxySerial: Feb 12, 2012 release 106a - __AVR_ATmega328P__ added
button / GUI: Feb 12, 2012 release 108a - __AVR_ATmega328P__ added
Graphics: Feb 12, 2012 release 106a - __AVR_ATmega328P__ added

Find documentation, code, tutorials and examples at :arrow: 4D Systems μLCD-μLED-μVGA Serial_LCD Library.

Enjoy :)
Last edited by avenue33 on Sat Dec 07, 2013 2:44 pm, edited 3 times in total.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

As at today, the Serial_LCD library suite is based on Arduino 0023. I'm currently working on an update to Arduino 1.0.

I'd like to take this opportunity to improve the syntax of the functions and make them more consistent.

This means some functions are going to change. For example,

Code: Select all

uint8_t Serial_LCD::gText(uint16_t x, uint16_t y, uint16_t colour, String s)
is going to change for

Code: Select all

uint8_t Serial_LCD::gText(uint16_t x, uint16_t y, String s, uint16_t colour = whiteColour)
with same order: first horizontal and vertical coordinates, then active value, and finally options pre-populated.

What do you think? Answer this :arrow: quick survey!

Thank you.

User avatar
philba
 
Posts: 387
Joined: Mon Dec 19, 2011 6:59 pm

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by philba »

Since you are the author, you get to do what ever you want! However, for all the newbees out there, I hope you maintain backward compatibility. There is nothing more discouraging to a newbee when he or she downloads a sketch written for an older version of your library and get's all sorts of errors. Especially since GCC is deeply geeky when it comes to error messages. I still see people asking about problems in sketches they've downloaded which trace back to the changes in the wire library. Since C++ allows you to have multiple definitions of a given function (er, method), you should be able to maintain compatibility and update functionality.

Ideally, sketches written against older versions of your library will just work with the new library.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

A coming library displays an image gallery on 4D Systems screens.

Image

Image

Learn more about :arrow: Gallery with code snippet, pictures and video.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

The new release of Serial_LCD for Arduino 1.0 is available.

Thank you to all those who answered the survey :).

A very limited list of functions has a new syntax.

This ensures a better consistency. Non-essential parameters are pre-populated with default values.

Code: Select all

uint8_t tText(uint8_t x, uint8_t y, String s, uint16_t colour=whiteColour)
Note the default value whiteColour for colour.

Learn more :arrow: here!

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Update with Serial_LCD_main example for
• Arduino Uno using SoftwareSerial port
• and Arduino mega2560 using hardware port Serial3

Available :arrow: here!

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Please find the new releases of the Serial_LCD library suite:
• for Arduino 0023 and chipKIT 0023: fixed issue linked to Arduino mega2560 uploader bug
• for Arduino 1.0: with all libraries, including the new photo Gallery library and examples.

Use your screen as a image gallery: pictures and video!

Documentation, tutorials, examples and code are available at :arrow: 4D Systems μLCD-μLED-μVGA Serial_LCD Library Suite.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

The Serial_LCD library includes a new graphic: gauge.

On the same screen, an histogram and a gauge display can be combined and share the same data.

Image

Learn more :arrow: here. Enjoy!

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Please find the FAQ with answers to the often raised question I receive about 4D Systems screens and the Serial_LCD library suite.

• After resetting a sketch, the screen doesn't respond.
• Which micro-SD to use?
• My screen doesn't light up.
• My screen doesn't play sound.
• My screen doesn't respond when I use faster serial speeds.
• My screen hangs when I use touch.

Read the :arrow: FAQ!

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

I decided to go away from Google, which is concentrating too much power over single hobbyists like me. So I closed the accounts for all the products I had.

The new website is embeddedcomputing.weebly.com/
Dedicated Serial_LCD section is at embeddedcomputing.weebly.com/serial-lcd.html
Code is back on GitHub at github.com/rei-vilo/Serial_LCD
My Twitter is twitter.com/rei_vilo

See you there!

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Please find the latest revision of the GUI library, with a slider.

Apr 22, 2012 release 109 • GUI slider added
slider_main example

Image

Documentation is here and code there.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

New library Energy to manage backlight and save power

Apr 28, 2012 release 101 • Initial release

Learn more here

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Up to now, the embedded graphic micro-controller —Picaso or Goldelox— was determined by the type of device —μOLED, μLCD or μVGA.

I faced a dilemma with the μLCD14: although a μLCD, it is powered by the Goldelox micro-controller.

Find the new algorithm at :arrow: Intermediate Level: Self-Information with the updated info_main example.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

The next major release of the Serial_LCD library suite also features code size optimisation, on top of unification —one single set of libraries for Arduino 23 and 1.0, Wiring and MPIDE— and documentation —PDF and Xcode native docset.

As an example, the memory footprint of the compiled library in charge of the GUI —with label, button, menu, dialog box and slider— has shrunk by 4 KB.

Other libraries are scrutinised under the same process, saving 2 KB out of the Graphics library.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: 4D Labs μLCD-μLED-μVGA Serial LCD Library

Post by avenue33 »

Please find the new release of the Serial_LCD library suite, with

Jul 12, 2012 release 132

• Unified release: one single library for Arduino 23 and 1.0, chipKIT MIPDE and Wiring
• Optimised code: lighter memory footprint
• New graphic: multiple histogram with up to 4 series of values

Image

As always, find documentation, tutorials, examples, code and downloads at :arrow: http://embeddedcomputing.weebly.com/serial-lcd

Documentation on a PDF file is planned to be released later on.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”