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.
|
2 years ago | |
---|---|---|
fonts | 7 years ago | |
images | 7 years ago | |
include | 4 years ago | |
utils | 7 years ago | |
.clang_complete | 7 years ago | |
.gitignore | 7 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
main.c | 4 years ago | |
spi.c | 4 years ago | |
st7735.c | 4 years ago | |
st7735_font.c | 7 years ago | |
st7735_gfx.c | 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.
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
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 |
- 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