Skip to content

Pure C implementation of 16x2 lcd driver for atmega328p, with real-time serial communication

Notifications You must be signed in to change notification settings

ryansereno/lcd-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream text or Ollama to a 16x2 LCD display using an ATmega328P microcontroller. No arduino abstractions, no external libraries, just direct register manipulation.

Compile

avr-gcc -mmcu=atmega328p -DF_CPU=16000000UL -Os -c main.c -o main.o

Convert

avr-gcc -mmcu=atmega328p main.o -o main.elf
avr-objcopy -O ihex -R .eeprom main.elf main.hex

Flash

avrdude -p atmega328p -c arduino -P /dev/tty.usbmodem101 -b 115200 -U flash:w:main.hex:i

Run a client

python simple-client.py
python ollama-client.py

About

Pure C implementation of 16x2 lcd driver for atmega328p, with real-time serial communication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published