rbx photoresistor

Example

var pr = new Photoresistor(PORT_3A); 
while(true) {
  print(pr.getValue()); 
  delay(1000);
}  

API

Photoresistor(port3); 
getValue();  // returns a value between 0.0 (darkest) and 1,0 (brightest).