Einhugur Plugin Releases (2024)

Gpiod Plugin 0.7 is out.

This plugin is a wrapper for libgpiod from: libgpiod/libgpiod.git - C library and tools for interacting with the linux GPIO character device

This plugin is part of our community effort project so the plugin is completely free and open source.

The plugin encapsulates the libpgiod so does not require libpgiod to be installed.

All example projects have been tested with Raspberry Pi 2, 3, 4 (and I know a user has tested at least one example project on Raspberry Pi 5).

The plugin deals with async operations in native threads masking the difficult things to do in Xojo.

New in version 0.7

  • Added GetLineOffsetFromName function to the Chip class.
  • Added Reconfigure method to the LineRequest class.
  • Added OutputValue property to the LineSetting class.
  • Added InfoEvent class.
  • Added WaitInfoEvent on the Chip class.
  • Added WatchLineInfo method to the Chip class.
  • Added ReadInfoEvent method to the Chip class.
  • Added ReadInfoEventAsync method to the Chip class. (Uses native threading)
  • Added CancelAsyncInfoMonitor method to the Chip class.
  • Added Delegate for Info events on the Chip class.
  • Added Bias property to the LineSetting class.
  • Added LineBias enum.
  • Added EdgeDetection property to the LineSetting class.
  • Added LineEdge enum.
  • Added DebouncePeriod property to the LineSetting class.
  • Added EdgeEventBuffer class.
  • Added EdgeEvent class.
  • Added RequestReadEdgeEvents function to the LineRequest class.
  • Added WaitEdgeEvents function to the LineRequest class.
  • Added EdgeEvent type enum.
  • Added EdgeEventDelegate to the LineRequest class.
  • Added 4 more example projects.
  • Added more documentation.

Download link for the plugin:
https://www.einhugur.com/Downloads/Plugs/GpiodPlugin.zip

Source code for the plugin:
https://bitbucket.org/einhugur/gpiodplugin/src/main/

11 Likes