martinberlin / cale-idf

CalEPD is an Epaper component driver for the ESP-IDF framework with GFX and font support, optional touch interface, compatible with ESP32 / S2 / S3 / C3
https://fasani.de
Apache License 2.0
274 stars 25 forks source link

100/100 transform IDF SPI Master example into a C++ Class #1

Closed martinberlin closed 4 years ago

martinberlin commented 4 years ago

This is merely an exercise but is the ground stone of the architecture base. Is my take to refactor a pure C example into a C++ class with methods. This example will remain and be transformed in the IDF version of cale_tft Firmware

In the last iteration, it should just do this:

  1. Connect to WiFI
  2. Download an image from the web
  3. Render it on the TFT display

The goal is to have a tiny "human-readable" code in cale.cpp main file and that the rest is encapsulated in classes.

martinberlin commented 4 years ago

Done: https://github.com/martinberlin/cale-idf/tree/tft_test This branch will stay as the example where all started