The research on simple multitasking with RP2040 to emulate RTOS
It was made for LiLyGO T-Display RP2040 using TFT_eSPI library as a display driver.
The following dependecies should be installed:
- Pico board package by Earle Philhower
- TFT_eSPI library by Bodmer
- SafeString library by Matthew Ford
The installation instructions for each dependency provided below.
You can install Earle Philhower's board package using additional boards manager of Arduino IDE as following (MacOS):
- Start the Arduino IDE and go to
Arduino IDE->Settings
. - At the bottom in the "Additional boards manager URLs" field type link to the board package repository:
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
- Go
Tools->Boards manager
in the IDE menu - Type 'pico' in the search box and select "Add"
- Make sure to install version
3.2.2
not higher, because the latest versions doesn't work properly with TFT_eSPI library
- Clone TFT_eSPI repository
- Copy files from repository into
libraries/TFT_eSPI
directory inside of the Arduino sketches directory - Edit the file
libraries/TFT_eSPI/User_Setup_Select.h
to use correct driver for the Lilygo T-Display RP2040 (ST7789 on SPI bus with 135x240 TFT) as following:
- uncomment the line
#include <User_Setups/Setup137_LilyGo_TDisplay_RP2040.h>
- comment out the line
#include <User_Setup.h>
.
Can be installed using Tools->Manage Libraries..
and search for SafeString
.