amitshekhariitbhu / awesome-android-things

A curated list of awesome android things tutorials, libraries and much more at one place
https://outcomeschool.com
962 stars 165 forks source link

ServiceSpecificException #37

Open tianyalian opened 7 years ago

tianyalian commented 7 years ago

i got this exception :com.google.android.things.pio.PioException: android.os.ServiceSpecificException: SPI0.0 driver failure (code 5) when i was light a LED WS2812 i use pi3 and my code PeripheralManagerService service = new PeripheralManagerService(); try { mDevice = service.openSpiDevice("SPI0.0"); mDevice.setBitsPerWord(1); mDevice.setFrequency(10000000); mDevice.setMode(SpiDevice.MODE0); } catch (IOException e) { e.printStackTrace(); }

MRodriguess commented 7 years ago

Have you doubled check the connections on the GPIO pins? for the SPI?

friedger commented 6 years ago

Please contact the driver developer and close this issue.