-
Notifications
You must be signed in to change notification settings - Fork 39
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
Jetson Orin AGX #69
Comments
I get when logging the outputPin.Out error:
|
What is needed is a detection system, see https://github.com/periph/host/blob/main/rpi/rpi.go#L28 or https://github.com/periph/host/blob/main/beagle/black/black.go#L31 or https://github.com/periph/host/blob/main/orangepi/orangepi.go#L27 for example. |
Ok just to confirm it won't work and I'll have to figure out another way to run? |
Do not use the rpi package if you are not on a raspberry pi. |
package main
import (
"os"
"github.com/rs/zerolog"
"periph.io/x/conn/v3/driver/driverreg"
"periph.io/x/conn/v3/gpio/gpioreg"
)
func main() {
logger := zerolog.New(os.Stdout)
if _, err := driverreg.Init(); err != nil {
logger.Fatal().Err(err).Msg("failed to initialize periph.io")
}
for _, pin := range gpioreg.All() {
logger.Info().Interface("pin", pin).Msg("found pin")
}
if gpioreg.ByName("16") == nil {
logger.Fatal().Msg("Failed to find GPI16")
}
} Doesn't find anything running on the Jetson AGX Orin. Command is run with sudo.
|
What kind of new feature are you looking for?
(Keep the one that applies, please describe)
Do you plan to:
The Jetson Orin AGX has the RPi GPIO layout. Does this mean it will just work?
doesn't work while the equivalent on https://github.com/NVIDIA/jetson-gpio does:
The text was updated successfully, but these errors were encountered: