/* * BlinkMSensor0 -- read a sensor no analog pin out and * change the green amount of color * */ #include "Wire.h" #include "BlinkM_funcs.h" int sensorPin = 0; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED int sensorValue = 0; // variable to store the value coming from the sensor int blinkm_addr = 0; int redVal = 0; int grnVal = 0; int bluVal = 0; void setup() { // declare the ledPin as an OUTPUT: pinMode(ledPin, OUTPUT); // uncomment this hack to enable internal pull-up on analogIn 0 // PORTC |= (1<