Replies: 1 comment 5 replies
-
You are right, there is a bit of "split" between these two repositories, as one originates from the FHNW university based on the CrowPi, and the other one is the efforts done by @taartspi to provide example code for all types of devices... I love your idea, but I'm afraid this would require a lot of work and not sure if someone is available to pick this up. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I feel like pi4j needs a new top level repository, pi4j-extensions. This repository would contain reusable device drivers and components. Basically promoting much of what is already written in pi4j-example-devices AND pi4j-example-components.
It would define interfaces like:
DualState ( on, off )
TriState ( on, off, held )
ColorDisplay
MonoDisplay
LinearPosition
Pixel
Components:
PixelColor used as input to set color of Pixel or Displays
SimpleButton implements TriState
SimpleSwitch implements DualState
ST7789 implements ColorDisplay
Adafruit5880 implements LinearPosition, TriState, Pixel
Both pi4j-example-devices AND pi4j-example-components would still exist. These projects now depend on pi4j-extensions. These projects would still define the logging framework, assets, launchers and executables.
Beta Was this translation helpful? Give feedback.
All reactions