Articles Posted by the Author:

  • read()

    read()

    Description Function to read the encoder’s counter value and pulse width. Note: Under different mode, the return value has different representation. See the Returns section below. Syntax Enc0.read() Enc1.read() Enc2.read() Enc3.read() Parameters Enc0、Enc1、Enc2、Enc3:Corresponding to ENC0, ENC1, ENC2 and ENC3 encoder interfaces. Returns Pulse/DIR, CW/CCW and A/B Pulse modes: Return the encoder’s counter value. PWM pulse […]


  • write()

    write()

    Description Set 86Duino encoder counter value. Use with Pulse/DIR, CW/CCW and A/B Pulse operating mode. Syntax Enc0.write(number) Enc1.write(number) Enc2.write(number) Enc3.write(number) Parameters Enc0、Enc1、Enc2、Enc3:Correspond to ENC0、ENC1、ENC2、ENC3 encoder interface. number:Encoder counter value to be set(unsigned long) Returns None Example See also - read() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons […]


  • begin()

    begin()

    Description Initialize 86Duino encoder interface and set operating mode. Syntax Enc0.begin(mode) Enc0.begin(mode, bits) Enc0.begin(mode, bits, clock) Enc0.begin(mode, bits, clock, wtime) Enc0.begin(mode, bits, clock, wtime, gray2bin) Enc1.begin(mode) Enc1.begin(mode, bits) Enc1.begin(mode, bits, clock) Enc1.begin(mode, bits, clock, wtime) Enc1.begin(mode, bits, clock, wtime, gray2bin) Enc2.begin(mode) Enc2.begin(mode, bits) Enc2.begin(mode, bits, clock) Enc2.begin(mode, bits, clock, wtime) Enc2.begin(mode, bits, clock, wtime, gray2bin) […]


  • write()

    write()

    Description Play an audio signal from a buffer. Syntax Audio.write(buffer, length); Parameters buffer (short) : the named buffer with the audio file. length (int) : number of samples to write. Returns nothing Example Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative […]


  • prepare()

    prepare()

    Description Prepares audio samples from the named file to the audio buffer, and sets the volume. Syntax Audio.prepare(buffer, samples, volume); Parameters buffer (short) : the named buffer holding the audio file. samples (int) : number of samples to write. volume (int) : a 10-bit number representing the volume of the audio being played. 0 turns […]


  • begin()

    begin()

    Description Initializes the Audio library by specifying the target sample rate and size of the audio buffer. Syntax Audio.begin(rate, size); Parameters rate (int) : the sample rate of the sound file. If stereo, double the rate (ex. 44100hz stereo = 88200). size (int) : the size of the audio buffer in milliseconds. Returns nothing Example […]


  • Arduino Time library

    Arduino Time library

    The Time library adds timekeeping functionality to Arduino with or without external timekeeping hardware. It allows a sketch to get the time and date as: second, minute, hour, day, month and year. It also provides time as a standard C time_t so elapsed times can be easily calculated and time values shared across different platforms. […]


  • SoftwareSerial Library

    SoftwareSerial Library

    The 86Duino hardware has built-in support for serial communication on pins 0 and 1. The native serial support happens via a piece of hardware (built into the chip) called a UART. This hardware allows 86Duino’s CPU to receive serial communication even while working on other tasks. The SoftwareSerial library allows serial communication on other digital […]


  • SoftwareSerial: write(data)

    SoftwareSerial: write(data)

    Description Prints data to the transmit pin of the software serial port as raw bytes. Works the same as the Serial.write() function. Parameters See Serial.write() for details Returns byte write() will return the number of bytes written, though reading that number is optional Example See also - SoftwareSerial() - begin() - print() - println() Libraries […]


  • SoftwareSerial: listen()

    SoftwareSerial: listen()

    Description Enables the selected software serial port to listen. Only one software serial port can listen at a time; data that arrives for other ports will be discarded. Any data already received is discarded during the call to listen() (unless the given instance is already listening). Syntax mySerial.listen() Parameters mySerial: the name of the instance […]