This commit is contained in:
Juri
2020-08-19 22:03:58 +02:00
parent 4ef7b9318f
commit 3152215415
291 changed files with 9511 additions and 2966 deletions

View File

@ -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.
### ~

View File

@ -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);
});
```