The motors1 example includes the following snippet:
// note that the following line could also be accomplished with:
// int pot = analogRead(7);
int pot = read_trimpot();
Which I believe is incorrect in two ways:
- analogRead’s an Arduino/Wiring thing, no? I can’t find it in pololu/orangutan.h
- the doc for read_trimpot (https://www.pololu.com/docs/0J18/all) notes that it uses analog_read_average() to average 20 samples, which analogRead doesn’t do
Rgds,
Ben