Supports display of English characters, Chinese characters and pictures. English characters have built-in ascii code, while Chinese characters and pictures need to be provided by users. Characters can be displayed normally or rotated 90 degrees counterclockwise. Pictures and Chinese characters are all modeled in vertical orientation, with the principle of high position on top, left before right, top before bottom. Support multi-layer, can operate on any layer individually. Layers can be added and removed at any time, the top layer is not allowed to be removed. The buf of multi-layer can be defined in data segment, bss segment and heap segment. Support drawing points, drawing lines, drawing function images, drawing lines and function images support complementary unconnected points. Drawing function adopts matlab-like function interface form. Support print function. Support all clear screen, part of the region clear screen function. Support full-screen rainbow image display function, convenient for testing.
Features
Pinout
Dimensions
How to Use
/*2 Showing number 0-9 on a Common Anode 7-segment LED display3 Displays the numbers 0-9 on the display, with one second inbetween.4 A5 ---6F | | B7 | G |8 ---9E | | C10 | |11 ---12 D13 This example code is in the public domain.14 */1516// Pin 2-8 is connected to the 7 segments of the display.1718int pinA =2;19int pinB =3;20int pinC =4;21int pinD =5;22int pinE =6;23int pinF =7;24int pinG =8;25int D1 =9;26int D2 =10;27int D3 =11;28int D4 =12;2930// the setup routine runs once when you press reset:31voidsetup() { 32 // initialize the digital pins as outputs.33pinMode(pinA, OUTPUT); 34pinMode(pinB, OUTPUT); 35pinMode(pinC, OUTPUT); 36pinMode(pinD, OUTPUT); 37pinMode(pinE, OUTPUT); 38pinMode(pinF, OUTPUT); 39pinMode(pinG, OUTPUT); 40pinMode(D1, OUTPUT); 41pinMode(D2, OUTPUT); 42pinMode(D3, OUTPUT); 43pinMode(D4, OUTPUT); 44}4546// the loop routine runs over and over again forever:47voidloop() {48digitalWrite(D1, HIGH);49digitalWrite(D2, LOW);50digitalWrite(D3, LOW);51digitalWrite(D4, LOW); 52 //053digitalWrite(pinA, LOW); 54digitalWrite(pinB, HIGH); 55digitalWrite(pinC, LOW); 56digitalWrite(pinD, LOW); 57digitalWrite(pinE, HIGH); 58digitalWrite(pinF, LOW); 59digitalWrite(pinG, LOW); 60delay(1); // wait for a second6162digitalWrite(D1, LOW);63digitalWrite(D2, HIGH);64digitalWrite(D3, LOW);65digitalWrite(D4, LOW); 66 //167digitalWrite(pinA, LOW); 68digitalWrite(pinB, LOW); 69digitalWrite(pinC, LOW); 70digitalWrite(pinD, HIGH); 71digitalWrite(pinE, LOW); 72digitalWrite(pinF, LOW); 73digitalWrite(pinG, LOW); 74delay(1); // wait for a second7576digitalWrite(D1, LOW);77digitalWrite(D2, LOW);78digitalWrite(D3, HIGH);79digitalWrite(D4, LOW); 80 //281digitalWrite(pinA, HIGH); 82digitalWrite(pinB, HIGH); 83digitalWrite(pinC, LOW); 84digitalWrite(pinD, HIGH); 85digitalWrite(pinE, LOW); 86digitalWrite(pinF, HIGH); 87digitalWrite(pinG, LOW); 88delay(1); // wait for a second8990digitalWrite(D1, LOW);91digitalWrite(D2, LOW);92digitalWrite(D3, LOW);93digitalWrite(D4, HIGH); 94 //395digitalWrite(pinA, LOW); 96digitalWrite(pinB, HIGH); 97digitalWrite(pinC, LOW); 98digitalWrite(pinD, HIGH); 99digitalWrite(pinE, LOW); 100digitalWrite(pinF, LOW); 101digitalWrite(pinG, HIGH); 102delay(1); // wait for a second103/* 104 //4105 digitalWrite(pinA, HIGH); 106 digitalWrite(pinB, LOW); 107 digitalWrite(pinC, LOW); 108 digitalWrite(pinD, HIGH); 109 digitalWrite(pinE, HIGH); 110 digitalWrite(pinF, LOW); 111 digitalWrite(pinG, LOW); 112 delay(1000); // wait for a second113 114 //5115 digitalWrite(pinA, LOW); 116 digitalWrite(pinB, HIGH); 117 digitalWrite(pinC, LOW); 118 digitalWrite(pinD, LOW); 119 digitalWrite(pinE, HIGH); 120 digitalWrite(pinF, LOW); 121 digitalWrite(pinG, LOW); 122 delay(1000); // wait for a second123 124 //6125 digitalWrite(pinA, LOW); 126 digitalWrite(pinB, HIGH); 127 digitalWrite(pinC, LOW); 128 digitalWrite(pinD, LOW); 129 digitalWrite(pinE, LOW); 130 digitalWrite(pinF, LOW); 131 digitalWrite(pinG, LOW); 132 delay(1000); // wait for a second133 134 //7135 digitalWrite(pinA, LOW); 136 digitalWrite(pinB, LOW); 137 digitalWrite(pinC, LOW); 138 digitalWrite(pinD, HIGH); 139 digitalWrite(pinE, HIGH); 140 digitalWrite(pinF, HIGH); 141 digitalWrite(pinG, HIGH); 142 delay(1000); // wait for a second143 144 //8145 digitalWrite(pinA, LOW); 146 digitalWrite(pinB, LOW); 147 digitalWrite(pinC, LOW); 148 digitalWrite(pinD, LOW); 149 digitalWrite(pinE, LOW); 150 digitalWrite(pinF, LOW); 151 digitalWrite(pinG, LOW); 152 delay(1000); // wait for a second153154 //9155 digitalWrite(pinA, LOW); 156 digitalWrite(pinB, LOW); 157 digitalWrite(pinC, LOW); 158 digitalWrite(pinD, HIGH); 159 digitalWrite(pinE, HIGH); 160 digitalWrite(pinF, LOW); 161 digitalWrite(pinG, LOW); 162 delay(1000); // wait for a second163 */164 }