""" Micropython LCD1602 Display mit Keypad """ from machine import Pin, ADC import time from esp_gpio_lcd import GpioLcd lcd = GpioLcd( rs_pin = Pin(0), enable_pin = Pin(2), d4_pin = Pin(4), d5_pin = Pin(14), d6_pin = Pin(12), d7_pin = Pin(13), num_lines = 2, num_columns = 16) analogwert = ADC(0) lcd.move_to(1, 0) lcd.putstr("Young Engineers") lcd.move_to(0, 1) lcd.putstr("*** mrge.de ***") time.sleep(3) lcd.move_to(0, 1) lcd.putstr(" ") while True: mw=analogwert.read() print(mw) lcd.move_to(5, 1) lcd.putstr(str(mw)) time.sleep(0.5)