For turning on led lights I want to access the GPIO of the orange-pi zero via gobot I am using gobot since my server from which i want to do this is written in Go. However on the platforms section of gobot it does not mention the orange-pi platform. I already got the gpio working via this library but it is written in Python.
I found an issue discussing the mapping of the device gpio but since I am new to the physical device scene i do not know how i would implement this into gobot
I have this version of the orange pi with the following pin configuration.
The sample code i found for enabling gpio on a raspberry pi is as follows:
r := raspi.NewAdaptor()
led := gpio.NewLedDriver(r, "7")
work := func() {
gobot.Every(1*time.Second, func() {
led.Toggle()
})
}
robot := gobot.NewRobot("blinkBot",
[]gobot.Connection{r},
[]gobot.Device{led},
work,
)
robot.Start()
I think the number on this line is relevant for my question
led := gpio.NewLedDriver(r, "7")
My final question then is:
How do i use the gpio via gobot on an orange pi zero plus?