avr-st7735/README.md

59 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2016-12-07 00:47:52 +01:00
ST7735 for AVR
==============
2021-02-13 21:04:44 +01:00
**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.**
2016-12-07 00:52:59 +01:00
![example of working display](./images/example.jpg)
2016-12-07 00:47:52 +01:00
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!*
2016-12-08 01:21:36 +01:00
Tweaks
------
By LongHairedHacker:
2016-12-08 01:21:36 +01:00
* 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
2021-02-13 20:59:53 +01:00
By barskern:
* Make target for linking a static library
Usage
-----
Connect the display to the following PINS:
JAYCAR screen and ATMEGA328:
2021-02-13 20:59:53 +01:00
| Screen | AVR |
2021-02-13 20:59:53 +01:00
|--------|--------|
| VCC | 5V |
| GND | GND |
| CS | PB2 |
| RESET | PD7 |
| A0 | PD6 |
| SDA | PB3 |
| SCK | PB5 |
| LED | 3.3V |
2021-02-13 20:59:53 +01:00
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`