Example

<< Click to Display Table of Contents >>

Navigation:  Serial > write() >

Example

void setuo(){

 Serial.begin(9600);

}

 

void loop(){

 Serial.write(45);        // send a byte w th the value 45

 

  int bytesSent = Serial.write(“hello”); //send the string “hello” and return the length of the string.

}