Skip to main content

List of Functions

The following is a list of Quarto specific functions and other useful functions, but hardly a complete list. For additional functions please see the Arduino Language Reference. The Quarto can run Arduino or standard c/c++ functions.

ADC Functions

void configureADC(channel, fire_every_us, fire_delay, scale, cb_function);
//scale options are BIPOLAR_1250mV, BIPOLAR_2500mV, BIPOLAR_5V or BIPOLAR_10V
double readADCX_from_ISR(void);
int16_t readRAWADCX_from_ISR(void);
void disableADC(channel);

DAC Functions

void writeDAC(channel, voltage);
void writeDACRAW(channel, data);

Digital I/O (GPIO)

void pinMode(pin, mode);
//mode can be OUTPUT, INPUT, OUTPUT_OPENDRAIN, INPUT_PULLUP or INPUT_PULLDOWN
void digitalWrite(pin,value);
//value can be LOW (0) or HIGH (1)
void digitalToggle(pin);
void digitalRead(pin);

Trigger I/O

void triggerMode(pin, mode);
//mode can be OUTPUT, INPUT, OUTPUT_OPENDRAIN, INPUT_PULLUP or INPUT_PULLDOWN
void triggerWrite(pin,value);
//value can be LOW (0) or HIGH (1)
void triggerRead(pin);

LEDs

void setLED(bool red, bool green, bool blue);
void toggleLED(bool red, bool green, bool blue);
void setLEDRed(bool on);
void setLEDGreen(bool on);
void setLEDBlue(bool on);
void toggleLEDRed(void);
void toggleLEDGreen(void);
void toggleLEDBlue(void);