FTOLED Updates

128x128 pixel 1.5" full colour OLED display with MicroSD card slot. [Product page]
angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

FTOLED Updates

Post by angusgr » Mon Oct 14, 2013 12:13 am

(This is a thread outlining changes to our FTOLED library, as they are made.)

The FTOLED library is an Arduino library providing graphics support for the OLED128 display module.

Some minor updates today:

Features
  • drawString() can now take a string stored in flash to save RAM, using the F() macro. The fonts_demo example sketch (part of the library) shows how.
  • New drawString_P() method for advanced users, takes a PROGMEM pointer directly. Equivalent to some of the _P string methods in avrlibc.
  • Better flicker-free OLED_TextBox update technique, removes the previous need to print spurious spaces. See the strip_chart example or the Displaying Text wiki page for details.
Bugfixes
  • Can now scroll a one-line OLED_TextBox without hanging the sketch.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Wed Nov 27, 2013 12:30 am

New Feature

* setOrientation() method allows display to be rotated by 90, 180 or 270 degrees. Details here in the function reference.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Sun Dec 01, 2013 9:23 pm

The Library now compiles under the Teensy 3.0 TeensyDuino environment (thanks Paul Stoffregen!)

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Sun Jan 19, 2014 10:27 pm

Few small updates:

* Library now works again on Arduino Due. (A compiler bug was triggered when setOrientation() support was added.)

* Added a stringWidth() function to predetermine how much space a string will take up.

* Fix for the drawBox() method not drawing one edge correctly whenever width != height.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Sun Feb 09, 2014 11:18 pm

* Changed SPI mode 3 to mode 0. Display still works the same, but removes incompatibilities with some other libraries (like Ethernet), depending on the initialisation order.

* Support setting reset pin to "-1" in order to bypass resetting the module when calling begin() (useful if you're connecting multiple independent OLED128s to the same board and want to share pins.)

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Wed Apr 16, 2014 11:53 pm

* New example sketch, tankgame. This example uses the OLEDShield features (joystick and piezo buzzer) to create a simple tank-based shoot-em-up game.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Mon May 26, 2014 3:10 am

* Fixed bug with spaces not printing properly when using variable width fonts in OLED_TextBox. (github issue). If you've created your own variable width fonts then see this wiki note about the width of a space.

* Fixed bug with extended ASCII characters (values 128-255) not displaying.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Mon Aug 11, 2014 12:01 am

* Fixed bug with incorrect kerning when using OLED_TextBox. Text boxes are now kerned the same when using OLED::drawString() (1 pixel between each character).

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Tue Dec 09, 2014 4:16 am

* Fixed crashing bug when rendering 24 & 32-bit BMPs. (Thanks to danieltian on github for this fix.)

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: FTOLED Updates

Post by angusgr » Thu Apr 30, 2015 7:13 am

* "Colour"/"Color" type is renamed to "OLED_Colour"/"OLED_Color" to avoid naming collisions with other libraries who use "Colour" or "Color"

* Added new mechanism for not defining the preset colour names in your sketch, to avoid naming collisions on names like "BLACK" or "RED". Read about how to use this feature on the wiki.

This is version 1.1.0 of the library (we started numbering versions recently). It is available for download on Github now, and should be available in the Arduino IDE Library Manager soon.

Locked

Who is online

Users browsing this forum: No registered users and 1 guest