Datasheet

i2c-tools isn't strictly required, but it's a useful package since you can use it to scan for any
I2C or SMBus devices connected to your board. If you know something is connected, but
you don't know it's 7-bit I2C address, this library has a great little tool to help you find it.
python-smbus is required, it adds the I2C support for python!
Don't forget you must add kernel support for I2C by follo wing this
tuto rial! (http://adafru.it/dZY)
You can then detect if the HAT is found on the #1 I2C port with:
This will search /dev/i2c-1 for all address, and if an Adafruit PWM/Servo HAT is properly
connected and it's set to its default address -- meaning none of the 6 address solder
jumpers at the top of the board have been soldered shut -- it should show up at 0x40
(binary 1000000) as follows:
Once both of these packages have been installed, and i2cdetect finds the 0x40 I2C
address, you have everything you need to get started accessing I2C and SMBus devices
in Python.
© Adafruit Industries
https://learn.adafruit.com/adafruit-16-channel-pwm-servo-hat-for-
raspberry-pi
Page 15 of 25