This is a python script for displaying the clock and the date with Raspberry Pi and Adafruit_CharLCD.
Edit here as needed.
# GPIO Pin Assignment
lcd_rs = 7
lcd_en = 8
lcd_d4 = 25
lcd_d5 = 24
lcd_d6 = 23
lcd_d7 = 18
# 16 char 2 lines
lcd_columns = 16
lcd_rows = 2
Put "clock.py" file on your home directory (or any directory) and run this command in your terminal.
$ python3 clock.py
Use with crontabs to run repeatedly.
$ crontab -e
# run every minute
* * * * * python3 ~/clock.py
2022/05/11 Wed
4:21 PM