LCD_screen Library Suite

Have you got the greatest 48 bit multiplier ever conceived? Prove it - post your code here.

Moderator: phalanx

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

LCD_screen Library Suite

Post by avenue33 » Wed Nov 09, 2011 2:02 pm

Jump to the new LCD_screen 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]

The 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD is really amazing, with touch control, micro-SD-card reader, sound player and its own dedicated controller.

I developed a library based on three layers
  1. top level for end-user libraries like dialogs and buttons
  2. core library with screen management, i.e. Serial_LCD
  3. hardware abstraction layer with proxySerial to ensure proper dialog through hardware, serial and I2C serial ports
Image

This new release 14 brings some novelties:
  • proxySerial library is now a stand-alone library.
  • It can now be used by other libraries, as Serial_GPS.
  • It includes utilities like ftoa
Let's have some fun! I ported this game of life and it runs pretty fast on the chipKIT. Integers only, pixels updated if changed, fast serial at 115200.

Image

More details on my website.

Enjoy!
Last edited by avenue33 on Sat Dec 07, 2013 11:44 am, edited 4 times in total.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

Re: 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD Library

Post by avenue33 » Sat Jan 07, 2012 1:32 am

Release 22 of :arrow: Serial_LCD for 4D Systems (SGC) LCD touch-screens brings a new high-level GUI library with:
button,
dialog window,
menu and
label.

Also includes:
• max vertical and horizontal according to orientation
• (x0, y0, dx, dy) coordinates system added to (x1, x2, y1, y2) = (x0, y0, x0+dx, y0+dy)
• readTextFile from sebgiroux — merci !
• RAW mode for faster screen copy to/read from SD card

Enjoy :)
Last edited by avenue33 on Sat May 05, 2012 12:46 am, edited 3 times in total.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

Re: 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD Library

Post by avenue33 » Thu Jan 12, 2012 3:58 am

Release 23 includes
  • VGA support
  • library release number check,
  • updated examples with test release
At usual, find the code :arrow: here and explanation :arrow: there :!:
Last edited by avenue33 on Tue May 15, 2012 11:43 am, edited 2 times in total.

jerryhiggins
Posts: 8
Joined: Mon Jan 09, 2012 2:45 pm

Re: 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD Library

Post by jerryhiggins » Tue Jan 17, 2012 8:15 am

Thank you for posting all of this! Have you had a chance to work with the GFX model?

I've been looking at the 4D displays as well, and can't decide between the GFX or SGC model. The GFX seems to be completely self contained, whereas the SGC looks like something of a smart HMI (for lack of a better term). I'm leaning towards the GFX, but I'd like to find out how robust its serial communications are since I would probably use it with an Xbee/Arduino.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

Re: 4D Labs μLCD-32PT(SGC) 3.2” Serial LCD Library

Post by avenue33 » Wed Feb 15, 2012 1:20 am

Actually, GFX and SGC are the very same screens, except the firmware.

My library suite relies on SGC = serial graphic controller. The Arduino or chipKIT boards interact with the screen through a serial connection.

GFX is another configuration: the screen runs stand-alone and uses the built-in micro-controller for both the screen and I/Os. There's no need to connect the screen to an Arduino or chipKIT board.

Firmware can easily be updated. The 4D Systems programming cable is highly recommend —actually, not sing it could void the warranty.

Enjoy!

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Wed Feb 15, 2012 1:22 am

Please find a bug-fix release with a bug-fix for the Arduino IDE:

__AVR__ is recognised by chipKIT MPIDE solely but not by Arduino IDE.
• Arduino IDE requires __AVR_ATmega328P__ or similar.

Adapt __AVR_ATmega328P__ to __AVR_ATmega1280__ or __AVR_ATmega2560__ based on your Arduino mega board.

In the .h files, please change the code from

Code: Select all

#if defined(__AVR__)
to

Code: Select all

#if defined(__AVR__)  || defined (__AVR_ATmega328P__)
or simply add

Code: Select all

#define __AVR__
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

Example sketches have been updated.
Last edited by avenue33 on Sat May 05, 2012 12:47 am, edited 1 time in total.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Sun Mar 18, 2012 7:41 am

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.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Sun Mar 18, 2012 12:04 pm

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

Learn more about Gallery with code snippet, pictures and video.
Last edited by avenue33 on Tue May 15, 2012 11:43 am, edited 1 time in total.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Mon Mar 19, 2012 11:42 am

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!

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Tue Mar 20, 2012 3:09 pm

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

Available :arrow: here!

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Sat Mar 24, 2012 6:59 am

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.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Sat Mar 31, 2012 10:11 am

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.

Learn more :arrow: here. Enjoy!
Last edited by avenue33 on Wed Apr 11, 2012 10:44 am, edited 1 time in total.

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Sun Apr 01, 2012 3:04 am

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!

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Wed Apr 11, 2012 5:23 am

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!

avenue33
Posts: 101
Joined: Wed Dec 01, 2010 12:42 pm
Contact:

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

Post by avenue33 » Mon Apr 23, 2012 1:53 pm

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 :arrow: here and code :arrow: there.

Post Reply