Skip to content

EAGrahamJr/kobots-devices

Repository files navigation

Hardware Device Drivers in Kotlin

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 the diozero implementation, as I preferred using Java Color constructs since they are available.

‼️ STILL UNDER CONSTRUCTION!!!! These items were constructed and verified only on a Raspberry Pi, but should work where the diozero main branch library will work.

Just Build Kotlin Java Apache License

Licensing

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.

Building

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.