# Change XYZ to the UID of your Rotary Encoder Bricklet 2.0

setup:
	# Handle incoming count callbacks
	subscribe to tinkerforge/callback/rotary_encoder_v2_bricklet/XYZ/count
	publish '{"register": true}' to tinkerforge/register/rotary_encoder_v2_bricklet/XYZ/count # Register count callback
	
	# Set period for count callback to 1s (1000ms) without a threshold
	publish '{"period": 1000, "value_has_to_change": false, "option": "off", "min": 0, "max": 0}' to tinkerforge/request/rotary_encoder_v2_bricklet/XYZ/set_count_callback_configuration  
