Description Detach the Servo variable from its pin. If all Servo variables are detached, then PWM pins can be used for PWM output with analogWrite(). Syntax servo.detach() Parameters servo: a variable of type Servo See also - attach() - attached() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino […]
Description Check whether the Servo variable is attached to a pin. Syntax servo.attached() Parameters servo: a variable of type Servo Returns true if the servo is attached to pin; false otherwise. See also - attach() - detach() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is […]
Description Read the current angle of the servo (the value passed to the last call to write()). Syntax servo.read() Parameters servo: a variable of type Servo Returns The angle of the servo, from 0 to 180 degrees. See also - write() Libraries Reference Home The text of the 86Duino reference is a modification of the […]
Description Writes a value in microseconds (uS) to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft. On standard servos a parameter value of 1000 is fully counter-clockwise, 2000 is fully clockwise, and 1500 is in the middle. Note that some manufactures do not follow this […]
Description Writes a value to the servo, controlling the shaft accordingly. On a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. On a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed […]
Description Attach the Servo variable to a pin. Syntax servo.attach(pin) servo.attach(pin, min, max) Parameters servo: a variable of type Servo pin: the number of the pin that the servo is attached to min (optional): the pulse width, in microseconds, corresponding to the minimum (0-degree) angle on the servo (defaults to 544) max (optional): the pulse […]
Description rewindDirectory() will bring you back to the first file in the directory, used in conjunction with openNextFile(). Syntax file.rewindDirectory() Parameters file: an instance of the File class (returned by SD.open()) Returns None Example See Also - open() - openNextFile() - isDirectory() Libraries Reference Home The text of the 86Duino reference is a modification of […]
Description Reports the next file or folder in a directory. Syntax file.openNextFile() Parameters file: an instance of the File class (returned by SD.open()) Returns the next file or folder in the path Example See Also - isDirectory() - rewindDirectory() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]
Description Directories (or folders) are special kinds of files, this function reports if the current file is a directory or not. Syntax file.isDirectory() Parameters file: an instance of the File class (returned by SD.open()) Returns boolean Example See Also - openNextFile() - rewindDirectory() Libraries Reference Home The text of the 86Duino reference is a modification […]
Description Write data to the file. Syntax file.write(data) file.write(buf, len) Parameters file: an instance of the File class (returned by SD.open()) data: the byte, char, or string (char *) to write buf: an array of characters or bytes len: the number of elements in buf Returns byte: write() will return the number of bytes written, […]