Forum Software Ferduino code Enabling PCF8575 disables TFT, have you heard of this?

Enabling PCF8575 disables TFT, have you heard of this?  [SOLVED]


Post Number:#1 Post Fri Nov 11, 2016 10:35 pm
Posts: 32
Topics: 13
Images: 3
Solve rating: 0
Joined: Wed Oct 01, 2014 3:53 pm
Topics: 13
Age: 38
Gender: None specified
National Flag:
Great Britain
Hello Fernando, I am simply testing with jumper wires some new devices, stamps etc, I just try to test pcf8575 first and when uncommenting to enable use_pcf8575, the TFT does not seem to initialise?

Is this something you have heard before?

It is curious as I see no reason why this should happen..

This is on fresh blank version on the sainsmart 7.0" LCD and the elekfreaks 2.2 tft shield with white colour.
Kind Regards

Jay

PS. I did try some searching to find a reference but there was nothing relating to this..

Post Number:#2 Post Sat Nov 12, 2016 10:02 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

You should have a "#endif" in wrong place.

Post your code on Github or Arduino create so I can help you.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sat Nov 12, 2016 2:50 pm
Posts: 32
Topics: 13
Images: 3
Solve rating: 0
Joined: Wed Oct 01, 2014 3:53 pm
Topics: 13
Age: 38
Gender: None specified
National Flag:
Great Britain
In this circumstance, it is only a clean version strait from zip from your github. Using PCF8575 v2.0

Only changes are enable tft shield, use pin_53 for sd, and skip password screen.

also one change.. from ITDB32WD to CTE50

UTFT myGLCD(CTE50,38,39,40,41)


When I comment-out #define USE_PCF8575, LCD works fine..

Strange huh? :-$

Jay

Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

I think the issue is different, the PCF functions doesn't disables the TFT.

When the Arduino can't connect to a PCF so the code hangs on setup and you get a white screen forever.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Sat Nov 12, 2016 3:16 pm
Posts: 32
Topics: 13
Images: 3
Solve rating: 0
Joined: Wed Oct 01, 2014 3:53 pm
Topics: 13
Age: 38
Gender: None specified
National Flag:
Great Britain
Here is a fork from your repo, I have made all the changes I would use as a bare minimum for testing.
https://github.com/jamiebrowncow/Ferdui ... ntrol_beta

So simply, if PCF8575 is not communicating then the code will hang?

I have yet to make the modifications to the board, so this may have been why..

I will just revise what needs to be done and get the soldering iron out and ensure it is connecting correctly. I believe this i will solve the issue.

I felt that, just like if RTC is not connected, this would not be an issue to code running.

You understand every eventuality with your code. =)) Very elite.

Peace, I will report back shortly to let you know that it worked.

Jay

-------------------------------- Last edited Sat Nov 12, 2016 3:41 pm --------------------------------

Okay so I prepared the PCF correctly by addressing it, and sure enough, it works.

Once again thank you very much Fernando.

:))

Post Number:#6 Post Sat Nov 12, 2016 4:16 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Glad to hear!
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron