Created Tue, 22 Dec 2015 13:55:54 +0000 by GastonLagaffe
Tue, 22 Dec 2015 13:55:54 +0000
I try to use a DHT22 together with a 1.8 Serial TFT (Itead). I use UTFT to drive the TFT and the display reacts as expected. I then connect the DHT22 and use the DHT22 library. The test code outputs to the serial monitor and the reading of the DHT22 is ok.
So TFT code seems OK, DHT code seems OK.
When combining the code, I run immediately into an issue: By inserting
#include <DHT22.h> #define DHT22_PIN 18 DHT22 myDHT22(DHT22_PIN);
the TFT demo code does not even get to the setup() routine ... Commenting out the constructor call and the TFT works.
I looked at the DHT22 code and the constructor simply sets some variable values, so I am puzzled by this behavior.
I use a chipKit DP32, the DHT22 library is attached, UTFT as of the latest version from Henning Karlsen
Tue, 22 Dec 2015 18:45:10 +0000
between pack Christmas presents and setting up the tree I found a moment to look into this further: I switched to DisplayCore using hardware-SPI and all works... So the problem is with the UTFT library ...
@Matt: good job with DisplayCore. I will document the setup over the Christmas break so anybody can hookup this
Tue, 22 Dec 2015 20:34:51 +0000
Little tip: my libraries are better than everyone else's. ;)
Sent from my SM-T555 using Tapatalk
Tue, 22 Dec 2015 21:21:53 +0000
yep - no doubt about that
Have a good Christmas!