Joy-it SBC-LCD01 Bruksanvisning


Läs gratis den bruksanvisning för Joy-it SBC-LCD01 (7 sidor) i kategorin Inte kategoriserad. Guiden har ansetts hjälpsam av 19 personer och har ett genomsnittsbetyg på 4.7 stjärnor baserat på 10 recensioner. Har du en fråga om Joy-it SBC-LCD01 eller vill du ställa frågor till andra användare av produkten? Ställ en fråga

Sida 1/7
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
1,3 " HD-IPS-TFT-LCD DISPLAY
SBC-LCD01
1. GENERAL INFORMATION
Dear customer,
thank you for choosing our product. In the following, we will show you
how to use this device.
Should you encounter any unexpected problems during use, please do
not hesitate to contact us.
Note that before you can use the display, you must solder the pin
header!
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
2. USAGE WITH THE NODEMCU
1. Connection
2. Code example
The SBC-LCD01 has a logic level of 3.3V, making a NodeMCU recom-
mended for this application. To use a NodeMCU with the Arduino IDE,
you must first add the board. To do this click on
File
Preferences
. There you add the following link
Additional board
administrator URLs
.
Now you can download the library in the Arduino IDE. There you go to the
library manager, which you can find under
Sketch
Include library
Manage libraries
. There you install Adafruit ST7735 and ST7789
Library and the Adafruit GFX Library using the search bar. Now you can
download a sample code here, where an image is displayed on the
screen.
Make sure that you select the NodeMCU as board also under
Tools
, as
well as the correct port.
Please note, if you want to upload the code, you have to keep the
flash button pressed!
NodeMCU LCD
D1
(GPIO 5)
DC
D2
(GPIO 4)
RES
D5
(SCLK)
SCL
D7
(MOSI)
SDA
G GND
3V VCC
http://arduino.esp8266.com/stable/package_esp8266com_index.json
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
#define CS -1 // Declaration of Chip Select
#define DC 5 // Declaration of Data / Command Pin
#define RST 4 // Declaration of RESET Pin
// Initialize display
Adafruit_ST7789 lcd = Adafruit_ST7789(CS, DC, RST);
void setup(void) {
lcd.init(240, 240, SPI_MODE2);
lcd.setRotation(1);
delay(500);
// fill Display with a colour and a String
lcd.fillScreen(0x22ED);
lcd.setCursor(20, 100);
lcd.setTextColor(ST77XX_WHITE);
lcd.setTextSize(6);
lcd.print("Joy-IT");
}
void loop() {
// empty
}


Produktspecifikationer

Varumärke: Joy-it
Kategori: Inte kategoriserad
Modell: SBC-LCD01

Behöver du hjälp?

Om du behöver hjälp med Joy-it SBC-LCD01 ställ en fråga nedan och andra användare kommer att svara dig