March 2021 pi-top Python SDK Update - v0.18.1

Hi everyone!

Just a quick post from me to write up some the changes that have made it into the SDK!

API - GENERAL

  • Added support for tracking state in Pitop object
  • Allow importing main objects from module root (from pitop import *)

API - MINISCREEN

  • Always stop background thread when displaying anything
  • Add pixel inversion support (‘on’ pixels are ‘off’ and vice versa)

API - CAMERA

  • Improve handling of camera object deletion
  • Loop over available devices to create camera object

API - PROTO+

  • Port DistanceSensor to gpiozero; drop RPi.GPIO dependency
  • Use public I2C methods from common library

API - PULSE

  • Use common library for SMBUS; drop unnecessary direct dependency

CLI

  • Add additional information to health check

GitHub Actions (workflow)

  • Use pre-commit to perform all syntax checks
  • Add test coverage reporting

Miscellaneous

  • Update examples to use latest SDK paradigms

To see what else we have lined up for our v1 release, check out the GitHub Issues tied to the v1 milestone!

2 Likes

I am guessing this has not changed anything in the pt-sys-oled so our current info still is correct?

For now - I’ll be setting up a spec proposal for the new application soon!

1 Like

lol forward to it :slight_smile:

Awesome, nice work! Looping over available camera indexes is my favourite :slightly_smiling_face:

Looking forward to it.

The healthsolution platforms usually provide a number of elements, such as resources for mental wellbeing, professional guidance, fitness routines, and publications on a variety of health-related issues.