WEEK 5

I now clearly understand the following:
  1. When declaring analog inputs, I do NOT need to use pinMode(pin#, INPUT) because analog input pins are reserved exclusively for inputs only!
  2. BTYE is 8 bits, ASCI code which computers understand. BYTE is different from BIN which is 0's and 1's, which computers also understand I'm sure. =)
  3. In Arduino, I used a photocell, a potentiometer and a on/off switch. In Processing, I matched the photocell value to value of blue (0-255), the pot value to value of green (0-255), the switch value to value of blue (0-255).
  4. Because I didn't scale the input values of my three sensors to be from 0-255 using that famous formula "pulse = ((sensorValue - minSensorValue) * pulseRange / sensorRange) + minPulse", the resulting rgb colors in Processing were rather dark in hue.
  5. BUT! Please check out an experiment I did in which I use two switches that register the minimum and maximum photocell values and keep adjusting that long formula above.
  6. By the way, here's what my code looks like in Arduino: image of my code