ET sensor (set analog pullup)

2 replies [Last post]
haste's picture
Title: NooBot
Joined: 03/03/2014
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

Title: NooBot
Joined: 11/19/2013
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
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