Skip to content

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
@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