Ameba Arduino: [RTL8722CSM] [RTL8722DM] [RTL8722DM MINI] Display User-Generated QR Code on E-Paper

Materials

  • AmebaD [RTL8722DM / RTL8722CSM / RTL8722DM MINI] x 1
  • Waveshare 2.9inch e-Paper HAT (D) x 1

Example

In this example, we use the Ameba RTL8722 module connects to a Waveshare 2.9inch e-Paper module to display a few QR codes. The display uses the flexible substrate as the base plate, with interface and a reference system design.The 2.9” active area contains 296×128 pixels and has 1-bit white/black full display capabilities. An integrated circuit contains gate buffer, source buffer, interface, timing control logic, oscillator, etc… are supplied with each panel. You may refer to the official 2.9inch e-Paper HAT (D) datasheet to know more about this module.

Front view of the e-Paper Module:

1

RTL8722DM / RTL8722CSM wiring diagram:

1

1

RTL8722DM MINI wiring diagram:

1

1

Firstly, you need to open the “DisplayQR” example in “File” -> “Examples” -> “AmebaEink” -> “EinkDisplayQR”:

1

Modify the URL in the loop() section as your wish, after that, verify and upload the code to the Ameba board. Upon successfully upload the sample code and press the reset button, a QR code generated based on the URL of your input will be shown on the E-Paper module. The QR code showing below leads to our Ameba IoT official website: Ameba ARDUINO

1

Code Reference

[1] We use Good Display GDEH029A1 2.9 Inch / 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display:
http://www.good-display.com/product/201.html
[2] Provide the link to how to generate a QR code on the E-paper module:
https://eugeniopace.org/qrcode/arduino/eink/2019/07/01/qrcode-on-arduino.html
[3] A simple library for generating QR codes in C, optimized for processing and memory-constrained systems:
https://github.com/ricmoo/QRCode#data-capacities
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved.
Please confirm that QQ communication software is installed