Skip to content
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

Will I be able to use SPI #1

Open
prasaanth-selvakumar opened this issue Mar 6, 2018 · 2 comments
Open

Will I be able to use SPI #1

prasaanth-selvakumar opened this issue Mar 6, 2018 · 2 comments

Comments

@prasaanth-selvakumar
Copy link

prasaanth-selvakumar commented Mar 6, 2018

i just wanted to know if i would be able to use the SPI communication if i connect the neo pixel in MOSI line

@prasaanth-selvakumar
Copy link
Author

It works fine for three Consecutive Animations then it freezes, it Throws an error Message SPI write not permitted

@prasaanth-selvakumar
Copy link
Author

03-06 07:47:07.709 640-770/com.example.acer.neo_pixel W/ws2812b: Failed to write to SPI device
com.google.android.things.pio.PioException: android.os.ServiceSpecificException: Operation not permitted (code 1)
at com.google.android.things.pio.SpiDeviceImpl.transfer(SpiDeviceImpl.java:130)
at com.google.android.things.pio.SpiDevice.write(SpiDevice.java:136)
at com.example.acer.neo_pixel.WS2812B.commit(WS2812B.java:92)
at com.example.acer.neo_pixel.MainActivity$1.run(MainActivity.java:60)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: android.os.ServiceSpecificException: Operation not permitted (code 1)
at android.os.Parcel.readException(Parcel.java:2018)
at android.os.Parcel.readException(Parcel.java:1950)
at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.SpiDeviceTransfer(IPeripheralManagerClient.java:1094)
at com.google.android.things.pio.SpiDeviceImpl.transfer(SpiDeviceImpl.java:128)
at com.google.android.things.pio.SpiDevice.write(SpiDevice.java:136) 
at com.example.acer.neo_pixel.WS2812B.commit(WS2812B.java:92) 
at com.example.acer.neo_pixel.MainActivity$1.run(MainActivity.java:60) 
at java.util.TimerThread.mainLoop(Timer.java:555) 
at java.util.TimerThread.run(Timer.java:505) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant