zugaldia / adafruit-motor-hat

Android Things driver for Adafruit's DC & Stepper Motor Hat for Raspberry Pi
8 stars 7 forks source link

Pwm Support #3

Open poncho6296 opened 6 years ago

poncho6296 commented 6 years ago

Hello I am using your code for a Stepper Motor but at the moment of link with Adafruit the next message appears: AdafruitPwm: writeRegByte to 0x35 failed: android.os.ServiceSpecificException: I/O error (code 5) It seems like a problem of communication to the device.

carlemil commented 6 years ago

Hi Poncho, I cant recall seeing that error message with the motor I used when developing this library. And I don't have access to either the motor or hat anymore (changed my employer since then). If you do figure out whats wrong please post back or even contribute a patch/pull-request and I will happily review and merge it to help others down the line.

Br Carl-Emil

poncho6296 commented 6 years ago

https://github.com/poncho6296/FirstAdafruit, Here it is the code updated, but it does not communicate to the Gpios for a reason I cannot foun yet @zugaldia . This is the error: E/AdafruitPwm: writeRegByte to 0x36 failed: android.os.ServiceSpecificException: I/O error (code 5)