Got some Scala bindings for WiringPi thanks to SN-Bindgen (plus some manual adjustments)
https://gist.github.com/JD557/c81ad69f7506c70a5c26e9ddec24db27
Took me quite some time to get things to work... but at least I got a blinking LED today :
import wiringpi.all.*
println("Starting")
wiringPiSetup()
val led = 25
pinMode(led, OUTPUT)
while(true) {
println("ON")
digitalWrite(led, HIGH)
Thread.sleep(1000)
println("OFF")
digitalWrite(led, LOW)
Thread.sleep(1000)
}
I do need to figure out how to cross compile before I try something more complex... Scala Native compilation on a Raspberry Pi 3 B is SLOW!