tony-rasskazov / pyduino

Automatically exported from code.google.com/p/pyduino
GNU General Public License v2.0
0 stars 0 forks source link

Using analog pins as digital output #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
thanks for pyduino. I'm using it successfully on Linux with my Arduino 
(Duemillanuove) and extended it to support stepper motors (by adding some extra 
sysex commands to the firmata protocol).

My Problem:  One of my motors uses A0,A1 alias D14,D15 as digital output.
But you define the Arduino board to only know about 14 digital pins.
Since any analog pin can be also used as an analog output (or input) pin, one 
should define the Arduino board to have 14 + 6 = 20 possible digital pins.
However, doing the book keeping right, that A0 cannot be used both as analog 
input and as digital i or o  at the same time might be somewhat involved....

Thanks again,
Sebastian Haase

Original issue reported on code.google.com by seb.ha...@gmail.com on 6 Jan 2012 at 6:49

GoogleCodeExporter commented 8 years ago
Sorry,

I just realized that I am actually using pyfirmata.
This issue probably doesn't apply to your project....

- Sebastian

Original comment by seb.ha...@gmail.com on 10 Jan 2012 at 8:03