You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,50 @@ This library uses the [serial-to-i2c bridge](// https://dev.blues.io/guides-and-
7
7
8
8
** This library has a minimal surface and most messages have not been mapped to types. See [Notecard API](https://dev.blues.io/api-reference/notecard-api/introduction/) for a full list. **
9
9
10
-
## Usage
10
+
## Setup
11
11
12
-
Add the library to your project:
12
+
Add the library to your DeviceScript project:
13
13
14
14
```bash
15
15
npm install --save pelikhan/devicescript-note
16
16
```
17
17
18
-
## [Contributing](./CONTRIBUTING.md)
18
+
## Configuration
19
+
20
+
Add the notehub product UID into your settings.
21
+
22
+
```yaml
23
+
# .env.defaults
24
+
NOTE_PUID=your-product-uid
25
+
```
26
+
27
+
By default, DeviceScript will use the deviceid as a serial number; but you can override this setting.
28
+
29
+
```yaml
30
+
# .env.defaults
31
+
NOTE_PUID=your-product-uid
32
+
NOTE_SN=your-serial-number
33
+
```
34
+
35
+
## Usage
36
+
37
+
- Connect the notecard to your I2C pins and power it up.
38
+
- Start by calling `init` for the initial handshake with the notecard.
0 commit comments