File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ Create an HTML file called `index.html`. Add the following code:
18
18
var socket = io ();
19
19
20
20
socket .on (' data' , function (data ) {
21
- console .log (data);
22
- document .getElementById (' sample' ).style .opacity = data/ 100 + " %" ;
21
+ console .log (data);
22
+ document .getElementById (' sample' ).style .opacity = data+ " %" ;
23
23
});
24
24
25
25
< / script>
@@ -163,9 +163,9 @@ You will need to setup the following circuit using your Arduino:
163
163
164
164
## Launch Application
165
165
166
- 1 . Using the Terminal start your Node.js app using ` node app.js ` .
167
- 2 . Open up a browser and enter the URL ` http://localhost:3000/ ` .
168
- 3 . Using [ Arduino Create ] ( https://create.arduino.cc/editor ) upload the sketch to your Arduino .
166
+ 1 . Using [ Arduino Create ] ( https://create.arduino.cc/editor ) upload the sketch to your Arduino .
167
+ 2 . Using the Terminal start your Node.js app using ` node app.js ` .
168
+ 3 . Open up a browser and enter the URL ` http://localhost:3000/ ` .
169
169
4 . Turn the dial on the Arduino device and watch the red square in the browser.t.
170
170
171
171
## Tutorial Requirements:
You can’t perform that action at this time.
0 commit comments