Skip to content

Add accelerometer service to MicrobitWebBluetoothConnection #2

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

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

microbit-robert
Copy link
Contributor

Adds the ability to perform read/write actions on the accelerometer via Web Bluetooth, including adding 'data changed' listeners.


async setPeriod(value: number): Promise<void> {
if (value === 0) {
// Writing 0 causes the device to crash.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll follow up on this one later.

@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 179e410 into main Jul 12, 2024
1 check passed
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the accelerometer-magic branch July 12, 2024 15:48
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

Successfully merging this pull request may close these issues.

2 participants