-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use gobot libraries without all the gobot/robot initialization. #302
Comments
Try something like this, but with the Edison adaptor and let me know what happens. https://github.com/hybridgroup/gobot/blob/dev/examples/beaglebone_basic_direct_pin.go |
You're basically on the right track, you just need to |
Awesome! The package main
import (
"time"
"github.com/hybridgroup/gobot/platforms/gpio"
"github.com/hybridgroup/gobot/platforms/intel-iot/edison"
)
func main() {
e := edison.NewEdisonAdaptor("edison")
led := gpio.NewLedDriver(e, "led", "13")
e.Connect()
for {
led.Toggle()
time.Sleep(1000 * time.Millisecond)
}
} Thanks :) |
One other small thing worth mentioning. You should also call
|
We should update the docs with this info, so people realize they can use Gobot as a set of Golang device libraries, not just use the entire framework. |
@deadprogram if you want to make an issue and assign it to me w/ some details about what you'd like to see and what platforms to cover, I can take on that docs update. |
Hi @trevrosen I just added hybridgroup/gobot-site#48 to discuss this. |
I'm wondering if it's possible to have a program like this
That could be part of another program. For instance if I want to read values from a sensor and send it to a database or another process. I think that I can achieve this by using a channel but the idea would be to have a simple way to get the ports/sensors data, something like the mraa library.
Is there a way to have such functionality on gobot?
Thanks
The text was updated successfully, but these errors were encountered: