[SOLVED] FTOLED + DallasTemperature sensor

128x128 pixel 1.5" full colour OLED display with MicroSD card slot. [Product page]
Post Reply
krt
Posts: 15
Joined: Tue Jan 07, 2014 7:45 am
Location: Lake Macquarie, NSW

[SOLVED] FTOLED + DallasTemperature sensor

Post by krt » Thu Jan 09, 2014 1:02 am

G'day,

I found today that if you use the FTOLED / OLED128 display along with a OneWire Dallas temperature sensor, it is necessary to initialise the DallasTemperature object before the OLED128.

My code was calling oled.begin() before the (DallasTemperatures).begin(), and the latter call was locking-up. With the calls reversed it worked fine.

*shrug*

Hope this saves someone a couple of hours.

I only worked out the problem after uploading a simple temperature-tester programme, which worked 100% OK, even with the OLED128 still wired into the circuit.

shippy__
Posts: 4
Joined: Sat Apr 09, 2016 10:46 am

Re: [SOLVED] FTOLED + DallasTemperature sensor

Post by shippy__ » Sat Apr 09, 2016 12:59 pm

sounds like it will save me some time shortly

cheers budd

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest