My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 33: add analogNumber getter to Pin object
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted

Sign in to add a comment
Project Member Reported by, Jan 14, 2012
This is a feature request:

It would be helpful to add an analogNumber getter to the Pin object. This returns the analog number (from the IOModule) rather than the digital number (that Pin.number returns). So for pin A0 on an Arduino Uno, pinInstance.analogNumber is 0 and pinInstance.number is 14.

Run an Analog Mapping Query after the Capability Query has been processed in order to get the correct analog pin associations (this is important for boards like Teensy 2.0). The analogNumber value can be obtained from the Analog Mapping results.

Jan 14, 2012
Project Member #1
This is low priority. Just notting it so I don't forget.
Sign in to add a comment

Powered by Google Project Hosting