• 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: Raspberry Pi Compute Module 5 PoE BASE A IO Board RJ45 For CM5 Lite/eMMC Industrial-grade isolated 2-way RS485 hub repeater One RS485 TO Two RS485 Core3566102000 Industrial Isolated USB TO 4CH RS485 (B) Converter UART CH344L For Wall/Rail-Mount MPS2280 POE Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280/2242/2230 Raspberry Pi 5 Power Raspberry Pi 5 PCIe to 4-CH PCIe FFC HAT Board Pi5 4 Channels Raspberry Pi Camera Module 3 Sensor Assembly IMX708 Official Original 11.9MP Camera Raspberry Pi 1.44inch LCD display HAT Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino RV1103 Spotpear WIFI Configuration Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board C HAT Pi5-PCIe-2280-2242-2230 SpotPear ESP32 Google Dinosaur game 1.5inch LCD Raspberry Pi 10.85 inch e-Paper ink screen display black white 1360×480 For Arduino /Jetson /STM32 /ESP32 Raspberry Pi 5 PCIe to M.2 Raspberry Pi Pico 2 RP2350B 4.3inch Capacitive TouchScreen 4.3 inch LCD Display Development Board 800×480