Hello All.
I have problem to start LCD on my portenta H7:
Code :
Hello All.
I have problem to start LCD on my portenta H7:
Code :
#include "Arduino.h"
#include "RPC.h"
#include <Arduino_GFX_Library.h>
Arduino_DataBus *bus = new Arduino_HWSPI(D5, D7); // DC , CS
Arduino_GFX *gfx = new Arduino_ILI9488(bus, D4, 0, false); // ili9488 reset on d4
void setup() {
gfx->begin();
gfx->setRotation(1);
Serial.begin(38400);
}
void loop() {
gfx->begin();
gfx->fillScreen(YELLOW);
Serial.print("yellow");
delay(1000);
gfx->fillScreen(ORANGE);
Serial.print("orange");
delay(1000);
gfx->fillScreen(WHITE);
Serial.print("white");
delay(1000);
}
My connection is
lcd portenta
vdd --> +3.3
gnd --> GND
CS --> D7
RST --> D4
DC --> D5
SDI -->D8
SCK -->D9
BL--> +3.3
SDO -->d10
can someone help me to start this lcd on portenta , lcd works with arduino nano and uno and due but not on portenta h7
My connection is
lcd portenta
vdd --> +3.3
gnd --> GND
CS --> D7
RST --> D4
DC --> D5
SDI -->D8
SCK -->D9
BL--> +3.3
SDO -->d10
can someone help me to start this lcd on portenta , lcd works with arduino nano and uno and due but not on portenta h7
https://www.aliexpress.com/item/1005004804238339.html?spm=a2g0o.order_list.order_list_main.35.34891802EQjcuL
Sorry I do not read word problems. I prefer posting an annotated schematic, not a frizzy. Be sure to include all connections, power, ground, and power sources. Also post links to technical information on the hardware parts. I see several problems with your code, by the time you have drawn the schematic you will probably have figured it out. It is common practice to annotate code so somebody else can follow it.
I know not exactly the same, but I have successfully connected dfrobot 480x320 SPI display.
I used the GDI connection, with an 18 pin flat cable.
The I2C connection is required for the touch interface (if required). The schematic shows the pins I used to connect on the Portenta Breeakout board.
I used these defines
#define TFT_DC GPIO_0
#define TFT_CS PIN_SPI_SS
#define TFT_RST GPIO_2
#define TFT_BL GPIO_4
DFRobot_Touch_GT911 touch;
/**
* @brief Constructor Constructor of hardware SPI communication
* @param dc Command/data line pin for SPI communication
* @param cs Chip select pin for SPI communication
* @param rst reset pin of the screen
*/
DFRobot_ILI9488_320x480_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST);
DFRobot_UI ui(&screen, &touch);
