Plain C AVR library for ST7735 displays

Sebastian 3f67760fed Merge pull request #3 from beardyw/beardyw-patch-1 3 months ago
fonts 3d03fa4038 Added additional font and the font converter 2 years ago
images 3d03fa4038 Added additional font and the font converter 2 years ago
include a3766f41e9 Fixed mixing of tabs and spaces 6 months ago
utils 3d03fa4038 Added additional font and the font converter 2 years ago
.clang_complete f1f9b255f5 Added fontrendering 2 years ago
.gitignore de23e0b650 Cleanups 2 years ago
Makefile 5b1ee1361c Bumped version 6 months ago
README.md c7a5c9c3a5 Updated README with usage 6 months ago
main.c 9bdb9d1436 Add files via upload 3 months ago
spi.c 0d81f98ab9 Fixed set_addr_win 2 years ago
st7735.c 9bdb9d1436 Add files via upload 3 months ago
st7735_font.c f1f9b255f5 Added fontrendering 2 years ago
st7735_gfx.c 0da083fb1a Added graphic primitives 2 years ago

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
  2. Modify include/st7735.h:st7735_type to your screen. (I have no idea how to figure out which is which)
  3. Run make flash