Adding in the light sensor

First, we need to wire the light sensor to the board. Remember, I2C devices can share an SDA and SCL pin as long as they have different addresses (which the TSL2591, at 0x29, and the PWM hat, at 0x40, do). 

Now that we've wired up the sensor, we'll take on the (optional) task of modifying our servo to look more like a meter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.69.255