File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ The following table shows ADC module APIs available for each platform.
4
4
5
5
| | Linux<br />(Ubuntu) | Raspbian<br />(Raspberry Pi) | NuttX<br />(STM32F4-Discovery) |
6
6
| :---: | :---: | :---: | :---: |
7
- | adc.open | O | O | O |
8
- | adcpin.read | O | O | O |
9
- | adcpin.readSync | O | O | O |
10
- | adcpin.close | O | O | O |
11
- | adcpin.closeSync | O | O | O |
7
+ | adc.open | O | X | O |
8
+ | adcpin.read | O | X | O |
9
+ | adcpin.readSync | O | X | O |
10
+ | adcpin.close | O | X | O |
11
+ | adcpin.closeSync | O | X | O |
12
12
13
13
14
14
## Class: ADC
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ This script gives you `build/arm-linux/release/iotjs/iotjs` or `build/arm-linux/
115
115
Copy this binary with your favorite tool or ` scp ` like below.
116
116
117
117
``` bash
118
- scp build/arm-linux/release/iotjs /iotjs pi@ (your RPi2 IP):/home/pi/.
118
+ scp build/arm-linux/release/bin /iotjs pi@ (your RPi2 IP):/home/pi/.
119
119
```
120
120
121
121
Lastly, open a shell and run with your test program.
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ Followings are the options to set:
130
130
131
131
* For ` i2c ` module
132
132
* Enable ` System Type -> STM32 Peripheral Support -> I2C1 `
133
+ * Enable ` Device Drivers -> I2C Driver Support `
133
134
134
135
#### 4. Build IoT.js for NuttX
135
136
@@ -151,8 +152,16 @@ Connect Mini-USB for power supply and connect Micro-USB for `NSH` console.
151
152
152
153
To configure ` stlink ` utility for flashing, follow the instructions [ here] ( https://github.com/texane/stlink#build-from-sources ) .
153
154
155
+ To install,
156
+ ``` bash
157
+ # assuming you are in stlink folder
158
+ $ cd stlink
159
+ $ make
160
+ ```
161
+
154
162
To flash,
155
163
``` bash
156
164
# assuming you are in nuttx folder
157
- $ sudo ../stlink/build/st-flash write nuttx.bin 0x8000000
165
+ $ cd nuttx
166
+ $ sudo ../stlink/build/Release/st-flash write nuttx.bin 0x8000000
158
167
```
You can’t perform that action at this time.
0 commit comments