##############################################################
# 16x2 LCD Interface (Parallel Connection) #
##############################################################
#
# Interfacing 16x2 LCD display with Raspberry Pi Pico & MicroPython (Hardware & Simulation)
#
# Check out the link for Code explanation and Hardware details
# Link:
# http://tech.arunkumarn.in/blogs/raspberry-pi-pico/interfacing-16x2-lcd-display-with-raspberry-pi-pico-and-micropython
#
# Note:
# - Contrast varry has no effect in wokwi simulation.
#
import utime
from lcd_api import LCD_16x2_parallel
# LCD_16x2_parallel(rs, e, d4, d5, d6, d7)
lcd = LCD_16x2_parallel(15, 14, 13, 12, 11, 10)
# Set cursor to Row 1, Column 1
lcd.returnHome()
lcd.display(" Aavishkarah ")
utime.sleep_ms(2000)
# Move to LCD (2, 0) position
# Row 2 and Column 1
lcd.setCursor(2,0)
lcd.display("---Simulation---" , 100)
utime.sleep_ms(2000)
# Clear the Screen
lcd.clearScreen()
lcd.display("Check Link for", 150)
lcd.setCursor(2,0)
lcd.display("more details" , 150)
utime.sleep_ms(2000)
# Link:
# http://tech.arunkumarn.in/blogs/raspberry-pi-pico/interfacing-16x2-lcd-display-with-raspberry-pi-pico-and-micropythonContrast Vary