This is a skeleton app to demonstrate how to integrate the Waveshare EPD Demo code with Mongoose OS.
- EPD Module: https://www.waveshare.com/wiki/2.9inch_e-Paper_Module_(B)
- Demo code: https://www.waveshare.com/wiki/File:2.9inch_e-paper_module_b_code.7z
EPD Module | ESP32 | |
---|---|---|
BUSY | 4 | |
RST | 16 | |
DC | 17 | |
CS | 5 | |
CLK | 18 | |
DIN | 23 | |
GND | GND | |
3.3V | 3V3 |
- Install and start mos tool
- Switch to the Project page, find and import this app, build and flash it:
- Create a suitable project and import the code.
- Put .h files in /include/
- Put .c[pp] files to /src/
- Add Arduino support libraries
- Get it to compile
- Fix casing for <Arduino.h>, <SPI.h>
- Make <avr/pgmspace.h> work with multiple platforms
- Convert .ino to .cpp and add headers
- Use main.cpp instead of main.c (mos build --clean)
- Get it to work
- Call entry point from main.cpp.
- Move hardcoded configuration to mos_config
- Set "spi.enable"=true
- Deal with watchdog timer.
- Convert to library