bump V3
This commit is contained in:
@ -8,9 +8,12 @@ serial.readLine();
|
||||
|
||||
### ~hint
|
||||
|
||||
This function expects the line it reads to be terminated with the `\r`
|
||||
This function expects the line it reads to be terminated with the `\n`
|
||||
character. If your terminal software does not terminate lines with
|
||||
`\r`, this function will probably never return a value.
|
||||
`\n`, this function will probably never return a value.
|
||||
|
||||
|
||||
You can override the ``serial.NEW_LINE_DELIMITER`` field to change the newline delimiter.
|
||||
|
||||
### ~
|
||||
|
||||
|
@ -32,7 +32,7 @@ serial port to use the pins. The new configuration uses pin ``P1`` to transmit a
|
||||
``P2`` to receive. The baud rate is set to `9600`.
|
||||
|
||||
```blocks
|
||||
input.onButtonEvent(Button.A, ButtonEvent.Click, () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
serial.redirect(SerialPin.P1, SerialPin.P2, BaudRate.BaudRate9600);
|
||||
});
|
||||
```
|
||||
|
Reference in New Issue
Block a user