What are the pin numbers for D3, D4, ...
-
Hi All,
I bought a couple of Sensebender Micro's and got them working with a Raspberry Pi 2 as a gateway and controller.
I want to use the digital outputs of the Sensebender Micro's but don't know the pin numbers of D3-D7, nor am I able to find them.
Simply using D3, and so on, in my scripts fails (although using A0 works).
Please help.
-
-
Hi Hek, Many thanks for the schematic,
Nevertheless, I struggle a bit.
I (serial) printed the values of A0..A3 and they are 14..17.
On the schematic I see A0..A3 and for each one, I see two numbers: pcint8 and 23 for A0, pcint9 and 24 for A1 etc, but I don't see anywhere 14..17 in relationship to A0..A3. Or is there something simple like add 6 to the pcint value or subtract 9 from the other one.
Help is appreciated!
-
Hi Hek,
I think I got it, When using PD3, PD4 it seems to work.
I'll test a bit and see whether I can get it confirmed.
Thanks
-
Use the following to set D3 high
pinMode(3, OUTPUT); digitalWrite(3, HIGH);
Pins D3 - D7, and A0-A2 etc. is the same pins as on standard arduino. So you can address them in the same way, as with standard arduino (uno)
-