Methods
-
readsensor(dropdown_light)
-
Returns the reading of the chosen sensor.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description dropdown_light
determines which light sensor to read values from
Code Equivalent:
analogRead(dropdown_light);
-
setirlight(dropdown_light, dropdown_state)
-
Turns the chosen ir sensor lights on or off.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description dropdown_light
determines which light sensor to turn on/off
dropdown_state
determines if the sensor is being turned on or off
Code Equivalent:
digitalWrite(dropdown_light, dropdown_state);