This commit is contained in:
stud130312
2024-02-12 11:46:28 +03:00
parent 294a5b9ac8
commit 7658cd2db5
21 changed files with 1616 additions and 13 deletions
+37 -2
View File
@@ -17,7 +17,42 @@ void setup()
void loop()
{
char data[] = {0x06, 0xF1, 0x04, 0x05, 0x16, 0x12, 0x18, 0x11, 0x00, 0x15, 0x49, 0x50, 0x59, 0x69, 0};
// All clear
// 0x00 - черный, остальное белое
// char data[] = {0x01, 0x00, 0};
// Setpage 1
// 0x00 - 0x07
// char data[] = {0x02, 0x01, 0};
// Add symbol
// char data[] = {0x03, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0F, 0};
// Delete symbol
// Кол-во символов
// char data[] = {0x04, 0x04, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0};
// Draw Pixel
// x, y, color
// char data[] = {0x05, 0x15, 0x15, 0x01, 0};
// Draw Line
// x1, y1, x2, y2, color
// char data[] = {0x06, 0x15, 0x15, 0x45, 0x45, 0x01, 0};
// Draw Circle
// x, y, r, color, fill
// char data[] = {0x07, 0x15, 0x15, 0x15, 0x01, 0x00, 0};
// Draw Rectangle
// x, y, width, height, color, fill
// char data[] = {0x08, 0x15, 0x15, 0x25, 0x25, 0x01, 0x00, 0};
// Draw Char
// x, y, charIndex, fill
// char data[] = {0x09, 0x15, 0x15, 0x05, 0x00, 0};
char data[] = {0x01, 0x00, 0};
int length = sizeof(data);
Serial.println();
Serial.print("Start: ");
@@ -34,5 +69,5 @@ void loop()
Serial.println();
SPI_MasterTransmit(data, length);
_delay_ms(1000);
_delay_ms(5000);
}