Skip to content

v1.3

Latest

Choose a tag to compare

@Liongrass Liongrass released this 05 Feb 01:37
· 4 commits to main since this release
d1ef5c0

This release is relatively comprehensive, especially on the code side.

Most importantly, it reworks the entire display logic. The logic to create screens is now concentrated on screens.py. The functions are typically called make_screen or make_overlay, indicating whether the screens are meant to be displayed through full or partial refresh. The display.py file now solely defines how the screens are pushed to the physical screen. This should make it easier to understand the code but also to change it in the future, if for example another display were to be used.

Secondly, in this release the 21UP now includes a barometer, which is able to measure the temperature and humidity inside of the machine. Both are printed in the logs, but only the temperature is shown on the display.

  • A bug is addressed where the pi picks up residual electricity in the wire after a can is dispensed. The machine then incorrectly shows the item as unavailable
  • The QR code is now generated before the item description and price is shown on the screen. This allows the item description and the price to be properly aligned with the QR code, as the QR code's size depends on a variety of factors
  • The checkmark and failure cross are also adjusted to the size of the QR code
  • When the machine is started, the items are now printed in order, instead of all at once. Looks cool
  • A new README explains how the barometer is used and how it can be installed and tested
  • A bug is fixed that doesn't pick up the default TRUE setting for the display and barometer
  • The pin spreadsheet is updated
  • Logging is improved on various occasions