Hardware Reference
In-Depth Information
Serial.println
Transmits data over the serial port and then sends a carriage return. See
“Serial.println()” on page 54 .
Syntax
Serial.println(value);
Parameters
value
The data to send. This can be a string of text, a character, a byte, an
integer, or other types of data.
Return Value
long
The number of bytes transmitted
Example
Serial.println("Hello, world!");
servo.attach
Assigns a servo object to a particular pin. See “Controlling Servos” on page
55 .
Syntax
myServo.attach(pin);
Parameters
pin
The pin number
myServo
Represents any servo object
There are additional parameters available for this function.
See the full servo library documentation for details.
Return value
None.
Example
 
Search WWH ::




Custom Search