paperdink / PaperdInk-Library

Arduino Library to interact with Paperd.Ink
MIT License
21 stars 8 forks source link

Usage with PlatformIO #4

Closed alhirzel closed 1 year ago

alhirzel commented 1 year ago

Any information or a quickstart on using Paperd.ink with platformio?

grdwyer commented 1 year ago

This platform io config is working for me.

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = 
    ; paperdink/Paperdink@^0.0.2
    https://github.com/paperdink/PaperdInk-Library.git
    bblanchon/ArduinoJson@^6.20.0
    squix78/JsonStreamingParser@^1.0.5
monitor_speed = 115200

I got the Calther example running but had to make a couple changes. I kept getting connection issues for getting the weather info and needed to add client->setInsecure(); below here

The calendar also wasn't having the right day offset which I ended up just hard coding day_offset found here to 6 (week starts on monday)

rgujju commented 1 year ago

@grdwyer Thank you for the platform IO config. The rest of the issues you mention have been fixed.

alhirzel commented 1 year ago

Thank you @grdwyer ! @rgujju, would you accept a PR that adds this to documentation?

rgujju commented 1 year ago

Yep! But please make sure to include all the dependent libraries:

Adafruit GFX library by Adafruit
GxEPD2 by Jean-Marc Zingg version
JSON Streaming Parser by Daniel Eichhorn
ArduinoJSON by Benoit Blanchon