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: mruby_io_ADC_en.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# ADC
2
2
3
-
- A class that supports Analog-to-Digital Conversion (`ADC`) functionality.
3
+
- A class that supports Analog-to-Digital Conversion (ADC) functionality.
4
4
- Generally, it is capable of converting analog voltage values to digital values.
5
5
6
6
## Constructor
7
7
8
8
9
9
### ADC.new( pin, *params )
10
10
11
-
- Generate an `ADC` object by specifying the physical pin indicated by "pin."
11
+
- Generate an ADC object by specifying the physical pin indicated by "pin."
12
12
- Typically, "pin" is specified as an integer, but alternative methods (e.g., "B1" in PIC) are also acceptable.
13
13
- If the device has a switch between analog and digital modes for the pin, it will be switched to analog mode at this point.
14
14
- Generally, there is no need to specify additional parameters, such as "params." However, for certain models that require additional feature specifications like sampling speed, they can be specified here.
Copy file name to clipboardExpand all lines: mruby_io_UART_en.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
### UART.new( id=nil, *params )
11
11
12
-
- Generates a `UART` object by specifying the physical unit indicated by "id."
12
+
- Generates a UART object by specifying the physical unit indicated by "id."
13
13
- The default parameter values follow the settings below if possible.
14
14
- Baud rate: 9600
15
15
- Data bits: 8 bits
@@ -63,7 +63,7 @@ Device-specific
63
63
64
64
### setmode( *params )
65
65
66
-
- Changes the mode (parameters) of `UART`.
66
+
- Changes the mode (parameters) of UART.
67
67
- The parameter specification follows that of the constructor.
68
68
69
69
Example of use:
@@ -76,7 +76,7 @@ uart1.setmode( bardrate:38400 )
76
76
77
77
### read( read_bytes ) -> String
78
78
79
-
- Reads data of the specified number of bytes, `read_bytes`.
79
+
- Reads data of the specified number of bytes, read_bytes.
80
80
- If the specified number of bytes has not arrived, it will block until they arrive.
81
81
82
82
Example of use:
@@ -87,7 +87,7 @@ val = uart1.read( 10 )
87
87
88
88
Note
89
89
90
-
- If you do not want to block, you can check the number of bytes that can be read in advance using the `bytes_available` method.
90
+
- If you do not want to block, you can check the number of bytes that can be read in advance using the bytes_available method.
91
91
92
92
---
93
93
@@ -122,14 +122,14 @@ val = uart1.gets()
122
122
123
123
Note
124
124
125
-
- If you do not want to block, you can check if reading a line is possible in advance using the `can_read_line` method.
126
-
- The maximum character length depends on the size of the read buffer. If the buffer becomes full with data that does not contain a newline character, it will not be possible to read using `gets`.
125
+
- If you do not want to block, you can check if reading a line is possible in advance using the can_read_line method.
126
+
- The maximum character length depends on the size of the read buffer. If the buffer becomes full with data that does not contain a newline character, it will not be possible to read using gets.
127
127
128
128
---
129
129
130
130
### puts( string ) -> nil
131
131
132
-
- Sends one line and sends a newline code at the end of the argument `string`.
132
+
- Sends one line and sends a newline code at the end of the argument string.
133
133
- The newline code is LF only by default.
134
134
135
135
Example of use:
@@ -219,7 +219,7 @@ uart1.clear_tx_buffer()
219
219
### send_break( time )
220
220
221
221
- Sends a break signal.
222
-
- The `time` is optional and specified in seconds.
222
+
- The time is optional and specified in seconds.
223
223
224
224
Example of use:
225
225
@@ -229,4 +229,4 @@ uart1.send_break( 0.1 )
229
229
230
230
Device-specific
231
231
232
-
- Depending on the hardware, `time` may be fixed (e.g., 12 bits) and cannot be changed.
232
+
- Depending on the hardware, time may be fixed (e.g., 12 bits) and cannot be changed.
0 commit comments