Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit 45713d8

Browse files
authored
Correct spelling/formatting within docs (#699)
1 parent 552975d commit 45713d8

File tree

30 files changed

+62
-63
lines changed

30 files changed

+62
-63
lines changed

website/docs/api/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ devs init --force
5959

6060
### --no-install
6161

62-
Do not run `npm` or `yarn ` install after dropping the files.
62+
Do not run `npm` or `yarn` install after dropping the files.
6363

6464
### --board board-id
6565

website/docs/api/clients-custom/gamepad-registers.mdp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### axes {#ro:axes}
22

33
An array representing the controls with axes present on the device (e.g. analog thumb sticks),
4-
as `[x, y]`. Each entry in the array is a floating point value in the range ` -1.0 – 1.0``, representing the axis position from the lowest value ( `-1.0`) to the highest value (`1.0`).
4+
as `[x, y]`. Each entry in the array is a floating point value in the range `-1.0 – 1.0`, representing the axis position from the lowest value (`-1.0`) to the highest value (`1.0`).
55

66
- type: `ClientRegister<{ x: number; y: number }>` (packing format `i1.15 i1.15`)
77

website/docs/api/clients-custom/index.mdp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
In DeviceScript, hardware peripherals (and generally anything outside the VM) are modelled
22
as [Jacdac services](https://microsoft.github.io/jacdac-docs/services/).
33

4-
The peripherals are **servers** and the your client application creates **clients** to interact with them.
4+
The peripherals are **servers** and your client application creates **clients** to interact with them.
55

66
## Declaring roles
77

website/docs/api/core/registers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The register client classe (`Register<T>`) allow to read, write and track change
99
Aside from the data type, there are 3 different type of access control on registers:
1010

1111
- `read only`: the value can be read, but not written.
12-
- `read write`: the value can be read and writen.
12+
- `read write`: the value can be read and written.
1313
- `const`: the value of the register is constant. It may change on the next reset but this is not a common scenario.
1414

1515
## read

website/docs/api/drivers/accelerometer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Accelerometer
55

66
# Accelerometer
77

8-
The `startAccelerometer` function starts a [accelerometer](https://microsoft.github.io/jacdac-docs/services/accelerometer) server on the device and returns a [client](/api/clients/accelerometer).
8+
The `startAccelerometer` function starts an [accelerometer](https://microsoft.github.io/jacdac-docs/services/accelerometer) server on the device and returns a [client](/api/clients/accelerometer).
99

1010
The accelerometer IMU chip will be auto-detected if it is supported.
1111

website/docs/api/drivers/aht20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ const { temperature, humidity } = await startAHT20()
1515

1616
## Configuration
1717

18-
- Configure I2C throught the [board configuration](/developer/board-configuration)
18+
- Configure I2C through the [board configuration](/developer/board-configuration)

website/docs/api/drivers/bme680.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ const { temperature, humidity, pressure, airQualityIndex } = await startBME680()
1616

1717
## Configuration
1818

19-
- Configure I2C throught the [board configuration](/developer/board-configuration)
19+
- Configure I2C through the [board configuration](/developer/board-configuration)
2020
- Check that you are using the correct I2C address

website/docs/api/drivers/imu.mdx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
---
2-
title: IMU
3-
description: Reading from the IMU
4-
---
5-
6-
## Usage
7-
8-
Here we use the IMU to read the orientation of the device, DA213B for example.
9-
10-
```ts
11-
import {
12-
startIMU,
13-
startAccelerometer,
14-
DA213BDriver,
15-
} from "@devicescript/drivers"
16-
17-
const driver = new DA213BDriver()
18-
const acc = await startAccelerometer(driver, {})
19-
20-
acc.reading.subscribe(reading => {
21-
console.log(`x: ${reading[0]}, y: ${reading[0]}, z: ${reading[0]}`)
22-
})
23-
```
1+
---
2+
title: IMU
3+
description: Reading from the IMU
4+
---
5+
6+
## Usage
7+
8+
Here we use the IMU to read the orientation of the device, DA213B for example.
9+
10+
```ts
11+
import {
12+
startIMU,
13+
startAccelerometer,
14+
DA213BDriver,
15+
} from "@devicescript/drivers"
16+
17+
const driver = new DA213BDriver()
18+
const acc = await startAccelerometer(driver, {})
19+
20+
acc.reading.subscribe(reading => {
21+
console.log(`x: ${reading[0]}, y: ${reading[0]}, z: ${reading[0]}`)
22+
})
23+
```

website/docs/api/drivers/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drivers
22

3-
Starting driver provide a programming abstraction for hardware periphericals.
3+
Starting driver provide a programming abstraction for hardware peripherals.
44
Some driver implementations are builtin (written C),
55
while others can be contributed as DeviceScript packages.
66

website/docs/api/drivers/st7789.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ILI9341Driver } from "@devicescript/drivers"
2222

2323
:::caution I8080 not supported
2424

25-
The drivers use the SPI interface. The parralel interface (I8080) is not supported at the moment.
25+
The drivers use the SPI interface. The parallel interface (I8080) is not supported at the moment.
2626

2727
:::
2828

0 commit comments

Comments
 (0)