/avr-st7735

Plain C AVR library for ST7735 displays

Primary LanguageC

ST7735 for AVR

example of working display

My simplified plain C version of https://github.com/adafruit/Adafruit-ST7735-Library and parts of https://github.com/adafruit/Adafruit-GFX-Library/

Use at your own risk!

Tweaks

By LongHairedHacker:

By Massey101:

  • Added support for bitmap clipping
  • Added JAYCAR screen for XC4629 support

Usage

Connect the display to the following PINS:

JAYCAR screen and ATMEGA328: +--------+--------+ | Screen | AVR | +--------+--------+ | VCC | 5V | +--------+--------+ | GND | GND | +--------+--------+ | CS | PB2 | +--------+--------+ | RESET | PD7 | +--------+--------+ | A0 | PD6 | +--------+--------+ | SDA | PB3 | +--------+--------+ | SCK | PB5 | +--------+--------+ | LED | 3.3V | +--------+--------+

  1. Set the environment variables for:
  • AVRMCU - Your avr chip
  • F_CPU - Your clock speed
  • ISPPORT - programming device
  1. Modify include/st7735.h:st7735_type to your screen. (I have no idea how to figure out which is which)
  2. Run make flash