Port info for Python


#1

What are the port configures for the i2c and serial ports? I found the ones for the analog and digital.

#Pin number for the grove analog port A0
analog_pin=15

#Pin number for the grove digital port D11
digital_pin=10


#2

Hi Rob,
The I2C ports are connected to single I2C bus on the Raspberry Pi. So you can connect and I2C device to any of the I2C ports and it should work. The Serial port on the is for the Raspberry Pi Serial which can be accessed by using ttyAMA0 on the Raspberry Pi. You can connect something like a GPS and start reading data directly from it.

-Karan