Skip to content

Commit cd55023

Browse files
committed
pack arduino library
1 parent 1c92a51 commit cd55023

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

ST7302SPI.cpp renamed to libraries/ST7302SPI/ST7302SPI.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "ST7302SPI.h"
2-
#include "font.h"
1+
#include <ST7302SPI.h>
2+
#include <font.h>
33

44
ST7302SPI::ST7302SPI(uint8_t sck_pin, uint8_t miso_pin, uint8_t mosi_pin, uint8_t reset_pin, uint8_t dc_pin, uint8_t cs_pin, uint8_t width, uint8_t height)
55
{
File renamed without changes.

main.ino renamed to libraries/ST7302SPI/examples/ST7302Hello/ST7302Hello.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ST7302SPI.h"
1+
#include <ST7302SPI.h>
22

33
#define _PIN_RST_ 1
44
#define _PIN_DC_ 0
@@ -16,6 +16,7 @@ void setup() {
1616
digitalWrite(12, LOW);
1717
digitalWrite(13, HIGH);
1818
st7302spi.begin();
19+
st7302spi.inversion_on();
1920
char str1[] = "hello word1.";
2021
st7302spi. text(1, 20, str1, strlen(str1));
2122
st7302spi.flush_buffer();
@@ -24,7 +25,6 @@ void setup() {
2425
st7302spi. text(1, 40, str2, strlen(str2));
2526
st7302spi.flush_buffer();
2627
delay(2000);
27-
st7302spi.inversion_on();
2828
char str3[] = "hello word3.";
2929
st7302spi. text(1, 80, str3, strlen(str3));
3030
st7302spi.flush_buffer();
File renamed without changes.
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=ST7302SPI
2+
version=1.0
3+
author=zhcong <1011.0011@163.com>
4+
maintainer=zhcong <1011.0011@163.com>
5+
sentence=LCD screen ST7302 for arduino.
6+
paragraph=This driver can draw ascii characters, draw points and write directly to memory, for ST7302 screen driver.
7+
category=Display
8+
url=https://github.com/zhcong/ST7302-for-arduino
9+
architectures=* includes=ST7302SPI.h

0 commit comments

Comments
 (0)