So I’ve been working on trying to get u8glib working on my Spark Photon (spoiler: I have it working right driving two displays simultaneously).
I opted to access the HAL functions directly for GPIOs, SPI, and delays. This raises two questions:
- Should I be calling the HAL? One thing I like about it is that it works with C and C++ (some of the firmware API is C++ only). Also, using SPI it allows me to define my own CS (SS) pins so I can drive multiple devices from the same HW SPI and even frees up the SS analog pin if I choose not to use that.
- Is there a reference for the HAL? I’ve been guessing what things do so far from their usage in wiring & etc, but it’s not always clear what is and isn’t a strict necessity.
p.s. any victim… errr… volunteer… want to try out my u8glib when it’s a bit cleaned up?