Herein are various drivers for some microprocessor peripherals, written in Kotin and using the diozero
library.
Javadocs are at kobots-devices
- The "biggie" is a translation of the Adafruit SeeSaw microprocessor code, which is not complete.
- Another interesting note is the PixelBuf which, like it's Adafruit conterpart, underlies the various hardware-specific
NepPixel
(WS281x) interfaces. This deviates quite a bit from thediozero
implementation, as I preferred using JavaColor
constructs since they are available.
diozero
main branch library will work.
Many driver translations are based on code from the Adafruit Circuit Python, which are generally licensed under the MIT License, The diozero
library is similarly licensed.
This project uses Gradle, so the only thing you need is a compatible JDK1. Additionally, because the project is Kotlin and uses the Kotlin Gradle plugin, a Kotlin installation is also not necessary.2
A default build will use the gradle-plugins to publish to the "local" Maven repository.
1Kotlin 1.9.0/Java 17 is the current build target.
2This project may depend on my diozero
changes as they may be ahead of the main repository branch. See the GitHub actions for which version is being used.