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: examples/hello_world/README.md
+23-21Lines changed: 23 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,6 @@ microcontroller.
11
11
The model is trained to replicate a `sine` function and generates a pattern of
12
12
data to blink the built-in LED in a fade in/out pattern.
13
13
14
-
## Table of contents
15
-
<!--ts-->
16
-
*[Table of contents](#table-of-contents)
17
-
*[Deploy to Arduino](#deploy-to-arduino)
18
-
*[Install the Arduino_TensorFlowLite library](#install-the-arduino_tensorflowlite-library)
19
-
*[Load and run the example](#load-and-run-the-example)
20
-
<!--te-->
21
-
22
14
## Deploy to Arduino
23
15
24
16
The following instructions will help you build and deploy this sample
@@ -35,25 +27,35 @@ built-in LED as the one being controlled. However, on some boards, this built-in
35
27
LED is not attached to a pin with PWM capabilities. In this case, the LED will
36
28
blink instead of fading.
37
29
30
+
You can modify the LED pin number in `arduino_output_handler.cpp` file to adjust to
31
+
a pin which can generate the PWM.
32
+
38
33

39
34
40
-
### Install the Arduino_TensorFlowLite library
35
+
### Install the TensorFlow Lite Micro library
41
36
42
-
To install the TensorFlow Lite Micro for Arduino library, see the
43
-
[how to install](../../README.md#how-to-install) instructions.
37
+
In the menuconfig:
44
38
45
-
### Load and run the example
39
+
- Enable TensorFlow Lite Micro
40
+
- Enable hello world example
46
41
47
-
Once the library has been added, go to `File -> Examples`. You should see an
48
-
entry within the list named `Arduino_TensorFlowLite`. Select
49
-
it and click `hello_world` to load the example.
42
+
```Kconfig
43
+
RT-Thread online packages --->
44
+
Arduino libraries --->
45
+
Data Processing --->
46
+
[*] TensorFlow Lite Micro: TensorFlow Lite for Microcontrollers (TLFM) Library for RTduino --->
47
+
Examples --->
48
+
[*] Enable hello world example
49
+
```
50
50
51
-
Use the Arduino IDE to build and upload the example. Once it is running,
52
-
you should see the built-in LED on your device flashing.
51
+
### Load and run the example
53
52
54
-
The Arduino Desktop IDE includes a plotter that we can use to display the sine
55
-
wave graphically. To view it, go to `Tools -> Serial Plotter`. You will see one
56
-
datapoint being logged for each inference cycle, expressed as a number between 0
57
-
and 255.
53
+
Once you select `Enable hello world example`, after compiling, the hello world example will automatically run, and you will see the LED is changing. Meanwhile, the serial also will print a sine wave time series number.
58
54
59
55

0 commit comments