Print to TFT display temperature sensor DS18b20 readings, not to serial monitor.
hi, i have been unable print ds18b20 temerature sensor st7735 tft screen adafruit. 128 x 160. prints fine serial monitor. i had expected following section calling temperature in celsius able print? appreciated. code: [select] { sensors.requesttemperatures(); // send command temperatures. mytemp0 = (sensors.gettempcbyindex(0)); mytemp1 = (sensors.gettempcbyindex(1)); { the following far have been able get. code: [select] #include <spi.h> #include <tft.h> // libraries ds1820 , onewire #include <onewire.h> #include <dallastemperature.h> //you can use (4 or) 5 pins //#define sclk 4 //#define mosi 5 #define cs 6 // pin definition uno #define dc 7 // pin definition uno #define rst 8 // pin definition uno // can connect arduino reset float mytemp0; float myhightemp0; float mylowtemp0 = 50; float mytemp1; float myhightemp1; float mylowtemp1 = 50; onewire onewire(2); // setup onewire instance communicate devices. dallastemperat...