Description Indicates if the specified Serial port is ready. On all 86Duino boards, if (Serial) indicates whether or not the USB CDC serial connection is open. For all other instances of real serial ports (UART), including if (Serial1), this will always returns true. Syntax All boards: if (Serial) if (Serial1) 86Duino One specific: if (Serial2) […]
Description Disables interrupts (you can re-enable them with interrupts()). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical […]
Description Turns off the given interrupt. Syntax detachInterrupt(interrupt) Parameters interrupt: the number of the interrupt to disable (see attachInterrupt() for more details). See also - attachInterrupt() Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in […]
Description Re-enables interrupts (after they’ve been disabled by noInterrupts()). Interrupts allow certain important tasks to happen in the background and are enabled by default. Some functions will not work while interrupts are disabled, and incoming communication may be ignored. Interrupts can slightly disrupt the timing of code, however, and may be disabled for particularly critical […]
Used for communication between the 86Duino board and a computer or other devices. All 86Duino boards have at least one serial port (also known as a UART or USART): Serial1. It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer (via a TTL USB-to-serial adaptor). Thus, if you use […]
Stream is the base class for character and binary based streams. It is not called directly, but invoked whenever you use a function that relies on it. Stream defines the reading functions in 86Duino. When using any core functionality that uses a read() or similar method, you can safely assume it calls on the Stream […]
Description Specifies a named Interrupt Service Routine (ISR) to call when an interrupt occurs. Replaces any previous function that was attached to the interrupt. Most 86Duino boards have three external interrupts: numbers 0 (on digital pin 42), 1 (on digital pin 43) and 2 (on digital pin 44). The following table below shows the available […]
Description Computes the value of the specified bit (bit 0 is 1, bit 1 is 2, bit 2 is 4, etc.). Syntax bit(n) Parameters n: the bit whose value to compute Returns the value of the bit See also - bitRead() - bitWrite() - bitSet() - bitClear() Language Reference Home The text of the 86Duino […]
Description Clears (writes a 0 to) a bit of a numeric variable. Syntax bitClear(x, n) Parameters x: the numeric variable whose bit to clear n: which bit to clear, starting at 0 for the least-significant (rightmost) bit Returns none See also - bit() - bitRead() - bitWrite() - bitSet() Language Reference Home The text of […]
Description Sets (writes a 1 to) a bit of a numeric variable. Syntax bitSet(x, n) Parameters x: the numeric variable whose bit to set n: which bit to set, starting at 0 for the least-significant (rightmost) bit Returns none See also - bit() - bitRead() - bitWrite() - bitClear() Language Reference Home The text of […]