text
stringlengths
1
24.5M
// // FILE: map2bits.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // PURPOSE: Arduino library for mapping a float to a number of bits. // URL: https://github.com/RobTillaart/map2bits #include "map2bits.h" map2bits::map2bits() { init(0, 100, 10); } bool map2bits::init(float in_min, float in_max, uint8_t...
#pragma once // // FILE: map2bits.h // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // PURPOSE: Arduino library for mapping a float to a number of bits. // URL: https://github.com/RobTillaart/map2bits #include "Arduino.h" #define MAP2BITS_LIB_VERSION (F("0.1.0")) class map2bits { public: map2bits...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2024-02-02 // PURPOSE: unit tests for the map2bit library // https://github.com/RobTillaart/map2bits // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- //...
#pragma once // // FILE: m2c_colours.h // AUTHOR: Rob Tillaart // PURPOSE: Arduino library for mapping a float to colour spectrum // URL: https://github.com/RobTillaart/map2colour // https://www.w3.org/wiki/CSS/Properties/color/keywords #define M2C_BLACK 0x00000000 #define M2C_SILVER ...
// // FILE: map2colour.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.2 // PURPOSE: Arduino library for mapping a float to colour spectrum // URL: https://github.com/RobTillaart/map2colour #include "map2colour.h" #define M2C_MIN_SIZE 7 map2colour::map2colour(uint8_t size) { _size = size; if (_size ...
#pragma once // // FILE: map2colour.h // AUTHOR: Rob Tillaart // VERSION: 0.2.2 // PURPOSE: Arduino library for mapping a float to colour spectrum // URL: https://github.com/RobTillaart/map2colour #include "Arduino.h" #include "m2c_colours.h" #define MAP2COLOUR_LIB_VERSION (F("0.2.2")) class map2...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-12-04 // PURPOSE: unit tests for the map2colour library // https://github.com/RobTillaart/map2colour // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // --------------------------...
#pragma once // // FILE: MathHelpers.h // AUTHOR: Rob Tillaart // DATE: 2018-01-21 // VERSION: 0.1.2 // PURPOSE: misc functions for math and time // // replaced by printHelpers and datetimeHelpers.h // // 0.1.2 - 2024-01-04 minor refactor #define MATHHELPERS_VERSION (F("0.1.2")) // global buffer used by all...
// // FILE: MATRIX7219.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.3 // DATE: 2023-07-28 // PURPOSE: Arduino Library for 8x8 LED MATRIX MAX7219 // URL: https://github.com/RobTillaart/MATRIX7219 #include "MATRIX7219.h" #define MATRIX7219_DECODE_MODE 0x09 #define MATRIX7219_BRIGHTNESS 0x0A #define ...
#pragma once // // FILE: MATRIX7219.h // AUTHOR: Rob Tillaart // VERSION: 0.1.3 // DATE: 2023-07-28 // PURPOSE: Arduino Library for 8x8 LED MATRIX MAX7219 // URL: https://github.com/RobTillaart/MATRIX7219 #include "Arduino.h" #define MATRIX7219_LIB_VERSION (F("0.1.3")) class MATRIX7219 { public:...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-28 // PURPOSE: unit tests for the MAX7219 library // https://github.com/RobTillaart/MATRIX7219 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI...
// // FILE: MAX14661.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-29 // VERSION: 0.3.0 // PURPOSE: Arduino library for MAX14661 16 channel I2C multiplexer // URL: https://github.com/RobTillaart/MAX14661 #include "MAX14661.h" // // REGISTERS // #define MAX14661_DIR0 0x00 #define MAX14661_DIR1 ...
#pragma once // // FILE: MAX14661.h // AUTHOR: Rob Tillaart // DATE: 2021-01-29 // VERSION: 0.3.0 // PURPOSE: Arduino library for MAX14661 16 channel I2C multiplexer // URL: https://github.com/RobTillaart/MAX14661 #include "Arduino.h" #include "Wire.h" #define MAX14661_LIB_VERSION (F("0.3....
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2021-06-02 // PURPOSE: unit tests for the MAX14661 multiplexer // https://github.com/RobTillaart/MAX14661 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // --------...
// // FILE: MAX31850.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // DATE: 2021-06-03 // PURPOSE: Arduino library for the MAX31850 thermocouple temperature sensor. // URL: https://github.com/RobTillaart/MAX31850 #include "MAX31850.h" // OneWire commands #define STARTCONVO 0x44 #define R...
#pragma once // // FILE: MAX31850.h // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // DATE: 2021-06-03 // PURPOSE: Arduino library for the MAX31850 thermocouple temperature sensor. // URL: https://github.com/RobTillaart/MAX31850 #define MAX31850_LIB_VERSION (F("0.1.4")) #include "Arduino.h" #include "OneWi...
// // FILE: MAX31855.cpp // AUTHOR: Rob Tillaart // VERSION: 0.6.1 // PURPOSE: Arduino library for MAX31855 chip for K type thermocouple // DATE: 2014-01-01 // URL: https://github.com/RobTillaart/MAX31855_RT #include "MAX31855.h" // HW SPI MAX31855::MAX31855(uint8_t select, __SPI_CLASS__ * mySPI) { _s...
#pragma once // // FILE: MAX31855.h // AUTHOR: Rob Tillaart // VERSION: 0.6.1 // PURPOSE: Arduino library for MAX31855 chip for K type thermocouple // DATE: 2014-01-01 // URL: https://github.com/RobTillaart/MAX31855_RT // http://forum.arduino.cc/index.php?topic=208061 // Breakout board // /...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the MAX31855_RT Thermocouple library // https://github.com/RobTillaart/MAX31855_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -----------...
// // FILE: Max44007.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2022-01-04 // PURPOSE: library for Max44007 lux sensor Arduino // URL: https://github.com/RobTillaart/MAX44007 #include "Max44007.h" // MAX44007 KEY VALUES #define MAX44007_MIN_LUX (0.025) #define MAX44007_...
#pragma once // FILE: Max44007.h // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2022-01-04 // PURPOSE: library for Max44007 lux sensor Arduino // URL: https://github.com/RobTillaart/MAX44007 // breakout MAX44007 // // +--------+ // VCC |o | // GND |o | // SCL |...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-30 // PURPOSE: unit tests for the Max44007 // https://github.com/RobTillaart/Max44007 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: Max44009.cpp // AUTHOR: Rob Tillaart // VERSION: 0.6.0 // DATE: 2010-??-?? // PURPOSE: library for MAX44009 lux sensor Arduino // URL: https://github.com/RobTillaart/MAX44009 #include "Max44009.h" // MAX44009 KEY VALUES #define MAX44009_MIN_LUX (0.045) #define MAX44009_...
#pragma once // FILE: Max44009.h // AUTHOR: Rob Tillaart // VERSION: 0.6.1 // DATE: 2010-??-?? // PURPOSE: library for MAX44009 lux sensor Arduino // URL: https://github.com/RobTillaart/MAX44009 // breakout MAX44009 / GY-49 // // +--------+ // VCC |o | // GND |o | // ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-30 // PURPOSE: unit tests for the Max44009 // https://github.com/RobTillaart/Max44009 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: MAX471.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // DATE: 2024-01-30 // PURPOSE: Arduino library for MAX471 current sensor. // URL: https://github.com/RobTillaart/MAX471_RT #include "MAX471.h" ///////////////////////////////////////////////////////////////////////////// // // CONSTRUCTOR...
#pragma once // // FILE: MAX471.h // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // DATE: 2024-01-30 // PURPOSE: Arduino library for MAX471 current sensor. // URL: https://github.com/RobTillaart/MAX471_RT #include "Arduino.h" #define MAX471_LIB_VERSION (F("0.1.1")) class MAX471 { public: // red bo...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2024-01-30 // PURPOSE: unit tests for the MAX471 current sensor. // URL: https://github.com/RobTillaart/MAX471_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -----------------------...
// // FILE: MAX520.cpp // AUTHOR: Rob Tillaart // DATE: 2024-03-06 // VERSION: 0.1.1 // PURPOSE: Arduino library for MAX520 and MAX521 4/8 channel 8 bit DAC. // URL: https://github.com/RobTillaart/MAX520 #include "MAX520.h" #define MAX520_RESET 0x10 #define MAX520_POWERDOWN 0x08 #define MAX5...
#pragma once // // FILE: MAX520.h // AUTHOR: Rob Tillaart // DATE: 2024-03-06 // VERSION: 0.1.1 // PURPOSE: Arduino library for MAX520 and MAX521 4/8 channel 8 bit DAC. // URL: https://github.com/RobTillaart/MAX520 #include "Arduino.h" #include "Wire.h" #define MAX520_LIB_VERSION (F("0.1.1")) #d...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2024-03-06 // PURPOSE: unit tests for the MAX520/521 4/8 channel DAC // https://github.com/RobTillaart/MAX520 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----...
// // FILE: MAX6675.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.3 // PURPOSE: Arduino library for MAX6675 chip for K type thermocouple // DATE: 2022-01-11 // URL: https://github.com/RobTillaart/MAX6675 #include "MAX6675.h" // HW SPI MAX6675::MAX6675(uint8_t select, __SPI_CLASS__ * mySPI) { _select = s...
#pragma once // // FILE: MAX6675.h // AUTHOR: Rob Tillaart // VERSION: 0.3.3 // PURPOSE: Arduino library for MAX6675 chip for K type thermocouple // DATE: 2022-01-12 // URL: https://github.com/RobTillaart/MAX6675 // TODO Breakout board // // +---------+ // Vin | o | // 3V3 | o | // ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-12 // PURPOSE: unit tests for the MAX31855_RT Thermocouple library // https://github.com/RobTillaart/MAX31855_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -----------...
// // FILE: MCP23008.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.5 // PURPOSE: Arduino library for I2C MCP23008 8 channel port expander // DATE: 2019-10-12 // URL: https://github.com/RobTillaart/MCP23008 #include "MCP23008.h" MCP23008::MCP23008(uint8_t address, TwoWire *wire) : _address{address}, _wire{w...
#pragma once // // FILE: MCP23008.h // AUTHOR: Rob Tillaart // VERSION: 0.3.5 // PURPOSE: Arduino library for I2C MCP23008 8 channel port expander // DATE: 2022-01-10 // URL: https://github.com/RobTillaart/MCP23008 #include "Arduino.h" #include "Wire.h" #include "MCP23x08_registers.h" #define MCP23008_LI...
#pragma once // // FILE: MCP23x08_registers.h // AUTHOR: Rob Tillaart // PURPOSE: MCP23x08 register file // URL: https://github.com/RobTillaart/MCP23008 // URL: https://github.com/RobTillaart/MCP23S08 // Registers // description datasheet P9 #define MCP23x08_DDR_A ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-10 // PURPOSE: unit tests for the MCP23008 // https://github.com/RobTillaart/MCP23008 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: MCP23017.cpp // AUTHOR: Rob Tillaart // VERSION: 0.9.1 // PURPOSE: Arduino library for I2C MCP23017 16 channel port expander // DATE: 2019-10-12 // URL: https://github.com/RobTillaart/MCP23017_RT // // WARNING: please read REV D note in readme.md. #include "MCP23017.h" MCP23017::MCP23017(uint...
#pragma once // // FILE: MCP23017.h // AUTHOR: Rob Tillaart // VERSION: 0.9.1 // PURPOSE: Arduino library for I2C MCP23017 16 channel port expander // DATE: 2019-10-12 // URL: https://github.com/RobTillaart/MCP23017_RT // // WARNING: please read REV D note in readme.md // about pin 7 and 15 and INPU...
#pragma once // // FILE: MCP23x17_registers.h // AUTHOR: Rob Tillaart // PURPOSE: MCP23x17 register file // URL: https://github.com/RobTillaart/MCP23017_RT // URL: https://github.com/RobTillaart/MCP23S17 // REGISTERS // description datasheet #define MCP23x17_DDR...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the MCP23017 // https://github.com/RobTillaart/MCP23017_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // ass...
// // FILE: MCP23S08.cpp // AUTHOR: Rob Tillaart // VERSION: 0.6.0 // PURPOSE: Arduino library for SPI MCP23S08 8 channel port expander // DATE: 2022-01-10 // URL: https://github.com/RobTillaart/MCP23S08 #include "MCP23S08.h" // SOFTWARE SPI MCP23S08::MCP23S08(uint8_t select, uint8_t dataIn, uint8_t dat...
#pragma once // // FILE: MCP23S08.h // AUTHOR: Rob Tillaart // VERSION: 0.6.0 // PURPOSE: Arduino library for SPI MCP23S08 8 channel port expander // DATE: 2022-01-10 // URL: https://github.com/RobTillaart/MCP23S08 #include "Arduino.h" #include "SPI.h" #include "MCP23x08_registers.h" #define MCP23S08_LIB...
#pragma once // // FILE: MCP23x08_registers.h // AUTHOR: Rob Tillaart // PURPOSE: MCP23x08 register file // URL: https://github.com/RobTillaart/MCP23008 // URL: https://github.com/RobTillaart/MCP23S08 // Registers // description datasheet P9 #define MCP23x08_DDR_A ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-10 // PURPOSE: unit tests for the MCP23S08 // https://github.com/RobTillaart/MCP23S08 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: MCP23S17.cpp // AUTHOR: Rob Tillaart // VERSION: 0.8.0 // PURPOSE: Arduino library for SPI MCP23S17 16 channel port expander // DATE: 2021-12-30 // URL: https://github.com/RobTillaart/MCP23S17 #include "MCP23S17.h" // SOFTWARE SPI MCP23S17::MCP23S17(uint8_t select, uint8_t dataIn, uint8_t da...
#pragma once // // FILE: MCP23S17.h // AUTHOR: Rob Tillaart // VERSION: 0.8.0 // PURPOSE: Arduino library for SPI MCP23S17 16 channel port expander // DATE: 2021-12-30 // URL: https://github.com/RobTillaart/MCP23S17 #include "Arduino.h" #include "SPI.h" #include "MCP23x17_registers.h" #define MCP23S17_LI...
#pragma once // // FILE: MCP23x17_registers.h // AUTHOR: Rob Tillaart // PURPOSE: MCP23x17 register file // URL: https://github.com/RobTillaart/MCP23017_RT // URL: https://github.com/RobTillaart/MCP23S17 // REGISTERS // description datasheet #define MCP23x17_DDR...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-12-30 // PURPOSE: unit tests for the MCP23S17 // https://github.com/RobTillaart/MCP23S17 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: MCP330X.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2025-04-16 // PURPOSE: Arduino library for MCP3302 and MCP3304 13-Bit Differential ADC, SPI // URL: https://github.com/RobTillaart/MCP330X // #include "MCP330X.h" // HARDWARE SPI MCP330X::MCP330X(__SPI_CLASS__ * mySPI) { ...
#pragma once // // FILE: MCP330X.h // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2025-04-16 // PURPOSE: Arduino library for MCP3302 and MCP3304 13-Bit Differential ADC, SPI // URL: https://github.com/RobTillaart/MCP330X // #include "Arduino.h" #include "SPI.h" #define MCP330X_LIB_VERSION (F("0...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-04-16 // PURPOSE: unit tests for the MCP330X // https://github.com/RobTillaart/MCP330X // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEq...
// // FILE: MCP3424.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // PURPOSE: Arduino library for 18 bit ADC I2C MCP3424 and compatibles. // URL: https://github.com/RobTillaart/MCP3424 #include "MCP3424.h" ///////////////////////////////////////////////////////////////////////////// // // CONSTRUCTOR // MC...
#pragma once // // FILE: MCP3424.h // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // PURPOSE: Arduino library for 18 bit ADC I2C MCP3424 and compatibles. // URL: https://github.com/RobTillaart/MCP3424 #include "Arduino.h" #include "Wire.h" #define MCP3424_LIB_VERSION (F("0.1.4")) class MCP3424 { p...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2024-09-15 // PURPOSE: unit tests for the MCP3424 sensor // URL: https://github.com/RobTillaart/MCP3424 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // a...
// // FILE: MCP4261.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2024-02-21 // PURPOSE: Arduino library for MCP4261 SPI based digital potentiometers. // URL: https://github.com/RobTillaart/MCP4261 #include "MCP4261.h" #define MCP4261_CMD_WRITE 0x00 #define MCP4261_CMD_INCR 0x04...
#pragma once // // FILE: MCP4261.h // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2024-02-21 // PURPOSE: Arduino library for MCP4261 SPI based digital potentiometers. // URL: https://github.com/RobTillaart/MCP4261 #include "Arduino.h" #include "SPI.h" #define MCP4261_LIB_VERSION (F("0.2.1")...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-12-01 // PURPOSE: unit tests for the A1301 magnetic sensor // URL: https://github.com/RobTillaart/A1301 // https://www.adafruit.com/product/2857 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // su...
// // FILE: MCP4725.cpp // AUTHOR: Rob Tillaart // PURPOSE: Arduino library for 12 bit I2C DAC - MCP4725 // VERSION: 0.4.1 // URL: https://github.com/RobTillaart/MCP4725 #include "MCP4725.h" // registerMode #define MCP4725_DAC 0x40 #define MCP4725_DACEEPROM 0x60 // page 22 #define MCP47...
#pragma once // // FILE: MCP4725.h // AUTHOR: Rob Tillaart // PURPOSE: Arduino library for 12 bit I2C DAC - MCP4725 // VERSION: 0.4.1 // URL: https://github.com/RobTillaart/MCP4725 #include "Wire.h" #include "Arduino.h" #define MCP4725_VERSION (F("0.4.1")) // CONSTANTS #define MCP4725_MAXVALUE ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-27 // PURPOSE: unit tests for the MCP4725 // https://github.com/RobTillaart/MCP4725 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci...
// // FILE: mcp9808.cpp // AUTHOR: Rob Tillaart // VERSION: 0.4.1 // PURPOSE: Arduino Library for I2C mcp9808 temperature sensor // DATE: 2020-05-03 // URL: https://github.com/RobTillaart/MCP9808_RT #include "mcp9808.h" #define MCP9808_RFU 0x00 #define MCP9808_CONFIG 0x01 #define MCP9808_TUPPER 0x0...
#pragma once // // FILE: mcp9808.h // AUTHOR: Rob Tillaart // VERSION: 0.4.1 // PURPOSE: Arduino Library for I2C mcp9808 temperature sensor // DATE: 2020-05-03 // URL: https://github.com/RobTillaart/MCP9808_RT // #include "Arduino.h" #include "Wire.h" // VALID ADDRESSES, // max 8 sensors on one bus // ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the I2C mcp9808 temperature sensor // https://github.com/RobTillaart/MCP9808_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // --------------...
// // FILE: MCP_ADC.cpp // AUTHOR: Rob Tillaart // VERSION: 0.5.1 // DATE: 2019-10-24 // PURPOSE: Arduino library for MCP3001, MCP3002, MCP3004, MCP3008, MCP3201, MCP3202, MCP3204, MCP3208 // URL: https://github.com/RobTillaart/MCP_ADC #include "MCP_ADC.h" // HARDWARE SPI MCP_ADC::MCP_ADC(__SPI_C...
#pragma once // // FILE: MCP_ADC.h // AUTHOR: Rob Tillaart // VERSION: 0.5.1 // DATE: 2019-10-24 // PURPOSE: Arduino library for MCP3001, MCP3002, MCP3004, MCP3008, MCP3201, MCP3202, MCP3204, MCP3208 // URL: https://github.com/RobTillaart/MCP_ADC // // #if defined(BOARD_HAS_PIN_REMAP) && !defined(BOARD_USE...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the MCP_ADC // https://github.com/RobTillaart/MCP_ADC // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEq...
// // FILE: MCP_DAC.cpp // AUTHOR: Rob Tillaart // VERSION: 0.5.3 // DATE: 2021-02-03 // PURPOSE: Arduino library for MCP_DAC // URL: https://github.com/RobTillaart/MCP_DAC #include "MCP_DAC.h" // HW SPI MCP_DAC::MCP_DAC(__SPI_CLASS__ *inSPI) { mySPI = inSPI; _dataOut = 255; _clock = 255; ...
#pragma once // // FILE: MCP_DAC.h // AUTHOR: Rob Tillaart // VERSION: 0.5.3 // DATE: 2021-02-03 // PURPOSE: Arduino library for MCP_DAC // URL: https://github.com/RobTillaart/MCP_DAC #include "Arduino.h" #include "SPI.h" #define MCP_DAC_LIB_VERSION (F("0.5.3")) #ifndef __SPI_CLASS__ // MBED d...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-02-03 // PURPOSE: unit tests for the MCP_DAC // https://github.com/RobTillaart/MCP_DAC // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci...
// // FILE: MCP_POT.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.3 // DATE: 2023-12-21 // PURPOSE: Arduino library for MCP41xxx and MCP42xxx SPI based digital potentiometers. // URL: https://github.com/RobTillaart/MCP_POT #include "MCP_POT.h" // see page 18 datasheet #define MCP_POT_IGNORE_CMD 0x00...
#pragma once // // FILE: MCP_POT.h // AUTHOR: Rob Tillaart // VERSION: 0.2.3 // DATE: 2023-12-21 // PURPOSE: Arduino library for MCP41xxx and MCP42xxx SPI based digital potentiometers. // URL: https://github.com/RobTillaart/MCP_POT #include "Arduino.h" #include "SPI.h" #define MCP_POT_LIB_VERSION ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the MCP_POT // https://github.com/RobTillaart/MCP_POT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEq...
#pragma once // // FILE: Metronome.h // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // PURPOSE: Arduino library for creating a Metronome. // DATE: 2013-09-16 (initial sketch) // URL: https://github.com/RobTillaart/Metronome #include "Arduino.h" #define METRONOME_LIB_VERSION (F("0.1.0")) class Metronome {...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-05-12 // PURPOSE: unit tests for the Metronome library // URL: https://github.com/RobTillaart/Metronome // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-C...
// // FILE: MHZCO2.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.3 // PURPOSE: Arduino Library for MHZ series CO2 sensors. // DATE: 2020-05-05 // URL: https://github.com/RobTillaart/MHZCO2 #include "MHZCO2.h" MHZCO2::MHZCO2() { _startTime = millis(); } void MHZCO2::begin(Stream * str) { _str = str; ...
#pragma once // // FILE: MHZCO2.h // AUTHOR: Rob Tillaart // VERSION: 0.2.3 // PURPOSE: Arduino Library for MHZ series CO2 sensors. // DATE: 2020-05-05 // URL: https://github.com/RobTillaart/MHZCO2 // #include "Arduino.h" #define MHZCO2_LIB_VERSION (F("0.2.3")) #define MHZCO2_OK 0 #...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-12-01 // PURPOSE: Arduino Library for MHZ series CO2 sensors // https://github.com/RobTillaart/MHZCO2 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
#pragma once // // FILE: millis64.h // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // DATE: 2025-01-17 // PURPOSE: Arduino library for millis64 micros64 millis32 micros32, time counters with optional offset. // URL: https://github.com/RobTillaart/millis64 // https://forum.arduino.cc/t/arduino-millis-loop...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-01-17 // PURPOSE: unit tests for the millis64 library // URL: https://github.com/RobTillaart/millis64 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/...
// // FILE: MiniMP3.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // PURPOSE: Arduino library for DFRobotics MP3 player and compatibles. // DATE: 2018-06-11 // URL: https://github.com/RobTillaart/MINIMP3 #include "MiniMP3.h" // CONSTANTS #define MP3_MAX_VOLUME 30 // COMMANDS #define MP3_NEXT ...
#pragma once // // FILE: MiniMP3.h // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // PURPOSE: Arduino library for DFRobotics MP3 player and compatibles. // DATE: 2018-06-11 // URL: https://github.com/RobTillaart/MINIMP3 #include "Arduino.h" #define MINIMP3_LIB_VERSION (F("0.1.4")) // EQUALIZER MODI #def...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-08-31 // PURPOSE: unit tests for the MiniMP3 // https://github.com/RobTillaart/MiniMP3 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEq...
// // FILE: MINMAX.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // DATE: 2021-10-14 // PURPOSE: MINMAX library - simple peak finder // URL: https://github.com/RobTillaart/MINMAX #include "MINMAX.h" MINMAX::MINMAX() { _resetCount = 0; _minimumDefault = 0; _maximumDefault = 0; _callback ...
#pragma once // // FILE: MINMAX.h // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // DATE: 2021-10-14 // PURPOSE: MINMAX library - simple peak finder // URL: https://github.com/RobTillaart/MINMAX #include "Arduino.h" #define MINMAX_LIB_VERSION (F("0.3.0")) #define MINMAX_NO_CHANGE ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-10-14 // PURPOSE: unit tests for the MINMAX library // https://github.com/RobTillaart/MINMAX // // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEq...
// // FILE: ML8511.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2020-02-03 // PURPOSE: ML8511 - UV sensor - library for Arduino // URL: https://github.com/RobTillaart/ML8511 #include "ML8511.h" ///////////////////////////////////////////////////// // // PUBLIC // ML8511::ML8511(uint8_t analogP...
#pragma once // // FILE: ML8511.h // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2020-02-03 // PURPOSE: ML8511 - UV sensor - library for Arduino // URL: https://github.com/RobTillaart/ML8511 // // NOTES // ML8511 is a 3.3 Volt device, // so do not connect to a 5V device (e.g. UNO) // this inclu...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the ML8511 UV sensor // https://github.com/RobTillaart/ML8511 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // ...
#pragma once // // FILE: moduloMap.h // AUTHOR: Rob Tillaart // VERSION: 0.1.3 // PURPOSE: Arduino library for modulo mapping // DATE: 2022-10-15 // URL: https://github.com/RobTillaart/moduloMap #include "Arduino.h" #define MODMAP_LIB_VERSION (F("0.1.3")) class MODMAP { public: MODMAP()...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-10-20 // PURPOSE: unit tests for Arduino library for modulo mapping // https://github.com/RobTillaart/moduloMap // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------...
// // FILE: MS5611.cpp // AUTHOR: Rob Tillaart // Erni - testing/fixes // VERSION: 0.5.1 // PURPOSE: Arduino library for MS5611 (I2C) temperature and pressure sensor // URL: https://github.com/RobTillaart/MS5611 #include "MS5611.h" // datasheet page 10 #define MS5611_CMD_READ_ADC 0x00 #define...
#pragma once // // FILE: MS5611.h // AUTHOR: Rob Tillaart // Erni - testing/fixes // VERSION: 0.5.1 // PURPOSE: Arduino library for MS5611 (I2C) temperature and pressure sensor // URL: https://github.com/RobTillaart/MS5611 #include "Arduino.h" #include "Wire.h" // BREAKOUT MS5611 aka GY63 - see...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the MS5611 temperature and pressure library // https://github.com/RobTillaart/MS5611 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------...
// // FILE: MS5611_SPI.cpp // AUTHOR: Rob Tillaart // VERSION: 0.4.0 // PURPOSE: Arduino library for MS5611 (SPI) temperature and pressure sensor // URL: https://github.com/RobTillaart/MS5611_SPI #include "MS5611_SPI.h" // datasheet page 10 #define MS5611_CMD_READ_ADC 0x00 #define MS5611_CMD_READ_PROM...
#pragma once // // FILE: MS5611_SPI.h // AUTHOR: Rob Tillaart // VERSION: 0.4.0 // PURPOSE: Arduino library for MS5611 (SPI) temperature and pressure sensor // URL: https://github.com/RobTillaart/MS5611_SPI #include "Arduino.h" #include "SPI.h" // BREAKOUT MS5611 aka GY63 - see datasheet // // SPI I...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the MS5611 temperature and pressure library // https://github.com/RobTillaart/MS5611 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------...
// // FILE: MS5837.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // DATE: 2023-11-12 // PURPOSE: Arduino library for MS5837 temperature and pressure sensor. // URL: https://github.com/RobTillaart/MS5837 #include "MS5837.h" // commands (MS5611 alike) #define MS5837_CMD_READ_ADC 0x00 #define MS5837_...
#pragma once // // FILE: MS5837.h // AUTHOR: Rob Tillaart // VERSION: 0.3.1 // DATE: 2023-11-12 // PURPOSE: Arduino library for MS5837 temperature and pressure sensor. // URL: https://github.com/RobTillaart/MS5837 #include "Arduino.h" #include "Wire.h" #define MS5837_LIB_VERSION (F("0.3.1")) // ...