Jump to content

Does HAT for Raspberry work for OrangePi Pc Plus ?


kbmelati

Recommended Posts

Dear All,

 

first of all,

 

i dont have any orange pi yet, want to have one, perhaps orange pi PC Plus. My main intention is to use as robotic experiment.

 

i have some questions:

- is orange pc plus GPIO compatible with raspberry one ?

- does shield / module for raspberry works in Orange Pi ?

- example : if i want to use "Pimoroni Explorer HAT Pro for Raspberry Pi", can it work in orange pi ?

 

sorry if these euqestion existed before and sorry if wrong forum.

 

thanks.

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

Hello,

 

I have an Orange Pi Pc Plus, and a PIVOyager, it seems I2C buses (0 and 1) are inversed between Raspberry and OrangePi.

 

(Nb: It was my first go use/compilation)

 

I have created a $HOME/go directory

then I have put the whole project inside a ~/go/src/github.com/omzlo/ structure

I have modified the file device.go https://github.com/omzlo/pivoyager/blob/2ffcdd2ec77871184f2d02f180bd47b720af077a/device/device.go#L169

to change

bus := i2c.OpenBus(1)

to :

bus := i2c.OpenBus(0)

then compile with:

/usr/lib/go-1.10/bin/go build cmd/pivoyager.go

 

and it works ! :-)

pivoyager.png.8063587fdcbad21a6a589df5645d26a7.png

 

Ps: compiled on Armbian

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines