c7a5c9c3a5
This library has the pins hardcoded and so they are recorded in the README. Also added the additional tweaks done by Massey101. |
||
---|---|---|
fonts | ||
images | ||
include | ||
utils | ||
.clang_complete | ||
.gitignore | ||
Makefile | ||
README.md | ||
main.c | ||
spi.c | ||
st7735.c | ||
st7735_font.c | ||
st7735_gfx.c |
README.md
ST7735 for AVR
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:
- Uses my own bitmap format for fullcolor and monochrome bitmaps
- Faster line drawing based on: https://github.com/adafruit/Adafruit-GFX-Library/pull/36
- Faster font rendering based on https://github.com/adafruit/Adafruit-GFX-Library/issues/69
- Refactored draw_char function that does not load glyph struct twice
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 | +--------+--------+
- Set the environment variables for:
AVRMCU
- Your avr chipF_CPU
- Your clock speedISPPORT
- programming device
- Modify
include/st7735.h:st7735_type
to your screen. (I have no idea how to figure out which is which) - Run
make flash