Adafruit 4x20 LCD

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

keithh534
Posts: 54
Joined: Thu Nov 23, 2017 12:21 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Adafruit 4x20 LCD

Postby keithh534 » Thu Dec 21, 2017 12:15 am

It seems the cursor method of the LCD_4x20 (Adafruit, OLED) component doesn't work. Whenever the simulation calls the method, it hangs.
Am I doing something wrong?
If not, when can I expect this bug to be fixed?

User avatar
LeighM
Matrix Staff
Posts: 1875
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 439 times
Been thanked: 632 times
Contact:

Re: Adafruit 4x20 LCD

Postby LeighM » Thu Dec 21, 2017 11:49 am

Seems to work OK for me,
Did you first call Start()?
Could you post a project file, *.fcfx?

keithh534
Posts: 54
Joined: Thu Nov 23, 2017 12:21 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: Adafruit 4x20 LCD

Postby keithh534 » Fri Dec 22, 2017 12:37 am

Yes, in the 'Startup' macro as shown below.

The 'Main' calls 'Startup' which calls 'Pgm' when the 'PGM' key is pressed. It hangs at the first instance of the cursor method.
Main.jpg
Main.jpg (79.85 KiB) Viewed 1233 times
Startup.JPG
Startup.JPG (78.18 KiB) Viewed 1233 times
Pgm.jpg
Pgm.jpg (91.44 KiB) Viewed 1233 times


btw: This program works without issue with the generic 4x20 LCD component.

keithh534
Posts: 54
Joined: Thu Nov 23, 2017 12:21 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: Adafruit 4x20 LCD

Postby keithh534 » Sun Dec 24, 2017 8:09 pm

Sample program attached demonstrates issue
LCD Test.fcfx
(13.98 KiB) Downloaded 40 times

User avatar
LeighM
Matrix Staff
Posts: 1875
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 439 times
Been thanked: 632 times
Contact:

Re: Adafruit 4x20 LCD

Postby LeighM » Sun Dec 24, 2017 9:14 pm

Thanks, perfect!
Probably won't get chance to look at this until return to office 2nd Jan.

User avatar
LeighM
Matrix Staff
Posts: 1875
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 439 times
Been thanked: 632 times
Contact:

Re: Adafruit 4x20 LCD

Postby LeighM » Tue Jan 02, 2018 9:57 am

Please use the attached updated component, drop into your Flowcode /components directory.
(The sim Cursor function was waiting for the ready pin - this has now been removed)
Thanks
Leigh
Attachments
LCDAdafruitOLED4x20.fcpx
(25.34 KiB) Downloaded 30 times
These users thanked the author LeighM for the post:
keithh534 (Mon Jan 08, 2018 1:45 am)
Rating: 5.26%
 

keithh534
Posts: 54
Joined: Thu Nov 23, 2017 12:21 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: Adafruit 4x20 LCD

Postby keithh534 » Wed Jan 03, 2018 2:45 am

Much better!
Thank you!!
:-)
These users thanked the author keithh534 for the post (total 2):
LeighM (Wed Jan 03, 2018 9:02 am) • Benj (Wed Jan 03, 2018 4:34 pm)
Rating: 10.53%