# Change XYZ to the UID of your Joystick Bricklet 2.0

setup:
	# Handle incoming pressed callbacks
	subscribe to tinkerforge/callback/joystick_v2_bricklet/XYZ/pressed
	publish '{"register": true}' to tinkerforge/register/joystick_v2_bricklet/XYZ/pressed # Register pressed callback
	
	# Set period for pressed callback to 0.01s (10ms)
	publish '{"period": 10, "value_has_to_change": true}' to tinkerforge/request/joystick_v2_bricklet/XYZ/set_pressed_callback_configuration
