usetrmnl / firmware

TRMNL device firmware
https://docs.usetrmnl.com
GNU General Public License v3.0
25 stars 4 forks source link

Testable shared library #8

Closed jrr closed 2 months ago

jrr commented 2 months ago

This PR creates a new 'trmnl' component to house portable, testable code, based on PlatformIO's guidance.

For now I started with some low-hanging fruit, the BMP parsing function, which didn't require much restructuring to make it testable. (the only real change I had to make was mocking out ArduinoLog, which PlatformIO won't compile for desktop)

Mainly I'm trying to establish a foothold to make it easy to add more tests in the future.