Skip to content

Commit 1701168

Browse files
committed
Add compass calibration
1 parent 1d66b00 commit 1701168

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Web Components library for micro:bit
99

1010
## Actions
1111
- [x] Connect/Disconnect
12-
- [ ] Calibrate Compass
12+
- [x] Calibrate Compass
1313

1414
## Device Information
1515
- [x] Name

src/components/microbit-calibrate.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ export class MicrobitCalibrate {
2828
}
2929

3030
private async calibrate() {
31-
/*
3231
if (this.services.magnetometerService) {
33-
this.services.magnetometerService.
32+
await this.services.magnetometerService.calibrate();
3433
}
35-
*/
3634
}
3735
}
3836

0 commit comments

Comments
 (0)