# Change XYZ to the UID of your LCD 20x4 Bricklet

setup:
	# Turn backlight on
	publish '' to tinkerforge/request/lcd_20x4_bricklet/XYZ/backlight_on 
	
	function UTF8ToKS006U # This function should convert strings from UTF-8 to the LCD charset. See examples for other languages.
	
	# Write some strings using the FIXME function to map to the LCD charset
	publish '{"line": 0, "position": 0, "text": UTF8ToKS0066U("Stromstärke: 17µA")}' to tinkerforge/request/lcd_20x4_bricklet/XYZ/write_line 
	publish '{"line": 1, "position": 0, "text": UTF8ToKS0066U("Temperatur:  23°C"}' to tinkerforge/request/lcd_20x4_bricklet/XYZ/write_line 
	
	# Write a string directly including characters from the LCD charset
	publish '{"line": 2, "position": 0, "text": "Drehzahl: 750min\u00e9"}' to tinkerforge/request/lcd_20x4_bricklet/XYZ/write_line 
