ET sensor (set analog pullup)

2 replies [Last post]
haste
haste's picture
Title: NooBot
Joined: 03/03/2014
Posts:
BotPoints: 6
User offline. Last seen 8 years 26 weeks ago.

When making any code that relates to the ET sensor or any sensor that needs me to disable/enable pullup resistor I get an error in my code when I use set_analog_pullup(port, floating) I get this error.

(.text+0x1e): undefined reference to `set_analog_pullup'

What exactly is the problem

stephenmac7
Title: NooBot
Joined: 11/19/2013
Posts:
BotPoints: 29
User offline. Last seen 8 years 22 weeks ago.

set_analog_pullup no longers seems to exist. Try using analog_et instead of analog.

Isaac Yates
Isaac Yates's picture
Title: NooBot
Joined: 12/14/2013
Posts:
BotPoints: 19
User offline. Last seen 7 years 25 weeks ago.

Thanks, I had the same problem, except oddly there was no error message when I called set_analog_pullup(). Weird.

“I have never let my schooling interfere with my education.” ~Mark Twain