Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
analogRead() issues
04-02-2016, 03:14 AM,
#1
analogRead() issues
I've been trying Pinguino on my new PIC18F4550 dev board, and I am finding the handling of analogRead() a bit weird.

- if I do ANY analog read, pin 13-20 all appear to get turned into analog input only

- I cannot get analogRead() to work with pins 0-4

It would be much nicer if when a pin is referenced by analogRead() only that pin was configured as an analog input

and any analog capable pin of the PIC should be able of analogRead()

using pinMode() should reconfigure them as INPUT/OUTPUT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)