schreibfaul1 / esp32-tft-library-ili9486 Goto Github PK
View Code? Open in Web Editor NEWA library for 3.5 inch RPi LCD (A) 320x480 display from Waveshare
A library for 3.5 inch RPi LCD (A) 320x480 display from Waveshare
I've got a 3.5" RPi LCD (A), which I believe I can use with my Arduino Uno using this library. Could I please know the wiring schematics for the example in this repository? Which pin on the display should I connect to which pin on the Arduino Uno?
I have not had success connecting the RPi LCD (C) to an ESP32-S3
Anyone have any knowledge to share?
SD mounts only if NOT reformatted by windows 10.
void setup() {
SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI);
tft.begin(TFT_CS, TFT_DC, SPI_MOSI, SPI_MISO, SPI_SCK);
//tft.setFrequency(10000000);
SD.begin(SD_CS);
//SD.begin(SD_CS,SPI,10000000); // faster speed max 40MHz
Serial.begin(115200);
}
rgds
rudi
Using the touch test sample code on the home page always returns on the screen:
PosX=0
PosY=0
void tp_pressed(uint16_t x, uint16_t y) is never run!!!
#include "Arduino.h"
#include "SPI.h"
#include "tft.h"
#define TFT_CS 17 //22
#define TFT_DC 5 //21
#define TFT_BL 22 //17 33 (pico V4)
#define TP_IRQ 15 //39
#define TP_CS 16 //16 32 (pico V4)
#define SPI_MOSI 23 //23
#define SPI_MISO 19 //19
#define SPI_SCK 18 //18
TFT tft(0);
TP tp(TP_CS, TP_IRQ);
uint16_t tp_x, tp_y;
void setup() {
Serial.begin(115200);
SPI.begin();
tft.begin(TFT_CS, TFT_DC, SPI_MOSI, SPI_MISO, SPI_SCK, TFT_BL);
// SD.begin();
tft.setRotation(1); // Use landscape format
tp.setRotation(1);
tft.fillScreen(TFT_BLACK);
tft.setTextColor(TFT_GREENYELLOW);
tft.setTextSize(2);
}
//-------------------------------------------------------------------------------------
void loop(void) {
tp.loop();
}
//-------------------------------------------------------------------------------------
// Event from TouchPad
void tp_pressed(uint16_t x, uint16_t y){
tp_x=x; tp_y=y;
Serial.print("X=");
Serial.print(x);
Serial.print(" Y=");
Serial.println(y);
}
void tp_released(){
tft.fillRect(100, 100, 80, 40, TFT_BLACK);
tft.setCursor(100, 100);
tft.print("PosX="); tft.println(tp_x);
tft.print("PosY="); tft.println(tp_y);
Serial.print("PosX=");
Serial.print(tp_x);
Serial.print(" PosY=");
Serial.println(tp_y);
I have been tried to use your ESP32-TFT-Library-ILI9486 on
SKU: 13587
Part Number: 4inch TFT Touch Shield
Brand: Waveshare
UPC: 614961951242
4" display.
Unfortunatelly it dosn't work , do you know what changes should i do to run it on 4" display, or do you know any other existig solution.
Pawel,
hi dear schreibfaul1
thanks for your work!
i have ili9486 (parallel mode) bare lcd and want to make a spi to parallel converter for my lcd
this is mu lcd:
http://aitendo3.sakura.ne.jp/aitendo_data/product_img/lcd/tft2/Z350IT002/Z350IT002_aitendo.pdf
do you have any schematic or info from RPi LCD (A) or RPi LCD (B)?
IMHO Spi should not know anything about pixels...
spi_TFT->writePixels((uint8_t*)colors , len * 2);
I am trying to assist someone with with this display and dev board setup. my display comes on and then goes black and dies. is this a power delivery issue or am I doing something wrong. I am using the text only test at the moment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.