950dbe8f3b963c6c94e98de376968687ed519b7c
Chip-cn-dat/Espressif-dat/ESP8266-DAT/ESP8266-HDK-dat/ESP8266-HDK-dat.md
| ... | ... | @@ -1,6 +1,7 @@ |
| 1 | 1 | |
| 2 | 2 | # ESP8266-HDK-dat.md |
| 3 | 3 | |
| 4 | +- [[ESP8266-SDK-dat]] |
|
| 4 | 5 | |
| 5 | 6 | ## chip info |
| 6 | 7 | |
| ... | ... | @@ -121,6 +122,9 @@ The ESP8266EX schematics include seven aspects: |
| 121 | 122 | - [[DPR1106-dat]] == [ESP-12 Programmer Debugger](https://www.electrodragon.com/product/esp-12-programmer-debugger/) |
| 122 | 123 | |
| 123 | 124 | |
| 125 | +## ESP8266 pins table |
|
| 126 | + |
|
| 127 | + |
|
| 124 | 128 | |
| 125 | 129 | ## ref |
| 126 | 130 |
Chip-dat/sitronix-dat/ST7789-DS.pdf
| ... | ... | Binary files /dev/null and b/Chip-dat/sitronix-dat/ST7789-DS.pdf differ |
Chip-dat/sitronix-dat/ST7789-dat.md
| ... | ... | @@ -0,0 +1,92 @@ |
| 1 | + |
|
| 2 | +# ST7789-dat.md |
|
| 3 | + |
|
| 4 | +- datasheet == [[ST7789-DS]] |
|
| 5 | + |
|
| 6 | +## C |
|
| 7 | + |
|
| 8 | +```c |
|
| 9 | +ST7789VW_ initial |
|
| 10 | +void LCD_Init(void) |
|
| 11 | +{ |
|
| 12 | + // Hardware reset |
|
| 13 | + LCD_RES_Clr(); // 复位 |
|
| 14 | + delay_ms(100); |
|
| 15 | + LCD_RES_Set(); |
|
| 16 | + delay_ms(100); |
|
| 17 | + LCD_BLK_Set(); // 打开背光 |
|
| 18 | + delay_ms(100); |
|
| 19 | + |
|
| 20 | + // Start Initial Sequence |
|
| 21 | + LCD_WR_REG(0x11); // Sleep out |
|
| 22 | + delay_ms(120); |
|
| 23 | + |
|
| 24 | + // Power control and related settings |
|
| 25 | + LCD_WR_REG(0xC4); LCD_WR_DATA8(0x20); |
|
| 26 | + LCD_WR_REG(0xC6); LCD_WR_DATA8(0x0F); |
|
| 27 | + LCD_WR_REG(0xD0); LCD_WR_DATA8(0xA4); LCD_WR_DATA8(0xA1); |
|
| 28 | + |
|
| 29 | + // Positive voltage gamma control |
|
| 30 | + LCD_WR_REG(0xE0); |
|
| 31 | + LCD_WR_DATA8(0xD0); LCD_WR_DATA8(0x04); LCD_WR_DATA8(0x0D); LCD_WR_DATA8(0x11); |
|
| 32 | + LCD_WR_DATA8(0x13); LCD_WR_DATA8(0x2B); LCD_WR_DATA8(0x3F); LCD_WR_DATA8(0x54); |
|
| 33 | + LCD_WR_DATA8(0x4C); LCD_WR_DATA8(0x18); LCD_WR_DATA8(0x0D); LCD_WR_DATA8(0x0B); |
|
| 34 | + LCD_WR_DATA8(0x1F); LCD_WR_DATA8(0x23); |
|
| 35 | + |
|
| 36 | + // Negative voltage gamma control |
|
| 37 | + LCD_WR_REG(0xE1); |
|
| 38 | + LCD_WR_DATA8(0xD0); LCD_WR_DATA8(0x04); LCD_WR_DATA8(0x0C); LCD_WR_DATA8(0x11); |
|
| 39 | + LCD_WR_DATA8(0x13); LCD_WR_DATA8(0x2C); LCD_WR_DATA8(0x3F); LCD_WR_DATA8(0x44); |
|
| 40 | + LCD_WR_DATA8(0x51); LCD_WR_DATA8(0x2F); LCD_WR_DATA8(0x1F); LCD_WR_DATA8(0x1F); |
|
| 41 | + LCD_WR_DATA8(0x20); LCD_WR_DATA8(0x23); |
|
| 42 | + |
|
| 43 | + // Display inversion and on |
|
| 44 | + LCD_WR_REG(0x21); // Display inversion on |
|
| 45 | + LCD_WR_REG(0x29); // Display on |
|
| 46 | +} |
|
| 47 | +``` |
|
| 48 | + |
|
| 49 | +## arduino code |
|
| 50 | + |
|
| 51 | +```c |
|
| 52 | +#include <Adafruit_GFX.h> // Core graphics library |
|
| 53 | +#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789 |
|
| 54 | +#include <SPI.h> // SPI communication library |
|
| 55 | + |
|
| 56 | +// Define the pins connected to your ST7789 display |
|
| 57 | +#define TFT_CS 10 // Chip Select pin |
|
| 58 | +#define TFT_RST 9 // Reset pin (or -1 if connected to Arduino's RESET) |
|
| 59 | +#define TFT_DC 8 // Data/Command pin |
|
| 60 | + |
|
| 61 | +// Create an Adafruit_ST7789 object |
|
| 62 | +Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST); |
|
| 63 | + |
|
| 64 | +void setup(void) { |
|
| 65 | + Serial.begin(9600); |
|
| 66 | + Serial.println(F("Hello! ST7789 TFT Test")); |
|
| 67 | + |
|
| 68 | + // Initialize the display |
|
| 69 | + // Use the correct dimensions for your specific ST7789 display (e.g., 240, 240) |
|
| 70 | + tft.init(240, 240, SPI_MODE2); // Init ST7789 240x240 |
|
| 71 | + tft.setRotation(2); // Adjust rotation as needed |
|
| 72 | + |
|
| 73 | + Serial.println(F("Initialized")); |
|
| 74 | + |
|
| 75 | + // Fill the screen with black |
|
| 76 | + tft.fillScreen(ST77XX_BLACK); |
|
| 77 | + |
|
| 78 | + // Set text properties and print "Hello World!" |
|
| 79 | + tft.setCursor(0, 0); |
|
| 80 | + tft.setTextColor(ST77XX_WHITE); |
|
| 81 | + tft.setTextSize(2); |
|
| 82 | + tft.println(F("Hello World!")); |
|
| 83 | +} |
|
| 84 | + |
|
| 85 | +void loop() { |
|
| 86 | + // Your main program loop, display updates, etc. |
|
| 87 | +} |
|
| 88 | +``` |
|
| 89 | + |
|
| 90 | +## ref |
|
| 91 | + |
|
| 92 | +- [[sitronix-dat]] |
|
| ... | ... | \ No newline at end of file |
Chip-dat/sitronix-dat/sitronix-dat.md
| ... | ... | @@ -0,0 +1,3 @@ |
| 1 | + |
|
| 2 | +# sitronix-dat |
|
| 3 | + |
Tech-dat/interactive-dat/ascii-dat/ascii-dat.md
| ... | ... | @@ -0,0 +1,8 @@ |
| 1 | + |
|
| 2 | +# ascii-dat |
|
| 3 | + |
|
| 4 | +附:ASCII码完整表:注第一个字符为空格,不要遗漏 |
|
| 5 | + |
|
| 6 | + !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ |
|
| 7 | + |
|
| 8 | + |
Tech-dat/interactive-dat/display-dat/display-dat.md
| ... | ... | @@ -51,16 +51,18 @@ SPI interface LCDs - [[EDS-LCD-dat]] - [[SPI-LCD-dat]] |
| 51 | 51 | |
| 52 | 52 | - [[ILI9341-dat]] |
| 53 | 53 | |
| 54 | -- [[ST7789-dat]] - [[ST7735-dat]] |
|
| 54 | +- [[ILI9488-dat]] - [[ILI9486-dat]] - [[ILI9481-dat]] |
|
| 55 | 55 | |
| 56 | -- [[SSD1681-dat]] - [[SSD1315-dat]] - [[SSD1306-dat]] - [[SSD1312-dat]] - [[SSH1106-dat]] - [[CH1106-dat]] |
|
| 56 | +- [[ILI9325-dat]] - [[ILI9328-dat]] |
|
| 57 | 57 | |
| 58 | -- [[GC9107-dat]] - [[GC9A01-dat]] |
|
| 58 | +- [[ST7789-dat]] - [[ST7735-dat]] |
|
| 59 | 59 | |
| 60 | -- [[ILI9488-dat]] - [[ILI9486-dat]] - [[ILI9481-dat]] |
|
| 60 | +- [[SSD1681-dat]] - [[SSD1315-dat]] - [[SSD1306-dat]] - [[SSD1312-dat]] - [[SSH1106-dat]] - [[CH1106-dat]] |
|
| 61 | 61 | |
| 62 | 62 | - [[SSD1963-dat]] |
| 63 | 63 | |
| 64 | +- [[GC9107-dat]] - [[GC9A01-dat]] |
|
| 65 | + |
|
| 64 | 66 | - [[RA8875-dat]] |
| 65 | 67 | |
| 66 | 68 | - [[HX8357-dat]] |
| ... | ... | @@ -84,6 +86,8 @@ SPI interface LCDs - [[EDS-LCD-dat]] - [[SPI-LCD-dat]] |
| 84 | 86 | |
| 85 | 87 | ## ref |
| 86 | 88 | |
| 89 | +- [[ascii-dat]] |
|
| 90 | + |
|
| 87 | 91 | - [[display]] |
| 88 | 92 | |
| 89 | 93 | - [[RPI-LCD-dat]] |
board-series-dat/EDS-LCD-dat/2025-08-19-12-26-54.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-12-26-54.png differ |
board-series-dat/EDS-LCD-dat/2025-08-19-13-07-31.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-13-07-31.png differ |
board-series-dat/EDS-LCD-dat/2025-08-19-13-07-54.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-13-07-54.png differ |
board-series-dat/EDS-LCD-dat/2025-08-19-13-08-04.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-13-08-04.png differ |
board-series-dat/EDS-LCD-dat/2025-08-19-13-08-39.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-13-08-39.png differ |
board-series-dat/EDS-LCD-dat/2025-08-19-13-08-54.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/2025-08-19-13-08-54.png differ |
board-series-dat/EDS-LCD-dat/EDS-1.3-dat/2025-08-19-12-59-13.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/EDS-1.3-dat/2025-08-19-12-59-13.png differ |
board-series-dat/EDS-LCD-dat/EDS-1.3-dat/2025-08-19-13-02-37.png
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/EDS-1.3-dat/2025-08-19-13-02-37.png differ |
board-series-dat/EDS-LCD-dat/EDS-1.3-dat/EDS-1.3-dat.md
| ... | ... | @@ -0,0 +1,20 @@ |
| 1 | +# EDS-1.3-dat |
|
| 2 | + |
|
| 3 | +- [[ST7789-dat]] |
|
| 4 | + |
|
| 5 | + |
|
| 6 | + |
|
| 7 | + |
|
| 8 | + |
|
| 9 | + |
|
| 10 | + |
|
| 11 | + |
|
| 12 | +| Pin | Name | Function | Description | |
|
| 13 | +|-----|------|----------|-------------| |
|
| 14 | +| 1 | GND | Ground of Logic Circuit | This is a ground pin. It acts as a reference for the logic pins. It must be connected to external ground | |
|
| 15 | +| 2 | VCC | Power Supply for Logic | This is a voltage supply pin. It must be connected to external source | |
|
| 16 | +| 3 | SCL | Serial Clock Input | The serial clock input | |
|
| 17 | +| 4 | SDA | Serial Data Input | The serial data input | |
|
| 18 | +| 5 | RES | Power Reset for Controller and Driver | This pin is reset signal input. When the pin is low, initialization of the chip is executed. Keep this pin pull high during normal operation | |
|
| 19 | +| 6 | DC | Data/Command Control | This pin is Data/Command control pin. When the pin is pulled high, the input at SDA is treated as display data. When the pin is pulled low, the input at SDA will be transferred to the command register. | |
|
| 20 | +| 7 | BLK | Backlight Control Pin | When the pin is pulled high turn on backlight, When the pin is pulled low turn off backlight | |
|
| ... | ... | \ No newline at end of file |
board-series-dat/EDS-LCD-dat/EDS-LCD-dat.md
| ... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 | legacy wiki page |
| 4 | 4 | - https://w.electrodragon.com/w/Category:TFT_LCDs |
| 5 | 5 | |
| 6 | +- [[display-dat]] |
|
| 6 | 7 | |
| 7 | 8 | ## Versions |
| 8 | 9 | |
| ... | ... | @@ -58,17 +59,88 @@ Driver IC :ILI9341V |
| 58 | 59 | |
| 59 | 60 |  |
| 60 | 61 | |
| 62 | + |
|
| 63 | +## SCH drive by ESP8266 |
|
| 64 | + |
|
| 65 | +- [[ESP8266-HDK-dat]] |
|
| 66 | + |
|
| 67 | + |
|
| 68 | + |
|
| 69 | + |
|
| 70 | + |
|
| 71 | + |
|
| 61 | 72 | ## repo |
| 62 | 73 | |
| 63 | 74 | - https://github.com/Edragon/Display-LCD-SPI |
| 64 | 75 | |
| 65 | -- https://github.com/lcdwiki/LCDWIKI_gui.git |
|
| 76 | +- https://github.com/Edragon/LCDWIKI_gui |
|
| 77 | + |
|
| 78 | +Basic functionally of this library was origianlly based on the demo-code of Adafruit GFX lib and Adafruit TFTLCD lib. |
|
| 79 | + |
|
| 80 | +Adafruit GFX lib: https://github.com/adafruit/Adafruit-GFX-Library |
|
| 81 | + |
|
| 82 | +Adafruit TFTLCD lib: https://github.com/adafruit/TFTLCD-Library |
|
| 83 | + |
|
| 84 | + // LCD controller chip identifiers |
|
| 85 | + #define ID_932X 0 |
|
| 86 | + #define ID_7575 1 |
|
| 87 | + #define ID_9341 2 |
|
| 88 | + #define ID_HX8357D 3 |
|
| 89 | + #define ID_UNKNOWN 0xFF |
|
| 90 | + |
|
| 91 | + |
|
| 92 | +## PCtoLCD2002 |
|
| 93 | + |
|
| 94 | +- [[ascii-dat]] |
|
| 95 | + |
|
| 96 | +### How to Generate 8x16 ASCII Font Bitmaps with PCtoLCD2002 |
|
| 97 | + |
|
| 98 | +**Step 1: Set the Dot Matrix Size** |
|
| 99 | + |
|
| 100 | +When choosing the dot matrix size, make sure the value is greater than the number of bytes each character uses. For example, an 8x16 character uses 8x16/8 = 16 bytes, so select a dot matrix size greater than 16. |
|
| 101 | + |
|
| 102 | + |
|
| 103 | + |
|
| 104 | +**Step 2: Configure Character Width and Height** |
|
| 105 | + |
|
| 106 | +For 8x16 ASCII, set both the character width and height to 16. |
|
| 107 | + |
|
| 108 | + |
|
| 109 | + |
|
| 110 | +This means each ASCII character will be 8x16 pixels, and the width will be half the value you set (since each byte represents 8 pixels horizontally). |
|
| 111 | + |
|
| 112 | +**Step 3: Input the ASCII Table** |
|
| 113 | + |
|
| 114 | +Paste the ASCII character table into the input field. |
|
| 115 | + |
|
| 116 | + |
|
| 117 | + |
|
| 118 | +**Step 4: Generate the Font Bitmap** |
|
| 119 | + |
|
| 120 | +Click the button to generate the font bitmap. The result will look like this: |
|
| 121 | + |
|
| 122 | + |
|
| 123 | + |
|
| 124 | +**Step 5: Use the Generated Font in Code** |
|
| 125 | + |
|
| 126 | +The 8x16 font bitmap is already provided in the sample file `lcdfont.h`, as shown below: |
|
| 127 | + |
|
| 128 | + |
|
| 129 | + |
|
| 130 | + |
|
| 131 | +## tools |
|
| 132 | + |
|
| 133 | +- [[image2Lcd-2.9.zip]] - [[PCtoLCD2002.zip]] |
|
| 134 | + |
|
| 66 | 135 | |
| 67 | 136 | |
| 68 | 137 | ## ref |
| 69 | 138 | |
| 70 | 139 | - [[ILC0011-dat]] |
| 71 | 140 | |
| 72 | -- [[EDS-LCD]] |
|
| 141 | +- [[display-dat]] |
|
| 142 | + |
|
| 143 | + |
|
| 144 | + |
|
| 145 | +- [[EDS-LCD]] - [[display]] |
|
| 73 | 146 | |
| 74 | -- [[display]] |
|
| ... | ... | \ No newline at end of file |
board-series-dat/EDS-LCD-dat/Image2Lcd-2.9.zip
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/Image2Lcd-2.9.zip differ |
board-series-dat/EDS-LCD-dat/PCtoLCD2002.zip
| ... | ... | Binary files /dev/null and b/board-series-dat/EDS-LCD-dat/PCtoLCD2002.zip differ |