Posts

Showing posts from December, 2025

install the gcc make perl packages from your distribution.

Image
When install Guest Additions CD image, the following error reported: This system is currently not set up to build kernel modules. Please install the gcc make perl packages from your distribution. To fix it, install the necessary software package in terminal: $ sudo apt update $ sudo apt install build-essential linux-headers-$(uname -r) -y

LVGL v9 exercise run on Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD (170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch).

Image
LVGL v9 exercise run on Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD (170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch) Basic setup and connection, refer to last exercise:  Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD, using Arduino_GFX_Library in Arduino Framework . To add LVGL function: - Install LVGL library in Arduino IDE Library Manager. - Go to lvgl library directory.   Copy lv_conf_template.h as lv_conf.h into the Arduino Libraries directory. - To enable the content of the file:     change the first #if 0 to #if 1 /* clang-format off */ #if 1 //0 /* Set this to "1" to enable content */ Exercise Code: rpPico2_ST7789_CST816_lvgl_button.ino , Create a button to control onboard LED. /* LVGL v9 exercise run on Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD (170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch). Create a button to control onboard LED. https://coxxect.blogspot.com/2025/12/lvgl-v9-exer...

First try VS Code/PlatformIO to program ESP32-S3 in Arduino Framework, to blink RGB LED.

Image
First try VS Code/PlatformIO to program YD-ESP32-S3 (N16R8) in Arduino Framework, to blink RGB LED. main.cpp #include <Arduino.h> #include <Adafruit_NeoPixel.h> #define LED_PIN 48 // YD-ESP32-S3 onboard WS2812 (IO48) #define NUMPIXELS 1 // One RGB LED only Adafruit_NeoPixel pixels(NUMPIXELS, LED_PIN, NEO_GRB + NEO_KHZ800); void setup() { Serial.begin(115200); pixels.begin(); pixels.setBrightness(10); // Brightness (0~255) Serial.println("Rainbow demo start with brightness 100"); } uint32_t Wheel(byte pos) { pos = 255 - pos; if(pos < 85) { return pixels.Color(255 - pos * 3, 0, pos * 3); } else if(pos < 170) { pos -= 85; return pixels.Color(0, pos * 3, 255 - pos * 3); } else { pos -= 170; return pixels.Color(pos * 3, 255 - pos * 3, 0); } } void loop() { for(int i = 0; i < 256; i++) { pixels.setPixelColor(0, Wheel(i)); pixels.show(); delay(20); } } platformio.ini [env:e...

Install VS Code/PlatformIO in Windows 11

Image
  To download VS Code, visit  https://code.visualstudio.com/ . To install PlatformIO in VS Code, click on the Extensions icon on left. Search and install PlatformIO. Next: ~  First try VS Code/PlatformIO to program ESP32-S3 in Arduino Framework, to blink RGB LED .

my new PC: MOREFINE M11 Mini PC with 7" Touch IPS Screen, Intel N305 running Windows 11 Pro

Image
my new PC: MOREFINE M11 Mini PC with 7" Touch IPS Screen, Intel N305 running Windows 11 Pro, 16GB + 2T NVME SSD.

Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD, using Arduino_GFX_Library in Arduino Framework.

Image
Raspberry Pi Pico 2 +  Waveshare 1.9inch Touch LCD (170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch) in Arduino Framework, interface with ST7789 using Arduino_GFX_Library (GFX Library for Arduino by Moon On Our Nation), and reading register from CST816 via I2C. Connection: Code: rpPico2_Arduino_GFX.ino , setup for Arduino_GFX_Library, color test. /* Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD, 170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch. Using Arduino_GFX_Library (GFX Library for Arduino by Moon On Our Nation) Details: https://coxxect.blogspot.com/2025/12/raspberry-pi-pico-2-waveshare-19inch.html Using board of Raspberry Pi Pico/RP2040/RP2350 by Earle F. Philhower III in Boards Manager. https://github.com/earlephilhower/arduino-pico Install Earle Philhower Raspberry Pi Pico Arduino core in Arduino IDE https://coxxect.blogspot.com/2023/08/install-earle-philhower-raspberry-pi.html */ /*********************...

Check if VT-x enabled in Windows 11

Image
To check if VT-x enabled in Windows 11: - Right click on Task Bar to open Task Manager. - Click to view Performance option. - Check the Virtualization option, Enabled in the screenshot below.

My dev.Board: ESP32-S3 dev board

Image
My dev.Board: ESP32-S3 dev board

Waveshare 1.9inch Touch LCD

Image
Waveshare 1.9inch Touch LCD 170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch Product Page: Waveshare 1.9inch Touch LCD Arduino Exercises: ~  Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD, using Arduino_GFX_Library in Arduino Framework . ~  LVGL v9 exercise run on Raspberry Pi Pico 2 + Waveshare 1.9inch Touch LCD (170x320 ST7789V2 SPI LCD and CST816 I2C capacitive touch) .