strange issue here. I am using the following code to control my panel backlight using a potentiometer connected to Arduino which is connected to AirPlayer Raspberry.
Code: Select all
function LIGHTING_pots()
POT_LIGHT_circuit_1 = hw_adc_input_read(LIGHT_circuit_1)
POT_LIGHT_circuit_2 = hw_adc_input_read(LIGHT_circuit_2)
POT_LIGHT_circuit_3 = hw_adc_input_read(LIGHT_circuit_3)
xpl_dataref_write("whateverdataref...", "INT", var_round(POT_LIGHT_circuit_1))
xpl_dataref_write("whateverdataref 2...", "INT", var_round(POT_LIGHT_circuit_2))
xpl_dataref_write("whateverdataref 3...", "INT", var_round(POT_LIGHT_circuit_3))
end
LIGHT_circuit_3 = hw_adc_input_add("ARDUINO_MEGA2560_A_A4", LIGHTING_pots) --POTENTIOMETER LIGHTING CIRCUIT III
LIGHT_circuit_2 = hw_adc_input_add("ARDUINO_MEGA2560_A_A5", LIGHTING_pots) --POTENTIOMETER LIGHTING CIRCUIT II
LIGHT_circuit_1 = hw_adc_input_add("ARDUINO_MEGA2560_A_A6", LIGHTING_pots) --POTENTIOMETER LIGHTING CIRCUIT I
Is there any code I could use to force Air Player to reload the potentiometer values without me touching them?
Thank you!
Pavel