File tree Expand file tree Collapse file tree 5 files changed +18
-20
lines changed
libraries/Bridge/examples Expand file tree Collapse file tree 5 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Arduino Yun Bridge example
2
+ Arduino Yun Bridge example
3
3
4
4
This example for the Arduino Yun shows how to use the
5
5
Bridge library to access the digital and analog pins
9
9
10
10
Possible commands created in this shetch:
11
11
12
- * "digital/13" -> digitalRead(13)
13
- * "digital/13/1" -> digitalWrite(13, HIGH)
14
- * "analog/2/123" -> analogWrite(2, 123)
15
- * "analog/2" -> analogRead(2)
16
- * "mode/13/input" -> pinMode(13, INPUT)
17
- * "mode/13/output" -> pinMode(13, OUTPUT)
18
-
19
- http://arduino.cc/en/Tutorial/Bridge
12
+ * "/arduino/digital/13" -> digitalRead(13)
13
+ * "/arduino/digital/13/1" -> digitalWrite(13, HIGH)
14
+ * "/arduino/analog/2/123" -> analogWrite(2, 123)
15
+ * "/arduino/analog/2" -> analogRead(2)
16
+ * "/arduino/mode/13/input" -> pinMode(13, INPUT)
17
+ * "/arduino/mode/13/output" -> pinMode(13, OUTPUT)
20
18
21
19
This example code is part of the public domain
22
- */
20
+
21
+ http://arduino.cc/en/Tutorial/Bridge
22
+
23
+ */
23
24
24
25
#include < Bridge.h>
25
26
#include < YunServer.h>
Original file line number Diff line number Diff line change 1
1
/*
2
-
3
- Yun HTTP Client
2
+ Yun HTTP Client
4
3
5
4
This example for the Arduino Yún shows how create a basic
6
5
HTTP client that connects to the internet and downloads
12
11
13
12
This example code is in the public domain.
14
13
15
- http://arduino.cc/en/Tutorial/HttpClient
16
-
17
- */
14
+ http://arduino.cc/en/Tutorial/HttpClient
15
+
16
+ */
18
17
19
18
#include < Bridge.h>
20
19
#include < HttpClient.h>
Original file line number Diff line number Diff line change 29
29
30
30
This example code is in the public domain.
31
31
32
- http://arduino.cc/en/Tutorial/TemperatureWebPanel
32
+ http://arduino.cc/en/Tutorial/TemperatureWebPanel
33
33
34
34
*/
35
35
Original file line number Diff line number Diff line change 1
-
2
1
/*
3
2
Time Check
4
3
Original file line number Diff line number Diff line change 1
-
2
1
/*
3
- WiFi Status
2
+ WiFi Status
4
3
5
4
This sketch runs a script called "pretty-wifi-info.lua"
6
5
installed on your Yún in folder /usr/bin.
17
16
18
17
http://arduino.cc/en/Tutorial/YunWiFiStatus
19
18
20
- */
19
+ */
21
20
22
21
#include < Process.h>
23
22
You can’t perform that action at this time.
0 commit comments