Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/print.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ An optional second parameter specifies the base (format) to use; permitted value

You can pass flash-memory based strings to `_Serial_.print()` by wrapping them with link:../../../../variables/utilities/progmem[F()]. For example:

`Serial.print(F(Hello World))`
`Serial.print(F("Hello World"))`

To send data without conversion to its representation as characters, use link:../write[Serial.write()].
[%hardbreaks]
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/write.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void setup() {
void loop() {
Serial.write(45); // send a byte with the value 45

int bytesSent = Serial.write(hello); //send the string hello and return the length of the string.
int bytesSent = Serial.write("hello"); //send the string "hello" and return the length of the string.
}
----
[%hardbreaks]
Expand Down