edoput / girantenna

1 stars 0 forks source link

WiringPi compatibility #1

Open edoput opened 7 years ago

edoput commented 7 years ago
>>> import wiringpi as w
>>> w.wiringPiSetup()
Unable to determine hardware version. I see: Hardware   : sun8i
,
 - expecting BCM2708, BCM2709 or BCM2835.
If this is a genuine Raspberry Pi then please report this
to projects@drogon.net. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.

The stepper interface is not compatible with our board of choice (the OrangePi Zero) so it requires a substitution.

edoput commented 7 years ago

Other than wiringpi.wiringPiSetup() we also have to replace pinmode and digitalwrite with their equivalent