Nick

Results 543 comments of Nick

Yes, it does seem like the value is [expected to be seconds](https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#EXTRA_DISCOVERABLE_DURATION). Can you rebase your change?

The current implementation works with the default output as configured in the sample. I don't know with regards to mp3.

What kind of camera are you connecting to it? Are you sure that the camera is properly seated?

Calling [stop](https://github.com/androidthings/contrib-drivers/blob/master/pwmspeaker/src/main/java/com/google/android/things/contrib/driver/pwmspeaker/Speaker.java#L93) appears to disable the PWM but shouldn't completely prevent it from being inaccessible. This may be a bug in the platform. Can you try a few other approaches...

So when you tried the sample, the speaker did stop and restart as expected?

Maybe there's a threading issue

The sample uses a separate handler for playback events. Can you copy that design and see whether that allows the speaker to work as expected?

If we move to using the alpha value of `Color`, should we deprecate `setBrightness`? That would help communicate the definitive way to change the brightness. We'd keep the method for...

Are you importing the right Button class in your Java class? You might be importing the UI widget button rather than the physical button.

This project has the [EmbeddedAssistant](https://github.com/androidthings/sample-googleassistant/blob/master/app/src/main/java/com/example/androidthings/assistant/EmbeddedAssistant.java) class, which encapsulates the Google Assistant with the generated classes from protobufs.