PComp Week 8: SPI and I2C Labs

SPI Lab: Digital Potentiometer

I got the code and physical aspects setup but there was no change in the ton volume. I was expecting some range but there was nothing.

I did notice a discrepancy within the instructions for the physical set. In the drawing, the negative lead of the speaker is connected to the 100 ohm resister then to the digital pot but the text accompanying the diagrams contradicts that. I did try both and the results were the same. A tone was produced with no column variation.
SPI Tone Breadboard Setup 1SPI Tone Breadboard Setup 2

I2C Lab: APDS-9960 RGB and Gesture Sensor

First tried code from the lab but received errors that the APDS was undefined. I made sure to use the Arduino library but could not figure out how to rectify this.  I then added the Wire.h library which took care of that error.  Then, I received the following error. 

i2c error Arduino screenshot

I was thinking maybe the solder on the headers was maybe an issue so I tried tow examples from SparkFun library.

1 – Gesture Test
I was able to get the breadboard setup properly but did not get any readings on the serial monitor.

2 – ColorSensor
This test was successful. See video below of serial monitor output.

3 – Proximity Sensor
Was able to get this working within the serial monitor

The only quesiton  I have are why wont the other examples work for this sensor?