STM32 Bits: LCDs with Ucglib (ST7735)

Описание к видео STM32 Bits: LCDs with Ucglib (ST7735)

To get the code to compile, you need to download and install Ucglib. This can be done using the library manager in the Arduino IDE.

Once installed, you need to modify the Ucglib.cpp file (on Windows this is found in Documents/Arduino/libraries/Ucglib/src/ucglib.cpp) Simply add this code below the line "#include "Ucglib.h"":

#if defined(__arm__)
#ifndef __NOP
#define __NOP __asm volatile ("nop")
#endif
#endif

Once this is modified, you can open one of the example files and place this line where the other constructors are.
Ucglib_ST7735_18x128x160_HWSPI ucg(/*cd=*/PB1, /*cs=*/ PB12, /*reset=*/ PA4);

Theoretically this will work with any ARM processor but I cannot confirm. Please tell me your experiences with the boards and LCD's and I will make a list of confirmed useful ones

Комментарии

Информация по комментариям в разработке