Adafruit 4x20 LCD

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

Moderator: Benj

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

Adafruit 4x20 LCD

Post by keithh534 »

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: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Adafruit 4x20 LCD

Post by LeighM »

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

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

Re: Adafruit 4x20 LCD

Post by keithh534 »

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 3859 times
Startup.JPG
Startup.JPG (78.18 KiB) Viewed 3859 times
Pgm.jpg
Pgm.jpg (91.44 KiB) Viewed 3859 times
btw: This program works without issue with the generic 4x20 LCD component.

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

Re: Adafruit 4x20 LCD

Post by keithh534 »

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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Adafruit 4x20 LCD

Post by LeighM »

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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Adafruit 4x20 LCD

Post by LeighM »

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 184 times

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

Re: Adafruit 4x20 LCD

Post by keithh534 »

Much better!
Thank you!!
:-)

Post Reply