text
stringlengths
1
24.5M
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-06 // PURPOSE: unit tests for the MS5837 current sensor // https://github.com/RobTillaart/MS5837 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------...
// // FILE: MSP300.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: Arduino library for I2C MSP300 pressure transducer. // URL: https://github.com/RobTillaart/MSP300 #include "MSP300.h" MSP300::MSP300(const uint8_t deviceAddress, TwoWire *wire) { _address = deviceAddress; _wire = wir...
#pragma once // // FILE: MSP300.h // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: Arduino library for I2C MSP300 pressure transducer. // URL: https://github.com/RobTillaart/MSP300 #include "Arduino.h" #include "Wire.h" #define MSP300_LIB_VERSION (F("0.3.0")) // ERROR AND STATUS CODES #defi...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-12-06 // PURPOSE: unit tests for I2C digital MSP300 pressure transducer. // https://github.com/RobTillaart/MSP300 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------...
// // FILE: MT8870.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.7 // DATE: 2019-02-11 // PURPOSE: Arduino library for MT8870 DTMF decoder (breakout) // URL: https://github.com/RobTillaart/MT8870 // https://www.tinytronics.nl/shop/nl/sensoren/geluid/mt8870-dtmf-module #include "MT8870.h" void MT88...
#pragma once // // FILE: MT8870.h // AUTHOR: Rob Tillaart // VERSION: 0.1.7 // DATE: 2019-02-11 // PURPOSE: Arduino library for MT8870 DTMF decoder (breakout) // URL: https://github.com/RobTillaart/MT8870 // https://www.tinytronics.nl/shop/nl/sensoren/geluid/mt8870-dtmf-module #include "Arduino.h"...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-02 // PURPOSE: unit tests for the MT8870 // https://github.com/RobTillaart/MT8870 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assertEqua...
// // FILE: MTP40C.cpp // AUTHOR: Rob Tillaart // DATE: 2021-08-20 // VERSION: 0.3.2 // PURPOSE: Arduino library for MTP40C MTP40D CO2 sensor // URL: https://github.com/RobTillaart/MTP40C #include "MTP40C.h" // debug flag, development. // #define MTP40_DEBUG 1 MTP40::MTP40(Stream * stream) { ini...
#pragma once // // FILE: MTP40C.h // AUTHOR: Rob Tillaart // DATE: 2021-08-20 // VERSION: 0.3.2 // PURPOSE: Arduino library for MTP40C + MTP40D CO2 sensor // URL: https://github.com/RobTillaart/MTP40C // // Based upon datasheet June 2020, version 2.0 #include "Arduino.h" #define MTP40_LIB_VERSION ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2021-08-20 // PURPOSE: unit tests for the MTP40C CO2 sensor // https://github.com/RobTillaart/MTP40C // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://githu...
// // FILE: MTP40F.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-25 // VERSION: 0.2.1 // PURPOSE: Arduino library for MTP40F CO2 sensor // URL: https://github.com/RobTillaart/MTP40F #include "MTP40F.h" // debug flag, development. // #define MTP40F_DEBUG 1 MTP40F::MTP40F() { init(); } MTP40F::MTP...
#pragma once // // FILE: MTP40F.h // AUTHOR: Rob Tillaart // DATE: 2023-07-25 // VERSION: 0.2.1 // PURPOSE: Arduino library for MTP40F CO2 sensor // URL: https://github.com/RobTillaart/MTP40F #include "Arduino.h" #define MTP40F_LIB_VERSION (F("0.2.1")) #define MTP40F_DEFAULT_ADDRESS ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2023-07-25 // PURPOSE: unit tests for the MTP40F CO2 sensor // https://github.com/RobTillaart/MTP40F // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://githu...
#pragma once // // FILE: MultiMap.h // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2011-01-26 // PURPOSE: Arduino library for fast non-linear mapping or interpolation of values // URL: https://github.com/RobTillaart/MultiMap // URL: http://playground.arduino.cc/Main/MultiMap #define MULTIMAP_LIB_V...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-02 // PURPOSE: unit tests for the multiMap // https://github.com/RobTillaart/MultiMap // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: Multiplex.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.9 // PURPOSE: Arduino Library implementing a Print stream multiplexer. // DATE: 2021-01-09 // URL: https://github.com/RobTillaart/Multiplex #include "Multiplex.h" /////////////////////////////////////////// // // CONSTRUCTOR // Multiplex:...
#pragma once // // FILE: Multiplex.h // AUTHOR: Rob Tillaart // VERSION: 0.2.9 // PURPOSE: Arduino Library implementing a Print stream multiplexer. // DATE: 2021-01-09 // URL: https://github.com/RobTillaart/Multiplex #include "Arduino.h" #define MULTIPLEX_LIB_VERSION (F("0.2.9")) // MAX 254 (i...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-09 // PURPOSE: unit tests for the Multiplex // https://github.com/RobTillaart/Multiplex // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // asse...
#pragma once // // FILE: NeumannCorrector.h // AUTHOR: Rob Tillaart // DATE: 2023-11-23 // VERSION: 0.1.2 // PURPOSE: Arduino library for a NeumannCorrector. (randomizing streams of bits). // URL: https://github.com/RobTillaart/NeumannCorrector // Experimental code. #include "Arduino.h" #define NEUMANN...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-11-23 // PURPOSE: unit tests for the NeumannCorrector // https://github.com/RobTillaart/HC4067 // // supported assertions // ---------------------------- // assertEqual(expected, actual) // assertNotEqual(expected, actual) // assertLes...
// // FILE: nibbleArray.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.7 // PURPOSE: Arduino library for a compact array of nibbles (4 bits) // URL: https://github.com/RobTillaart/nibbleArray #include "nibbleArray.h" nibbleArray::nibbleArray(const uint16_t size) { _size = size; if (_size > (uint16_t) NIBBL...
#pragma once // // FILE: nibbleArray.h // AUTHOR: Rob Tillaart // VERSION: 0.2.7 // PURPOSE: Arduino library for a compact array of nibbles (4 bits) // URL: https://github.com/RobTillaart/nibbleArray #include "Arduino.h" #define NIBBLEARRAY_LIB_VERSION (F("0.2.7")) #ifndef NIBBLEARRAY_MAXSIZE // ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-02 // PURPOSE: unit tests for the nibbleArray // https://github.com/RobTillaart/nibbleArray // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // ...
// // FILE: optoma.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.6 // DATE: 2017-11-27 // PURPOSE: Arduino library to control Optoma W305ST beamer over RS232. // URL: https://github.com/RobTillaart/optoma #include "optoma.h" Optoma::Optoma(HardwareSerial * stream) { _stream = stream; _ID = 0; ...
#pragma once // // FILE: Optoma.h // AUTHOR: Rob Tillaart // VERSION: 0.1.6 // DATE: 2017-11-27 // PURPOSE: Arduino library to control Optoma W305ST beamer over RS232. // URL: https://github.com/RobTillaart/Optoma #include "Arduino.h" #define OPTOMA_LIB_VERSION (F("0.1.6")) class Optoma { public:...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the Optoma library // https://github.com/RobTillaart/Optoma // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // as...
#pragma once // // FILE: OUTPIN.h // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // PURPOSE: Arduino library for (AVR) faster and extended output pin. // DATE: 2016-12-27 // URL: https://github.com/RobTillaart/OUTPIN #include "Arduino.h" #define OUTPIN_LIB_VERSION (F("0.1.0")) class OUTPIN { public: ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-02-06 // PURPOSE: unit tests for the OUTPIN library // https://github.com/RobTillaart/OUTPIN // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // as...
// // FILE: palindrome.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // DATE: 2021-12-02 // PURPOSE: Arduino library to do palindrome experiments. // URL: https://github.com/RobTillaart/palindrome #include "palindrome.h" palindrome::palindrome() { } bool palindrome::isPalindrome(const char * str) { i...
#pragma once // // FILE: palindrome.h // AUTHOR: Rob Tillaart // VERSION: 0.1.4 // DATE: 2021-12-02 // PURPOSE: Arduino library to do palindrome experiments. // URL: https://github.com/RobTillaart/palindrome // #include "Arduino.h" #define PALINDROME_LIB_VERSION (F("0.1.4")) class palindrome { ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-12-02 // PURPOSE: unit tests for the palindrome library // https://github.com/RobTillaart/palindrome // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // --------------------------...
#pragma once // // FILE: PAR27979.h // AUTHOR: Rob Tillaart // VERSION: 0.2.6 // PURPOSE: Arduino library for Parallax 27979 _serial LCD display // URL: https://github.com/RobTillaart/PAR27979 #define PAR27929_LIB_VERSION (F("0.2.6")) #include "Arduino.h" class PAR27979 : public Print { public: PAR2...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-03 // PURPOSE: unit tests for the PAR27979 // https://github.com/RobTillaart/PAR27979 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // assert...
// // FILE: ParallelPrinter.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.7 // PURPOSE: parallel printer class that implements the Print interface // DATE: 2013-09-30 // URL: https://github.com/RobTillaart/ParallelPrinter #include "ParallelPrinter.h" ParallelPrinter::ParallelPrinter() { uint8_t dataPins[...
#pragma once // // FILE: ParallelPrinter.h // AUTHOR: Rob Tillaart // VERSION: 0.2.7 // PURPOSE: parallel printer class that implements the Print interface // DATE: 2013-09-30 // URL: https://github.com/RobTillaart/ParallelPrinter #include "Arduino.h" #define PARALLELPRINTER_VERSION (F("0.2...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-04 // PURPOSE: unit tests for the ParallelPrinter library // https://github.com/RobTillaart/ParallelPrinter // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----------------...
// // FILE: parprinter.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.00 // PURPOSE: parallel printer class that implements the Print interface // DATE: 2013-09-30 // URL: // // Released to the public domain // #include "ParPrinter.h" ParPrinter::ParPrinter() { // define pins for (uint8_t i = 0; i < 8...
// // FILE: ParPrinter.h // AUTHOR: Rob Tillaart // VERSION: 0.1.00 // PURPOSE: parallel printer class that implements the Print interface // DATE: 2013-09-30 // URL: // // Released to the public domain // #ifndef ParPrinter_h #define ParPrinter_h #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h"...
// // FILE: PCA9549.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // DATE: 2023-12-12 // PURPOSE: Arduino Library for PCA9549 I2C octal bus switch. // URL: https://github.com/RobTillaart/PCA9549 #include "PCA9549.h" PCA9549::PCA9549(uint8_t deviceAddress, TwoWire *wire) { _address = deviceAddress; _...
#pragma once // // FILE: PCA9549.h // AUTHOR: Rob Tillaart // VERSION: 0.1.1 // DATE: 2023-12-12 // PURPOSE: Arduino Library for PCA9549 I2C octal bus switch. // URL: https://github.com/RobTillaart/PCA9549 #include "Arduino.h" #include "Wire.h" #define PCA9549_LIB_VERSION (F("0.1.1")) #defin...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2023-12-12 // PURPOSE: unit tests for the PCA9549 I2C octal bus switch. // https://github.com/RobTillaart/PCA9549 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ...
// // FILE: PCA9551.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // VERSION: 0.3.1 // PURPOSE: Arduino library for for I2C PCA9551 8 channel PWM // URL: https://github.com/RobTillaart/PCA9551 #include "PCA9551.h" ////////////////////////////////////////////////////////////// // // Constructor // PCA9...
#pragma once // // FILE: PCA9551.h // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // VERSION: 0.3.1 // PURPOSE: Arduino library for for I2C PCA9551 8 channel PWM // URL: https://github.com/RobTillaart/PCA9551 #include "Arduino.h" #include "Wire.h" #define PCA9551_LIB_VERSION (F("0.3.1")) // REGIS...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // PURPOSE: unit tests for the PCA9551 I2C LED driver // https://github.com/RobTillaart/PCA9551 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
// // FILE: PCA9552.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // VERSION: 0.3.1 // PURPOSE: Arduino library for for I2C PCA9552 16 channel PWM // URL: https://github.com/RobTillaart/PCA9552 #include "PCA9552.h" ////////////////////////////////////////////////////////////// // // Constructor // PCA...
#pragma once // // FILE: PCA9552.h // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // VERSION: 0.3.1 // PURPOSE: Arduino library for for I2C PCA9552 16 channel PWM // URL: https://github.com/RobTillaart/PCA9552 #include "Arduino.h" #include "Wire.h" #define PCA9552_LIB_VERSION (F("0.3.1")) // REGI...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-17 // PURPOSE: unit tests for the PCA9552 I2C LED driver // https://github.com/RobTillaart/PCA9552 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
// // FILE: PCA9553.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-16 // VERSION: 0.4.1 // PURPOSE: Arduino library for for I2C PCA9553 4 channel PWM // URL: https://github.com/RobTillaart/PCA9553 #include "PCA9553.h" ////////////////////////////////////////////////////////////// // // Constructor // PCA9...
#pragma once // // FILE: PCA9553.h // AUTHOR: Rob Tillaart // DATE: 2023-07-16 // VERSION: 0.4.1 // PURPOSE: Arduino library for for I2C PCA9553 4 channel PWM // URL: https://github.com/RobTillaart/PCA9553 #include "Arduino.h" #include "Wire.h" #define PCA9553_LIB_VERSION (F("0.4.1")) // REGIS...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-16 // PURPOSE: unit tests for the PCA9553 I2C LED driver // https://github.com/RobTillaart/PCA9553 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
// // FILE: PCA9632.cpp // AUTHOR: Rob Tillaart // DATE: 2024-11-25 // VERSION: 0.1.1 // PURPOSE: Arduino library for PCA9632 and PCA9633 I2C 8 bit PWM LED driver, 4 channel. // URL: https://github.com/RobTillaart/PCA9632 #include "PCA9632.h" #define PCA9632_NO_INCREMENT 0x00 #define PCA9632_AUTO_INC...
#pragma once // // FILE: PCA9632.h // AUTHOR: Rob Tillaart // DATE: 2024-11-25 // VERSION: 0.1.1 // PURPOSE: Arduino library for PCA9632 and PCA9633 I2C 8 bit PWM LED driver, 4 channel. // URL: https://github.com/RobTillaart/PCA9632 #include "Arduino.h" #include "Wire.h" #define PCA9632_LIB_VERSION ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2024-11-25 // PURPOSE: unit tests for the PCA9632 I2C LED driver // https://github.com/RobTillaart/PCA9632 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------...
// // FILE: PCA9634.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-03 // VERSION: 0.4.1 // PURPOSE: Arduino library for PCA9634 I2C LED driver, 8 channel PWM, 8 bit // URL: https://github.com/RobTillaart/PCA9634 #include "PCA9634.h" ////////////////////////////////////////////////////////////// // // CONS...
#pragma once // // FILE: PCA9634.h // AUTHOR: Rob Tillaart // DATE: 2022-01-03 // VERSION: 0.4.1 // PURPOSE: Arduino library for PCA9634 I2C LED driver, 8 channel // URL: https://github.com/RobTillaart/PCA9634 #include "Arduino.h" #include "Wire.h" #define PCA9634_LIB_VERSION (F("0.4.1")) // m...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-03 // PURPOSE: unit tests for the PCA9634 I2C LED driver // https://github.com/RobTillaart/PCA9634 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
// // FILE: PCA9635.cpp // AUTHOR: Rob Tillaart // DATE: 23-apr-2016 // VERSION: 0.6.1 // PURPOSE: Arduino library for PCA9635 I2C LED driver, 16 channel PWM, 8 bit // URL: https://github.com/RobTillaart/PCA9635 #include "PCA9635.h" ////////////////////////////////////////////////////////////// // // CO...
#pragma once // // FILE: PCA9635.h // AUTHOR: Rob Tillaart // DATE: 23-apr-2016 // VERSION: 0.6.1 // PURPOSE: Arduino library for PCA9635 I2C LED driver, 16 channel PWM, 8 bit // URL: https://github.com/RobTillaart/PCA9635 #include "Arduino.h" #include "Wire.h" #define PCA9635_LIB_VERSION (F("0.6...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the PCA9635 I2C LED driver // https://github.com/RobTillaart/PCA9635 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // -------------------------...
// // FILE: PCA9671.cpp // AUTHOR: Rob Tillaart // DATE: 2025-03-16 // VERSION: 0.1.2 // PURPOSE: Arduino library for the PCA9671 and PCA9673, I2C 16-bit I/O expander. // URL: https://github.com/RobTillaart/PCA9671 #include "PCA9671.h" PCA9671::PCA9671(const uint8_t deviceAddress, TwoWire *wire) { _add...
#pragma once // // FILE: PCA9671.h // AUTHOR: Rob Tillaart // DATE: 2025-03-16 // VERSION: 0.1.2 // PURPOSE: Arduino library for the PCA9671 and PCA9673, I2C 16-bit I/O expander. // URL: https://github.com/RobTillaart/PCA9671 // https://github.com/RobTillaart/PCF8575 // // The PCA9671 is a pin comp...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-03-16 // PURPOSE: unit tests for the PCA9671 library // URL: https://github.com/RobTillaart/PCA9671 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/ar...
// // FILE: PCA9685.cpp // AUTHOR: Rob Tillaart // DATE: 24-apr-2016 // VERSION: 0.7.2 // PURPOSE: Arduino library for PCA9685 I2C LED driver, 16 channel PWM, 12 bit. // URL: https://github.com/RobTillaart/PCA9685_RT #include "PCA9685.h" ////////////////////////////////////////////////////////////// // /...
#pragma once // // FILE: PCA9685.h // AUTHOR: Rob Tillaart // DATE: 24-apr-2016 // VERSION: 0.7.2 // PURPOSE: Arduino library for PCA9685 I2C LED driver, 16 channel PWM, 12 bit. // URL: https://github.com/RobTillaart/PCA9685_RT #include "Arduino.h" #include "Wire.h" #define PCA9685_LIB_VERSION (F...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-05 // PURPOSE: unit tests for the I2C PCA9685 16 channel PWM // https://github.com/RobTillaart/PCA9685 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------...
// // FILE: PCA9698.cpp // AUTHOR: Rob Tillaart // DATE: 2025-01-06 // VERSION: 0.1.0 // PURPOSE: Arduino library for the PCA9698 - I2C, 40 channel IO expander. // URL: https://github.com/RobTillaart/PCA9698_RT #include "PCA9698.h" // REGISTERS & FLAGS #define PCA9698_AUTO_INCR 0x80 #define PCA9698...
#pragma once // // FILE: PCA9698.h // AUTHOR: Rob Tillaart // DATE: 2025-01-06 // VERSION: 0.1.0 // PURPOSE: Arduino library for the PCA9698 - I2C, 40 channel IO expander. // URL: https://github.com/RobTillaart/PCA9698_RT #include "Arduino.h" #include "Wire.h" #define PCA9698_LIB_VERSION (F("0.1....
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2025-01-06 // PURPOSE: unit tests for the PCA9698 - I2C, 40 channel IO expander. // https://github.com/RobTillaart/PCA9698_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported as...
// // FILE: PCF85263.cpp // AUTHOR: Rob Tillaart // DATE: 2025-02-17 // VERSION: 0.1.0 // PURPOSE: Arduino library for the PCF85263 RTC. // URL: https://github.com/RobTillaart/PCF85263 #include "PCF85263.h" PCF85263::PCF85263(TwoWire *wire) { _wire = wire; _error = 0; _lastRead = 0; } int...
#pragma once // // FILE: PCF85263.h // AUTHOR: Rob Tillaart // DATE: 2025-02-17 // VERSION: 0.1.0 // PURPOSE: Arduino library for the PCF85263 RTC (I2C). // URL: https://github.com/RobTillaart/PCF85263 #include "Arduino.h" #include "Wire.h" #define PCF85263_LIB_VERSION (F("0.1.0")) #define PCF852...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-02-17 // PURPOSE: unit tests for the PCF85263 RTC library // URL: https://github.com/RobTillaart/PCF85263 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino...
// // FILE: PCF8574.cpp // AUTHOR: Rob Tillaart // DATE: 02-febr-2013 // VERSION: 0.4.4 // PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8574 // http://forum.arduino.cc/index.php?topic=184800 #include "PCF8574.h" #ifndef I2C_BUFFER_LENG...
#pragma once // // FILE: PCF8574.h // AUTHOR: Rob Tillaart // DATE: 02-febr-2013 // VERSION: 0.4.4 // PURPOSE: Arduino library for PCF8574 - 8 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8574 // http://forum.arduino.cc/index.php?topic=184800 #include "Arduino.h" #include "Wir...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2020-12-03 // PURPOSE: unit tests for the PCF8574 I2C port expander // https://github.com/RobTillaart/PCF8574 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----...
// // FILE: PCF8575.cpp // AUTHOR: Rob Tillaart // DATE: 2020-07-20 // VERSION: 0.2.4 // PURPOSE: Arduino library for PCF8575 - 16 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8575 // https://github.com/RobTillaart/PCA9671 (replacement) #include "PCF8575.h" PCF8575::PCF8575...
#pragma once // // FILE: PCF8575.h // AUTHOR: Rob Tillaart // DATE: 2020-07-20 // VERSION: 0.2.4 // PURPOSE: Arduino library for PCF8575 - 16 channel I2C IO expander // URL: https://github.com/RobTillaart/PCF8575 // https://github.com/RobTillaart/PCA9671 (replacement) #include "Arduino.h" #includ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the PCF8575 - 16 channel I2C IO expander. // https://github.com/RobTillaart/PCF8575 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----------...
// // FILE: PCF8591.cpp // AUTHOR: Rob Tillaart // DATE: 2020-03-12 // VERSION: 0.4.1 // PURPOSE: Arduino Library for PCF8591 I2C 4 channel 8 bit ADC + 1 channel 8 bit DAC. // URL: https://github.com/RobTillaart/PCF8591 #include "PCF8591.h" // INTERNAL USE const uint8_t PCF8591_DAC_FLAG = 0x40; const ui...
#pragma once // // FILE: PCF8591.h // AUTHOR: Rob Tillaart // DATE: 2020-03-12 // VERSION: 0.4.1 // PURPOSE: Arduino Library for PCF8591 I2C 4 channel 8 bit ADC + 1 channel 8 bit DAC. // URL: https://github.com/RobTillaart/PCF8591 #include "Arduino.h" #include "Wire.h" #define PCF8591_LIB_VERSION ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-01 // PURPOSE: unit tests for the I2C PCF8591 library // https://github.com/RobTillaart/PCF8591 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----------------------------...
#pragma once // // FILE: PCR.h // AUTHOR: Rob Tillaart // VERSION: 0.4.0 // DATE: 2015-06-10 // PURPOSE: Arduino library for PCR process control. // URL: https://github.com/RobTillaart/PCR // https://forum.arduino.cc/t/problem-with-arduino-pcr-amplifies-of-dna/314808 #include "Arduino.h" #define ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2024-05-30 // PURPOSE: unit tests for the PCR library // URL: https://github.com/RobTillaart/PCR // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci...
// // FILE: PCT2075.cpp // AUTHOR: Rob Tillaart // DATE: 2025-02-11 // VERSION: 0.1.1 // PURPOSE: Arduino library for I2C PCT2075 temperature sensor / thermal watchdog. // URL: https://github.com/RobTillaart/PCT2075 #include "PCT2075.h" // REGISTERS #define PCT2075_TEMPERATURE 0x00 #define PCT20...
#pragma once // // FILE: PCT2075.h // AUTHOR: Rob Tillaart // DATE: 2025-02-11 // VERSION: 0.1.1 // PURPOSE: Arduino library for I2C PCT2075 temperature sensor / thermal watchdog. // URL: https://github.com/RobTillaart/PCT2075 // // user must handle OS pin #include "Arduino.h" #include "Wire.h" #define ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2025-02-11 // PURPOSE: unit tests for the PCT2075 temperature sensor // https://github.com/RobTillaart/PCT2075 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------...
// // FILE: PERIPUMP.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.3 // DATE: 2022-10-13 // PURPOSE: Arduino library for peristaltic pump #include "PERIPUMP.h" // CONSTRUCTOR PERIPUMP::PERIPUMP(uint8_t pumpPin) { _pin = pumpPin; _percentage = 0; _sumTime = 0; } void PERIPUMP::begin(float per...
#pragma once // // FILE: PERIPUMP.h // AUTHOR: Rob Tillaart // VERSION: 0.1.3 // DATE: 2022-10-13 // PURPOSE: Arduino library for peristaltic pump // // Tested with dfrobot peristaltic pump DFR0523 // #include "Arduino.h" #include "Servo.h" #define PERIPUMP_LIB_VERSION (F("0.1.3")) class PE...
// // FILE: PID_RT.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.9 // PURPOSE: PID library for Arduino // URL: https://github.com/RobTillaart/PID #include "PID_RT.h" PID_RT::PID_RT() { reset(); } PID_RT::PID_RT(float sp, float Kp, float Ki, float Kd) { reset(); setPoint(sp); setK(Kp, Ki, Kd); } vo...
#pragma once // // FILE: PID_RT.h // AUTHOR: Rob Tillaart // VERSION: 0.1.9 // PURPOSE: PID library for Arduino // URL: https://github.com/RobTillaart/PID_RT #include "Arduino.h" #define PID_LIB_VERSION (F("0.1.9")) // fix #8, control the interval check in compute() // Enables the compute(...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-15 // PURPOSE: unit tests for the PID_RT library // https://github.com/RobTillaart/PID_RT // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // as...
// // FILE: PinInGroup.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.10 // DATE: 2017-04-26 // PURPOSE: PinInGroup library for Arduino // goal is to easily read a group of pins that logically // belong to each other. // The pins can be in any order, even duplicates are allowed. // UR...
#pragma once // FILE: PinInGroup.h // AUTHOR: Rob Tillaart // VERSION: 0.1.10 // DATE: 2017-04-26 // PURPOSE: PinInGroup library for Arduino // URL: https://github.com/RobTillaart/PinInGroup // // Note: ESP32 has some dedicated IO pins that cannot be used in a group. // FLASH: pin 6 - 11 (maybe more) ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-05 // PURPOSE: unit tests for the PinInGroup // https://github.com/RobTillaart/PinInGroup // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // as...
// // FILE: PinOutGroup.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.9 // DATE: 2017-04-26 // PURPOSE: PinOutGroup library for Arduino // goal is to easily change a group of pins that logically // belong to each other e.g. 8 data pins of a parallel printer. // these pins can be in any o...
#pragma once // FILE: PinOutGroup.h // AUTHOR: Rob Tillaart // VERSION: 0.1.9 // DATE: 2017-04-26 // PURPOSE: PinOutGroup library for Arduino // URL: https://github.com/RobTillaart/PinOutGroup #include "Arduino.h" #define PINOUTGROUP_LIB_VERSION (F("0.1.9")) // smaller MAXSIZE will reduce memo...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-01-05 // PURPOSE: unit tests for the PinOutGroup // https://github.com/RobTillaart/PinOutGroup // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // ...
// // FILE: PIR.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2022-08-13 // PURPOSE: PIR library for Arduino. // URL: https://github.com/RobTillaart/PIR #include "PIR.h" PIR::PIR() { reset(); } uint8_t PIR::add(uint8_t pin) { if (_count >= PIR_MAX_COUNT) return PIR_ERR_ARRAY_FULL; _pins[...
#pragma once // // FILE: PIR.h // AUTHOR: Rob Tillaart // VERSION: 0.2.0 // DATE: 2022-08-13 // PURPOSE: PIR library // URL: https://github.com/RobTillaart/PIR #include "Arduino.h" #define PIR_LIB_VERSION (F("0.2.0")) #ifndef PIR_MAX_COUNT #define PIR_MAX_COUNT 8 #endif // ERRO...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-08-13 // PURPOSE: unit tests for the PIR current sensor // https://github.com/RobTillaart/PIR // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // a...
#pragma once // // FILE: PIR8575.h // AUTHOR: Rob Tillaart // VERSION: 0.1.0 // DATE: 2025-01-28 // PURPOSE: Arduino library for 16 channel PIR detection system based upon PCF8575 // Also works (limited) with PCF8574. #include "Arduino.h" #include "Wire.h" #define PIR8575_LIB_VERSION (F("0.1.0...