We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to resolve? I use android studio 3.6.1
library :
implementation 'com.google.android.things.contrib:driver-button:1.0' compileOnly 'com.google.android.things:androidthings:1.0'
try { // Step 3. Initialize button driver with selected GPIO pin buttonInputDriver = new ButtonInputDriver( BUTTON_PIN_NAME, Button.LogicState.PRESSED_WHEN_LOW, KeyEvent.KEYCODE_SPACE); } catch (IOException e) { Log.e(TAG, "Error configuring GPIO pin", e); }
The text was updated successfully, but these errors were encountered:
Are you importing the right Button class in your Java class? You might be importing the UI widget button rather than the physical button.
Sorry, something went wrong.
No branches or pull requests
How to resolve? I use android studio 3.6.1
library :
implementation 'com.google.android.things.contrib:driver-button:1.0'
compileOnly 'com.google.android.things:androidthings:1.0'
try {
// Step 3. Initialize button driver with selected GPIO pin
buttonInputDriver = new ButtonInputDriver(
BUTTON_PIN_NAME,
Button.LogicState.PRESSED_WHEN_LOW,
KeyEvent.KEYCODE_SPACE);
} catch (IOException e) {
Log.e(TAG, "Error configuring GPIO pin", e);
}
The text was updated successfully, but these errors were encountered: