Skip to content

chrismilleruk/mos-demo-epd2in9b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongoose OS Demo app for the Waveshare E-paper display 2.9in (B)

Overview

This is a skeleton app to demonstrate how to integrate the Waveshare EPD Demo code with Mongoose OS.

Pin configuration

ESP32 (Espressif)

EPD Module ESP32
BUSY purple 4
RST white 16
DC green 17
CS orange 5
CLK yellow 18
DIN blue 23
GND black GND
3.3V red 3V3

How to install this app

  • Install and start mos tool
  • Switch to the Project page, find and import this app, build and flash it:

Conversion process

  • 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

About

Demo app for the Waveshare E-paper display 2.9in (B)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published