Plain C AVR library for ST7735 displays
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Sebastian e0527a6876
Fixed typo
2 years ago
fonts Added additional font and the font converter 7 years ago
images Added additional font and the font converter 7 years ago
include Fixed mixing of tabs and spaces 4 years ago
utils Added additional font and the font converter 7 years ago
.clang_complete Added fontrendering 7 years ago
.gitignore Cleanups 7 years ago
Makefile Make target for building static library 2 years ago
README.md Fixed typo 2 years ago
main.c Add files via upload 4 years ago
spi.c Fix unused pin PB0 being used in init 4 years ago
st7735.c Add files via upload 4 years ago
st7735_font.c Added fontrendering 7 years ago
st7735_gfx.c Added graphic primitives 7 years ago

README.md

ST7735 for AVR

Please note: This repository is archived. However barskern has kindly agreed to continue maintaining this library. Please go to: https://github.com/barskern/avr-st7735 for the latest version as well as for issues and pull requests.

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

By barskern:

  • Make target for linking a static library

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