Skip to content

Config _ OPEN SMART

Calvin Hass edited this page Apr 7, 2019 · 4 revisions

Modifications for OPEN-SMART Configuration

Applicable displays:

  • OPEN-SMART 2.2 TFT (176x220) with RM68130 controller : product link

GUIslice will generally use the prenticedavid/MCUFRIEND_kbv display library to drive the OPEN-SMART displays.

By default, the MCUFRIEND_kbv library may not enable support for every display (to reduce memory footprint), so a small modification to the MCUFRIEND_kbv library is necessary to enable support.

File Modifications Required

Close down your Arduino IDE (if it is already open). Locate the MCUFRIEND_kbv folder within your Arduino libraries folder, then make the following edits:

  • File: MCUFRIEND_kbv\utility\mcufriend_special.h
    • Uncomment the following line:
    • #define USE_OPENSMART_SHIELD_PINOUT
  • File: MCUFRIEND_kbv\utility\mcufriend_shield.h
    • Uncomment the following line:
    • #define USE_SPECIAL
  • File: MCUFRIEND_kbv\MCUFRIEND_kbv.cpp
    • Uncomment the following line:
    • #define SUPPORT_9225

MCUFRIEND ID Forcing

  • The MCUFRIEND_kbv library normally attempts to read an ID from the display and then use that to initialize the display correctly. In the case of the OPEN-SMART display, the ID that is read-back will not work directly for initialization. Instead, users will need to provide a "forced initialization ID" to the MCUFRIEND_kbv's begin() call.
  • In the case of the OPEN-SMART 2.2 TFT, a forced ID of 0x9225 appears to work
  • When using the GUIslice example configuration for the OPEN-SMART, this step is done automatically since the override value is provided in the config file by the following line:
    • #define DRV_DISP_ADAGFX_MCUFRIEND_FORCE 0x9225
Clone this wiki locally