10 years, 2 months ago.  This question has been closed. Reason: Answered

TMP36GZ class

I am writing a program using a TMP26GZ for a FRDM-KL46Z board but when I tried to compile error 289 (Error: No instance of constructor "TMP36GZ::TMP36GZ" matches the argument list in "main.cpp", Line: 11, Col: 14) appeared.

The error line is TMP36GZ temp_sensor(ADC0_SE8); and I can't see whats wrong. Any help would be appreciated.

1 Answer

10 years, 2 months ago.

It is handy to mention which library you are using, but I guess it expects a pin name, not the ADC channel. So tell it with which pin you have it connected (PTB18 as random example).

That worked thanks, I thought I would have to define the pin by its analog name.

posted by Marcus Parker 20 Feb 2014