I finally knew why I felt so hard these three weeks.
The sensors/components I borrowed from NYUSH is quite different type from the one in the tutorial,most of them even do not use the same protocol.So I need to read their documents first rather than just follow the tutorial,even they look similar in appearance.
I2C Lab:
I followed the lab tutorial, but it didn’t work.It always said that apds is not defines.
Then I turn to use the code in example.The color one worked.
But not the gesture sensor and proximity sensor.I am quite sure that their connection is good, but nothing in serial monitor.
SPI Lab:
I lent a digital potentiometer from NYUSH.
It’s quite different from the one in lab tutorial and I am not sure whether it’s a SPI one. So I decided to try a barometric pressure sensor tomorrow.
project2 progress,
We learnt“HUE” in ICM this week,and I thought it’s so amazing.
I wanted to use“HUE” in my output.
My output with different interactive method:
analog:
https://editor.p5js.org/MagicMonkeyWow/sketches/y46OBjtop
digital/mouseclick:
https://editor.p5js.org/MagicMonkeyWow/sketches/pWMnugcYM
I haven’t decided which one to use.
My arduino and p5 have connection problem again, and I am trying to figure it out。