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.adoc
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,15 @@ Controls motor movement.
19
19
20
20
#### Syntax
21
21
22
-
Cing.RunMotor(motor,state,mode)
22
+
`Cing.RunMotor(motor,state,mode)`
23
23
24
24
#### Parameters
25
25
26
-
motor:"A", "B", "AB"
26
+
`motor:` `"A"`, `"B"`, `"AB"`. `"A"` controls motor `A` only `"B"` controls motor `B` only and `"AB"` controls motors `A` and `B` simultaneously.
27
27
28
-
state: 0 or 1 or -1 if digital mode is used and 0 to 100 if analog mode is used. Positive values are used for forward, negative values are used for reverse.
28
+
`state:` `0` or `1` or `-1` if digital mode is used and `0` to `100` if analog mode is used. Positive values are used for forward, negative values are used for reverse.
29
29
30
-
mode:"digital" or "analog"
30
+
`mode:` `"digital"` or `"analog"`
31
31
32
32
---
33
33
@@ -38,17 +38,16 @@ mode:"digital" or "analog"
38
38
39
39
#### Description
40
40
41
-
Reads the value from external button, either 0 or 1.
42
-
41
+
Reads the value from external button, either `0` or `1`.
43
42
44
43
#### Syntax
45
44
46
-
Cing.ReadButtonExternal()
45
+
`Cing.ReadButtonExternal()`
47
46
48
47
49
48
#### Returns
50
49
51
-
0 if button is not pressed or 1 if button is pressed.
50
+
`0` if button is not pressed or `1` if button is pressed.
52
51
53
52
---
54
53
@@ -61,10 +60,10 @@ Reads the value from external potentiometer.
61
60
62
61
#### Syntax
63
62
64
-
Cing.ReadPotentiometerExternal()
63
+
`Cing.ReadPotentiometerExternal()`
65
64
66
65
#### Returns
67
-
From 0 to 100 depending on potentiometer position.
66
+
From `0` to `100` depending on potentiometer position.
68
67
69
68
---
70
69
@@ -80,19 +79,19 @@ Reads the value from light sensor.
80
79
81
80
#### Syntax
82
81
83
-
Cing.ReadLightSensor(sensor,mode)
82
+
`Cing.ReadLightSensor(sensor,mode)`
84
83
85
84
86
85
#### Parameters
87
86
88
-
sensor: 1 or 2 used for selection of sensor
87
+
sensor: `1` or `2` used for selection of sensor
89
88
90
-
mode:"digital" or "analog"
89
+
mode: `"digital"` or `"analog"`
91
90
92
91
93
92
#### Returns
94
93
95
-
From 0 to 100 in analog mode and either 0 or 1 in digital mode.
94
+
From `0` to `100` in analog mode and either `0` or `1` in digital mode.
96
95
97
96
---
98
97
@@ -108,12 +107,12 @@ Reads the value from external shine sensor.
108
107
109
108
#### Syntax
110
109
111
-
Cing.ReadShineSensor()
110
+
`Cing.ReadShineSensor()`
112
111
113
112
114
113
#### Returns
115
114
116
-
From 0 to 100 depending on ambient light.
115
+
From `0` to `100` depending on ambient light.
117
116
118
117
---
119
118
@@ -131,12 +130,12 @@ Reads the value from external ultrasonic sensor.
0 commit comments