Another Adafruit 20x4 LCD component bug

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:

Another Adafruit 20x4 LCD component bug

Postby keithh534 » Sun Jan 07, 2018 10:05 pm

When compiling to chip, display doesn't work.
I believe the issue is it's missing 2 lines of code in the "Start"method.
Currently, it looks like this:
Current.png
Current.png (17.99 KiB) Viewed 1090 times


It should look like this (missing code highlighted):
New.png
New.png (41.66 KiB) Viewed 1090 times

User avatar
LeighM
Matrix Staff
Posts: 1865
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 436 times
Been thanked: 622 times
Contact:

Re: Another Adafruit 20x4 LCD component bug

Postby LeighM » Mon Jan 08, 2018 11:14 am

Hi
Thanks.
I've had a look at the Adafruit Arduino reference code, and you are correct, it shows an extra 0x08 for V2 only,
So I've added this on a new property OLED V2 no/yes.
Although the Adafruit gives the order as 3,8,2,2,8 rather than 3,2,8,2,8 so I've implemented it as Adafruit sequence,
let me know if it does not work for you.
Thanks
Leigh
Attachments
LCDAdafruitOLED4x20.fcpx
(25.54 KiB) Downloaded 23 times

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

Re: Another Adafruit 20x4 LCD component bug

Postby keithh534 » Tue Jan 09, 2018 1:30 pm

Leigh,
Thank you for the effort, but the only difference I see is the removal of what appears to be debugging code.

New.png
New.png (24.22 KiB) Viewed 1069 times


Regards,
Keith

User avatar
LeighM
Matrix Staff
Posts: 1865
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 436 times
Been thanked: 622 times
Contact:

Re: Another Adafruit 20x4 LCD component bug

Postby LeighM » Tue Jan 09, 2018 2:18 pm

Hi Keith,
In the LCD component properties you should now see a new property: OLED V2 no/yes
Set that to yes.
These users thanked the author LeighM for the post:
keithh534 (Tue Jan 09, 2018 3:10 pm)
Rating: 5.26%
 

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

Re: Another Adafruit 20x4 LCD component bug

Postby keithh534 » Tue Jan 09, 2018 3:07 pm

That method doesn't appear in the list

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

Re: Another Adafruit 20x4 LCD component bug

Postby keithh534 » Tue Jan 09, 2018 3:10 pm

I take that back. I found it!
These users thanked the author keithh534 for the post (total 2):
LeighM (Tue Jan 09, 2018 3:26 pm) • Benj (Wed Jan 10, 2018 6:25 pm)
Rating: 10.53%