Plain C AVR library for ST7735 displays
Go to file
Jack Massey c7a5c9c3a5 Updated README with usage
This library has the pins hardcoded and so they are recorded in the
README. Also added the additional tweaks done by Massey101.
2019-03-14 16:08:44 +10:00
fonts Added additional font and the font converter 2016-12-08 02:15:02 +01:00
images Added additional font and the font converter 2016-12-08 02:15:02 +01:00
include Fixed mixing of tabs and spaces 2019-02-28 21:37:40 +10:00
utils Added additional font and the font converter 2016-12-08 02:15:02 +01:00
.clang_complete Added fontrendering 2016-12-08 01:21:36 +01:00
.gitignore Cleanups 2016-12-07 00:26:43 +01:00
Makefile Bumped version 2019-02-28 21:19:47 +10:00
README.md Updated README with usage 2019-03-14 16:08:44 +10:00
main.c Removed commented out code 2019-02-25 21:33:14 +10:00
spi.c Fix unused pin PB0 being used in init 2019-03-14 16:08:44 +10:00
st7735.c Fix portrait mode on JAYCAR display 2019-02-28 22:23:59 +10:00
st7735_font.c Added fontrendering 2016-12-08 01:21:36 +01:00
st7735_gfx.c Added graphic primitives 2016-12-07 21:14:46 +01:00

README.md

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