Description
Getting started with a Waveshare RP2350 Touch LCD 2.8
What MCU/Processor/Board and compiler are you using?
Waveshare RP2350 Touch LCD 2.8 and Arduino ID 2
What do you want to achieve?
I have configured LVGL 9.3.0 and can compile with it in an Arduino Sketch.
I can upload the sketch to the RP2350 Touch,
I have added some command line output to ensure that the compilation works.
Which it does.
Now comes the difficult part for me, creating an output on the Waveshare Display.
I have looked at the demo code supplied by Waveshare and it is confusing and ambiguous.
I do not know if I should declare any constants and variables in my code or in TFT_eSPI.h which is sometimes mentioned.
Other than the fact I know I have to declare the display size which will be Landscape 320 x 240, how and where do I declare the pins used for the Screen Display and the Touch Facility?
Additionally the BLINK_LED routine does not blink the Led but does print out the HIGH/LOW in the Serial Monitor.
The last problem is I am almost blind so scanning document after document is very hard going.
What have you tried so far?
Valium and other Ant-Depressants.
Code to reproduce
/*
Configuration Tester
*/
#include <Arduino.h>
#include <dummy_rp2350.h>
#include <lvgl.h>
#if LV_USE_TFT_ESPI
#include <TFT_eSPI.h>
#endif
#define BLINK_LED 1
const uint LED_PIN = LED_BUILTIN; // Define the LED pin
/* Core 0 */
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); /* prepare for possible serial debug */
while (!Serial);
String LVGL_Arduino = "Hello Arduino! ";
LVGL_Arduino += String('V') + lv_version_major() + "." + lv_version_minor() + "." + lv_version_patch();
Serial.println(LVGL_Arduino);
Serial.println("I am LVGL_Arduino");
#ifdef BLINK_LED
pinMode(LED_PIN, OUTPUT);
#endif
Serial.print("Unique Id: "); Serial.println(rp2040.getChipID());
}
void loop() {
// put your main code here, to run repeatedly:
#ifdef BLINK_LED
digitalWrite(LED_PIN, HIGH); // turn the LED on (HIGH is the voltage level)
Serial.println("HIGH");
delay(1000); // wait for a second
digitalWrite(LED_PIN, LOW); // turn the LED off by making the voltage LOW
Serial.println("LOW");
delay(1000);
#endif
}
/* Core 1 */
void setup1() {
// put your setup code here, to run once:
}
void loop1() {
// put your main code here, to run repeatedly:
}
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.