androidthings / sample-simplepio Goto Github PK
View Code? Open in Web Editor NEWBasic Peripheral I/O examples with Android Things
License: Apache License 2.0
Basic Peripheral I/O examples with Android Things
License: Apache License 2.0
I want to know Android Things Platform whether to provide an API to check GPIO status? because I want to make sure GPIO not in use before I open GPIO, I don't want to use try..catch instead of this logic, could you kindly of my question? Thanks.
https://github.com/androidthings/sample-simplepio/blob/master/pwm/src/main/java/com/example/androidthings/simplepio/BoardDefaults.java
line 42:
case DEVICE_RPI3:
return "PWM0";
but
https://github.com/androidthings/sample-nativepio/blob/master/speaker/rpi3_schematics.png
connect PWM1 here.
Facing Problem While running first blink app with RbPi 3
at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.GetGpioClient(IPeripheralManagerClient.java:759) at com.google.android.things.pio.GpioImpl.<init>(GpioImpl.java:50) at com.google.android.things.pio.PeripheralManager.openGpio(PeripheralManager.java:197) at com.example.androidthings.simplepio.BlinkActivity.onCreate(BlinkActivity.java:51)
I wan't to read a value for photocell element, how can it be done with only true/false values?
Facing Problem While running first blink app with RbPi 3
Caused by: java.lang.SecurityException: Caller lacks required permission com.google.android.things.permission.USE_PERIPHERAL_IO at android.os.Parcel.readException(Parcel.java:2004) at android.os.Parcel.readException(Parcel.java:1950) at com.google.android.things.pio.IPeripheralManagerClient$Stub$Proxy.GetGpioClient(IPeripheralManagerClient.java:759) at com.google.android.things.pio.GpioImpl.<init>(GpioImpl.java:50) at com.google.android.things.pio.PeripheralManager.openGpio(PeripheralManager.java:197) at com.example.androidthings.simplepio.BlinkActivity.onCreate(BlinkActivity.java:51)
Is there any plan for Software PWM for Android things?
Can Software PWM be done using NDK?
I have this board http://www.wandboard.org/details/pico-imx6ul and tried the led blinking code but getValue on the gpio pin always returns false. This is true even with nothing connected to the pin so it cannot accidentally be pulled down.
how to control more than 2 servos?because there were only two pwm(pwm0 and pwm1)
On very first time button pressed, repsonse not get instantly
Logcat : GPIO changed, button pressed
and so on button pressed response not got instantly.
Hi, I was testing GPIO with last Google Things image via /sys/class/gpio but I must run it as root user. Whats is correct way for call "PeripheralManagerService" from C++ (NDK) and grant right permissions? In general, where is documentation for NDK layer?
Many thanks, great job guys!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.