• sales

    +86-0755-88291180

Image-Modulation-Tutorial User Guide

Introduction

When developing an embedded microcontroller, you need to use LCD/OLED to display a picture. The most direct and simple way is to use corresponding tools to convert the picture into corresponding data points (actually a 2-dimensional array), and then you can use the corresponding code to display the array on the LCD/OLED display by sequence.

Steps

1. Click Image2Lcd2.9.zip to download the tool.
2. Double-click to enter the interface.

3. Open the image that needs to be extracted. (Here we take a 1.47inch LCD Module as an example.)

  • Parameter setting
Output data type: C array (*.c)
Scan mode: vertical
Output grayscale: 16-bit true color
Maximum width and height (set according to the actual aspect ratio of the image): 172x320
Output image adjustment: the default setting is fine, if you need color inversion, check Color Inversion
Click 16-bit color: color bits -> RGB565, order of colors -> RGB


4. Save the setting.

  • The path and name are set by the user.
  • The file type is .c file.
  • After saving, an array will be generated, after ctrl+A selects all:


  • Copy it to the "Image. c" file.


  • And declare it in Image.h:


  • Finally, call the main function and map it to the screen.


The effect is shown below:

TAG: RP2040 LoRa-HF Raspberry Pi 5 PD Power Raspberry Pi 5 Cooling Luckfox Pico Max Raspberry Pi 8 inch DSI LCD Display With 5MP Front Camera MIPI 800×480 Capacitive TouchScreen NVIDIA Jetson Xavier NX AI 21TOPS Supercomputer Edge Computing eMMC-16GB RAM 8/16GB Raspberry Pi 12.3 inch DSI MIPI Display TouchScreen LCD 720x1920 Luckfox Lyra Omni3576 RK3576 Raspberry Pi 5 Argon-NEO-M.2-NVME-PCIE-Expansion-Board Only For Argon NEO 5 Case (Not include) 4.26inch-e-Paper MPS2.5G Raspberry Pi 5 PCIe to NVME SSD And 2.5G Ethernet RJ45 HAT RTL8125 2280 2242 2230 Raspberry Pi 5 Computer USB Monitor Screen RV1103 SC3336 Raspberry Pi 5 Official Case ESP32 1.9 inch LCD Capacitive TouchScreen 1.9inch Display ST7789 170x320 for Arduino /Raspberry Pi /Pico Raspberry Pi UPS RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel ESP32-S3 A7670E 4G development board supports LTE Cat-1/2G/GNSS positioning/WiFi/Bluetooth Banana Pi Raspberry Pi Screen