# Change XYZ to the UID of your IO-4 Bricklet 2.0

setup:
	# Configure channel 3 as output low
	publish '{"channel": 3, "direction": "out", "value": false}' to tinkerforge/request/io4_v2_bricklet/XYZ/set_configuration

	# Set channel 3 alternating high/low 10 times with 100 ms delay
	for i in 0..9

		wait for 0.1s

		publish '{"channel": 3, "value": true}' to tinkerforge/request/io4_v2_bricklet/XYZ/set_selected_value

		wait for 0.1s

		publish '{"channel": 3, "value": false}' to tinkerforge/request/io4_v2_bricklet/XYZ/set_selected_value

	endfor
