Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 9 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, 9 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).