text
stringlengths
1
24.5M
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-11-04 // PURPOSE: unit tests for the FastShiftIn library // https://github.com/RobTillaart/FastShiftInOut // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Ar...
// // FILE: FastShiftOut.cpp // AUTHOR: Rob Tillaart // VERSION: 0.4.2 // PURPOSE: ShiftOut that implements the Print interface // DATE: 2013-08-22 // URL: https://github.com/RobTillaart/FastShiftOut #include "FastShiftOut.h" FastShiftOut::FastShiftOut(uint8_t dataOut, uint8_t clockPin, uint8_t bitOrder)...
#pragma once // // FILE: FastShiftOut.h // AUTHOR: Rob Tillaart // VERSION: 0.4.2 // PURPOSE: shiftOut class that implements the Print interface // DATE: 2013-08-22 // URL: https://github.com/RobTillaart/FastShiftOut #include "Arduino.h" #include "Print.h" #define FASTSHIFTOUT_LIB_VERSION (F("0.4.2...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the FastShiftIn library // https://github.com/RobTillaart/FastShiftOut // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Ardu...
// // FILE: FastTrig.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.4 // PURPOSE: Arduino library for a faster approximation of sin() and cos() // DATE: 2011-08-18 // URL: https://github.com/RobTillaart/FastTrig // https://forum.arduino.cc/index.php?topic=69723.0 #include "FastTrig.h" const float _...
#pragma once // // FILE: FastTrig.h // AUTHOR: Rob Tillaart // VERSION: 0.3.4 // PURPOSE: Arduino library for a faster approximation of sin() and cos() // DATE: 2011-08-18 // URL: https://github.com/RobTillaart/FastTrig // https://forum.arduino.cc/index.php?topic=69723.0 #ifdef ESP_PLATFORM #inclu...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-23 // PURPOSE: unit tests for the FastTrig library // https://github.com/RobTillaart/FastTrig // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/...
// // FILE: fast_math.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.4 // PURPOSE: Arduino library for fast math algorithms // DATE: 27 October 2013 // URL: https://github.com/RobTillaart/fast_math #include "fast_math.h" /////////////////////////////////////////////////////////// // // DIV MOD // void divm...
#pragma once // // FILE: fast_math.h // AUTHOR: Rob Tillaart // VERSION: 0.2.4 // PURPOSE: Arduino library for fast math algorithms // DATE: 27 October 2013 // URL: https://github.com/RobTillaart/fast_math #ifdef ESP_PLATFORM #include <math.h> #include <stdint.h> #include <stdbool.h> #else #include "Arduin...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-11-29 // PURPOSE: unit tests for the fast_math library // https://github.com/RobTillaart/fast_math // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ----------------------------...
// // FILE: FLE.cpp // AUTHOR: Rob Tillaart // DATE: 2020-07-21 // VERSION: 0.1.5 // PURPOSE: Arduino library for float with error data type // URL: https://github.com/RobTillaart/FLE #include "FLE.h" FLE::FLE(float val, float err) { _v = val; _e = abs(err); }; // PRINTABLE size_t FLE::printTo(Prin...
#pragma once // // FILE: FLE.h // AUTHOR: Rob Tillaart // DATE: 2020-07-21 // VERSION: 0.1.5 // PURPOSE: Arduino library for float with error data type // URL: https://github.com/RobTillaart/FLE #include "Arduino.h" #include "math.h" #define FLE_LIB_VERSION (F("0.1.5")) class FLE: public Prin...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-23 // PURPOSE: unit tests for the FLE // https://github.com/RobTillaart/FLE // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci/blob/ma...
// // FILE: Fletcher.cpp // AUTHOR: Rob Tillaart // VERSION: 0.1.10 // DATE: 2022-01-25 // PURPOSE: Arduino Library for calculating Fletcher's checksum // URL: https://github.com/RobTillaart/Fletcher // https://en.wikipedia.org/wiki/Fletcher%27s_checksum #include "Fletcher.h" // straightforward...
#pragma once // // FILE: Fletcher.h // AUTHOR: Rob Tillaart // VERSION: 0.1.10 // DATE: 2022-01-25 // PURPOSE: Arduino Library for calculating Fletcher's checksum // URL: https://github.com/RobTillaart/Fletcher // https://en.wikipedia.org/wiki/Fletcher%27s_checksum #include "Arduino.h" #define F...
// // FILE: Fletcher16.cpp // AUTHOR: Rob Tillaart, Daniel Mohr // PURPOSE: Arduino class for Fletcher16 // URL: https://github.com/RobTillaart/Fletcher #include "Fletcher16.h" // UINT8_MAX = 255 = ((((uint16_t) 1) << 8) - 1) #define FLETCHER_16 UINT8_MAX Fletcher16::Fletcher16() { begin(); } void F...
#pragma once // // FILE: Fletcher16.h // AUTHOR: Rob Tillaart, Daniel Mohr // PURPOSE: Arduino class for Fletcher16 // URL: https://github.com/RobTillaart/Fletcher #include "Arduino.h" class Fletcher16 { public: Fletcher16(); // set parameters to default void begin(uint8_t s1 = 0, uint8_t s2 = 0...
// // FILE: Fletcher32.cpp // AUTHOR: Rob Tillaart, Daniel Mohr // PURPOSE: Arduino class for Fletcher32 // URL: https://github.com/RobTillaart/Fletcher #include "Fletcher32.h" // UINT16_MAX = 65535UL = ((((uint32_t) 1) << 16) - 1) #define FLETCHER_32 UINT16_MAX Fletcher32::Fletcher32() { begin(); } ...
#pragma once // // FILE: Fletcher32.h // AUTHOR: Rob Tillaart // PURPOSE: Arduino class for Fletcher32 // URL: https://github.com/RobTillaart/Fletcher #include "Arduino.h" class Fletcher32 { public: Fletcher32(); // set parameters to default void begin(uint16_t s1 = 0, uint16_t s2 = 0); void ...
// // FILE: Fletcher64.cpp // AUTHOR: Rob Tillaart // PURPOSE: Arduino class for Fletcher32 // URL: https://github.com/RobTillaart/Fletcher #include "Fletcher64.h" // UINT32_MAX = 4294967295ULL = ((((uint64_t) 1) << 32) - 1) #define FLETCHER_64 UINT32_MAX Fletcher64::Fletcher64() { begin(); } void Fl...
#pragma once // // FILE: Fletcher64.h // AUTHOR: Rob Tillaart // PURPOSE: Arduino class for Fletcher64 // URL: https://github.com/RobTillaart/Fletcher #include "Arduino.h" class Fletcher64 { public: Fletcher64(); // set parameters to default void begin(uint32_t s1 = 0, uint32_t s2 = 0); void ...
#pragma once /* Author: Daniel Mohr Date: 2022-09-13 Here are basic implementations which should give reference values. */ uint16_t basic_fletcher16(uint8_t *data, const size_t length) { uint8_t s1 = 0; uint8_t s2 = 0; for (size_t i = 0; i < length; i++) { // UINT8_MAX = 255 = ((((uint16_t) 1) << 8...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations with bit shifts instead of modulo. */ uint16_t fletcher16_bit_shift(uint8_t *data, const uint16_t length) { uint16_t _s1 = 0; uint16_t _s2 = 0; for (uint16_t i = 0; i < length; i++) { _s1 += data[i]; _s1 = (_s1 & 255) ...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations with if statements instead of modulo. */ #define FLETCHER_16_if_statement 255 #define FLETCHER_32_if_statement 65535UL #define FLETCHER_64_if_statement 4294967295ULL uint16_t fletcher16_if_statement(uint8_t *data, const uint16_t leng...
#pragma once /* Author: Daniel Mohr Date: 2022-09-10 Here are implementations, which could be used in the next release. Fletcher16.cpp Fletcher16.h Fletcher32.cpp Fletcher32.h Fletcher64.cpp Fletcher64.h */ #include <Fletcher16.h> #include <Fletcher32.h> #include <Fletcher64.h> uint16_t fletcher16...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations with testing for overflow instead of modulo. */ #define FLETCHER_64_overflow 4294967295ULL #ifdef ARDUINO_ARCH_AVR uint32_t fletcher32_overflow(uint16_t *data, const uint16_t length) { uint16_t _s1 = 0; uint16_t _s2 = 0; for (u...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations, which were used in release '0.1.3'. Fletcher16.cpp Fletcher16.h Fletcher32.cpp Fletcher32.h Fletcher64.cpp Fletcher64.h */ #define FLETCHER_16_v0_1_3 255 #define FLETCHER_32_v0_1_3 65535UL #define FLETCHER_64_v0_1_3 4294...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations, which were used in release '0.1.4'. Fletcher16.cpp Fletcher16.h Fletcher32.cpp Fletcher32.h Fletcher64.cpp Fletcher64.h */ #define FLETCHER_16_v0_1_4 255 #define FLETCHER_32_v0_1_4 65535UL #define FLETCHER_64_v0_1_4 4294...
#pragma once /* Author: Daniel Mohr Date: 2022-09-09 Here are implementations, which were used in release '0.1.5'. Fletcher16.cpp Fletcher16.h Fletcher32.cpp Fletcher32.h Fletcher64.cpp Fletcher64.h */ #define FLETCHER_16_v0_1_5 255 #define FLETCHER_32_v0_1_5 65535UL #define FLETCHER_64_v0_1_5 4294...
#pragma once /* Author: Daniel Mohr Date: 2022-09-12 Here are implementations, which were used in release '0.1.6'. Fletcher16.cpp Fletcher16.h Fletcher32.cpp Fletcher32.h Fletcher64.cpp Fletcher64.h */ #define FLETCHER_16_v0_1_6 255 #define FLETCHER_32_v0_1_6 65535UL #define FLETCHER_64_v0_1_6 4294...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-01-25 // PURPOSE: unit tests for the GAMMA library // https://github.com/RobTillaart/GAMMA // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduin...
// // FILE: float16.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.1 // DATE: 2015-03-10 // PURPOSE: library for Float16s for Arduino // URL: http://en.wikipedia.org/wiki/Half-precision_floating-point_format #include "float16.h" // CONSTRUCTOR float16::float16(double f) { _value = f32tof16(f); } //////...
#pragma once // // FILE: float16.h // AUTHOR: Rob Tillaart // VERSION: 0.3.1 // DATE: 2015-03-10 // PURPOSE: Arduino library to implement float16 data type. // half-precision floating point format, // used for efficient storage and transport. // URL: https://github.com/RobTillaart/float16 ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-11-26 // PURPOSE: unit tests for the float16 data type // https://github.com/RobTillaart/float16 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- /...
// // FILE: float16ext.cpp // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2024-03-06 // PURPOSE: library for Float16s for Arduino // URL: http://en.wikipedia.org/wiki/Half-precision_floating-point_format #include "float16ext.h" // CONSTRUCTOR float16ext::float16ext(double f) { _value = f32tof16(f)...
#pragma once // // FILE: float16ext.h // AUTHOR: Rob Tillaart // VERSION: 0.2.1 // DATE: 2024-03-06 // PURPOSE: Arduino library to implement float16ext data type. // half-precision floating point format, // used for efficient storage and transport. // URL: https://github.com/RobTillaart/flo...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2021-11-26 // PURPOSE: unit tests for the float16 data type // https://github.com/RobTillaart/float16 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- /...
// // FILE: fraction.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: Arduino library to implement a Fraction data type // URL: https://github.com/RobTillaart/Fraction #include "fraction.h" ////////////////////////////////////// // // CONSTRUCTORS // Fraction::Fraction(double d) { Fraction::spli...
#pragma once // // FILE: fraction.h // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: Arduino library to implement a Fraction data type // URL: https://github.com/RobTillaart/Fraction #include "Arduino.h" #define FRACTION_LIB_VERSION (F("0.3.0")) class Fraction { public: explicit Fractio...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the Fraction // https://github.com/RobTillaart/Fraction // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_...
// // FILE: FRAM.cpp // AUTHOR: Rob Tillaart // VERSION: 0.8.3 // DATE: 2018-01-24 // PURPOSE: Arduino library for I2C FRAM // URL: https://github.com/RobTillaart/FRAM_I2C #include "FRAM.h" // DENSITY CODES #define FRAM_MB85RC64 0x03 #define FRAM_MB85RC256 0x05 #define FR...
#pragma once // // FILE: FRAM.h // AUTHOR: Rob Tillaart // VERSION: 0.8.3 // DATE: 2018-01-24 // PURPOSE: Arduino library for I2C FRAM // URL: https://github.com/RobTillaart/FRAM_I2C #include "Arduino.h" #if (defined(ARDUINO_attiny) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny85__)) && !defined(Two...
// // FILE: FRAM_MULTILANGUAGE.cpp // AUTHOR: Rob Tillaart // DATE: 2023-04-22 // PURPOSE: Arduino library for I2C FRAM based multi language table // URL: https://github.com/RobTillaart/FRAM_I2C // #include "FRAM_MULTILANGUAGE.h" // https://github.com/RobTillaart/FRAM_I2C // CONFIG #define FML_MAX_L...
#pragma once // // FILE: FRAM_MULTILANGUAGE.h // AUTHOR: Rob Tillaart // DATE: 2023-04-22 // PURPOSE: Arduino library for I2C FRAM based multi language table // URL: https://github.com/RobTillaart/FRAM_I2C #include "FRAM.h" // https://github.com/RobTillaart/FRAM_I2C // ERROR CODES #define FRAM_ML_OK...
// // FILE: FRAM_RINGBUFFER.h // AUTHOR: Rob Tillaart // DATE: 2022-10-03 // PURPOSE: Arduino library for I2C FRAM based RING BUFFER // URL: https://github.com/RobTillaart/FRAM_I2C // #include "FRAM_RINGBUFFER.h" FRAM_RINGBUFFER::FRAM_RINGBUFFER() { } uint32_t FRAM_RINGBUFFER::begin(FRAM *fram, uint32_...
#pragma once // // FILE: FRAM_RINGBUFFER.h // AUTHOR: Rob Tillaart // DATE: 2022-10-03 // PURPOSE: Arduino library for I2C FRAM based ring buffer // URL: https://github.com/RobTillaart/FRAM_I2C // #include "FRAM.h" // https://github.com/RobTillaart/FRAM_I2C // ERROR CODES #define FRAM_RB_OK ...
#pragma once // // FILE: elements_name.h // AUTHOR: Rob Tillaart // DATE: 2023-04-15 // PURPOSE: list of long names of elements. // pretty large table. // URL: https://github.com/RobTillaart/AtomicWeight char elements_name[74][14] = { "neutronium", // zero protons, one neutron. "Hydrogen", ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-23 // PURPOSE: unit tests for the FRAM library // https://github.com/RobTillaart/FRAM_I2C // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/ardu...
// // FILE: functionGenerator.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: wave form generating functions (use with care) // URL: https://github.com/RobTillaart/FunctionGenerator #include "functionGenerator.h" funcgen::funcgen(float period, float amplitude, float phase, float yShift) { setPer...
#pragma once // // FILE: functionGenerator.h // AUTHOR: Rob Tillaart // VERSION: 0.3.0 // PURPOSE: wave form generating functions (use with care) // URL: https://github.com/RobTillaart/FunctionGenerator #include "Arduino.h" #define FUNCTIONGENERATOR_LIB_VERSION (F("0.3.0")) class funcgen { public...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-24 // PURPOSE: unit tests for the FunctionGenerator library // https://github.com/RobTillaart/FunctionGenerator // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://gith...
// // FILE: gamma.cpp // AUTHOR: Rob Tillaart // VERSION: 0.5.0 // DATE: 2020-08-08 // PURPOSE: Arduino Library to efficiently hold a gamma lookup table // URL: https://github.com/RobTillaart/GAMMA #include "gamma.h" GAMMA::GAMMA(uint16_t size) { _shift = 7; // force power of 2; get shift & mask righ...
#pragma once // // FILE: gamma.h // AUTHOR: Rob Tillaart // VERSION: 0.5.0 // DATE: 2020-08-08 // PURPOSE: Arduino Library to efficiently hold a gamma lookup table // URL: https://github.com/RobTillaart/GAMMA #include "Arduino.h" #define GAMMA_LIB_VERSION (F("0.5.0")) #define GAMMA_DEFAUL...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-24 // PURPOSE: unit tests for the GAMMA library // https://github.com/RobTillaart/GAMMA // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduin...
#pragma once // // FILE: Gauss.h // AUTHOR: Rob Tillaart // VERSION: 0.2.2 // PURPOSE: Library for the Gauss probability math. // DATE: 2023-07-06 #include "Arduino.h" #define GAUSS_LIB_VERSION (F("0.2.2")) class Gauss { public: Gauss() { _mean = 0; _reciprokeSD = 1; // math optimization...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-07-07 // PURPOSE: unit tests for the Gauss library // https://github.com/RobTillaart/Gauss // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // asse...
#pragma once // // FILE: geomath.h // AUTHOR: Rob Tillaart // VERSION: 0.1.2 // DATE: 2015-07-18 // PURPOSE: Arduino library with geographic math functions // URL: https://github.com/RobTillaart/geomath #include "Arduino.h" #define GEOMATH_LIB_VERSION (F("0.1.2")) #define GRAVITY_STANDARD ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-09-24 // PURPOSE: unit tests for the geomath library // https://github.com/RobTillaart/geomath // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // ...
// // FILE: GST.cpp // VERSION: 0.1.5 // DATE: 2022-02-25 // PURPOSE: Arduino library for Gold Standard Test metrics // URL: https://github.com/RobTillaart/GST // https://en.wikipedia.org/wiki/Sensitivity_and_specificity // https://en.wikipedia.org/wiki/Confusion_matrix // // formula's base...
#pragma once // // FILE: GST.h // VERSION: 0.1.5 // DATE: 2022-02-25 // PURPOSE: Arduino library for Gold Standard Test metrics // URL: https://github.com/RobTillaart/GST // https://en.wikipedia.org/wiki/Sensitivity_and_specificity // https://en.wikipedia.org/wiki/Confusion_matrix // // for...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-02-27 // PURPOSE: unit tests for the GST library // https://github.com/RobTillaart/GST // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci...
// // FILE: GY521.cpp // AUTHOR: Rob Tillaart // VERSION: 0.6.1 // PURPOSE: Arduino library for I2C GY521 accelerometer-gyroscope sensor // URL: https://github.com/RobTillaart/GY521 #include "GY521.h" // keep register names in sync with BIG MPU6050 lib #include "GY521_registers.h" // COMMANDS #define GY5...
#pragma once // // FILE: GY521.h // AUTHOR: Rob Tillaart // VERSION: 0.6.1 // PURPOSE: Arduino library for I2C GY521 accelerometer-gyroscope sensor // URL: https://github.com/RobTillaart/GY521 #include "Arduino.h" #include "Wire.h" #define GY521_LIB_VERSION (F("0.6.1")) const float GRAVITY = 9.80...
// // FILE: GY521_registers.h // AUTHOR: Rob Tillaart // VERSION: see GY521.cpp // PURPOSE: Arduino library for I2C GY521 accelerometer-gyroscope sensor // URL: https://github.com/RobTillaart/GY521 // // keep names in sync with BIG MPU6050 lib #define GY521_XG_OFFS_TC 0x00 #define GY521_YG_OFFS...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-24 // PURPOSE: unit tests for the GY521 // https://github.com/RobTillaart/GY521 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci/blo...
#pragma once // // FILE: HC4051.h // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // VERSION: 0.3.1 // PURPOSE: Arduino library for CD74HC4051 1 x 8 channel multiplexer and compatibles. // URL: https://github.com/RobTillaart/HC4051 #include "Arduino.h" #define HC4051_LIB_VERSION (F("0.3.1")) class ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // PURPOSE: unit tests for the HC4051 sensor // https://github.com/RobTillaart/HC4067 // // supported assertions // ---------------------------- // assertEqual(expected, actual) // assertNotEqual(expected, actual) // assertLess(e...
#pragma once // // FILE: HC4052.h // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // VERSION: 0.2.2 // PURPOSE: Arduino library for HC4052 2 x 4 channel multiplexer and compatibles. // URL: https://github.com/RobTillaart/HC4052 #include "Arduino.h" #define HC4052_LIB_VERSION (F("0.2.2")) class HC405...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // PURPOSE: unit tests for the HC4052 sensor // https://github.com/RobTillaart/HC4067 // // supported assertions // ---------------------------- // assertEqual(expected, actual) // assertNotEqual(expected, actual) // assertLess(e...
#pragma once // // FILE: HC4053.h // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // VERSION: 0.2.2 // PURPOSE: Arduino library for CD74HC4053 8 channel multiplexer and compatibles. // URL: https://github.com/RobTillaart/HC4053 #include "Arduino.h" #define HC4053_LIB_VERSION (F("0.2.2")) class HC405...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // PURPOSE: unit tests for the HC4053 sensor // https://github.com/RobTillaart/HC4067 // // supported assertions // ---------------------------- // assertEqual(expected, actual) // assertNotEqual(expected, actual) // assertLess(e...
#pragma once // // FILE: HC4067.h // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // VERSION: 0.3.1 // PURPOSE: Arduino library for CD74HC4067 1 x 16 channel multiplexer and compatibles. // URL: https://github.com/RobTillaart/HC4067 #include "Arduino.h" #define HC4067_LIB_VERSION (F("0.3.1")) class...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2023-01-25 // PURPOSE: unit tests for the HC4067 sensor // https://github.com/RobTillaart/HC4067 // // supported assertions // ---------------------------- // assertEqual(expected, actual) // assertNotEqual(expected, actual) // assertLess(e...
// // FILE: HeartBeat.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.7 // PURPOSE: Arduino library for HeartBeat with frequency and dutyCycle // DATE: 2019-06-12 // URL: https://github.com/RobTillaart/HeartBeat #include "HeartBeat.h" HeartBeat::HeartBeat() { } void HeartBeat::begin(const uint8_t pin, floa...
#pragma once // // FILE: HeartBeat.h // AUTHOR: Rob Tillaart // VERSION: 0.3.7 // PURPOSE: Arduino library for HeartBeat with frequency and dutyCycle // DATE: 2019-06-12 // URL: https://github.com/RobTillaart/HeartBeat #include "Arduino.h" #define HEARTBEAT_LIB_VERSION (F("0.3.7")) class HeartBeat...
#pragma once // // FILE: Heart_Beat.h // AUTHOR: Rob Tillaart // PURPOSE: Arduino library for HeartBeat with frequency and dutyCycle // URL: https://github.com/RobTillaart/HeartBeat // wrapper include file with hard path for ESP32 Core V3.1.0 patch // see issue #15 #include "./HeartBeat.h" // -- END OF ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the HeartBeat // https://github.com/RobTillaart/HeartBeat // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // ---------------------------- // asse...
// // FILE: Histogram.cpp // AUTHOR: Rob Tillaart // DATE: 2012-11-10 // VERSION: 0.4.0 // PURPOSE: Histogram library for Arduino // URL: https://github.com/RobTillaart/Histogram #include "histogram.h" Histogram::Histogram(const uint16_t length, float *bounds) { _bounds = bounds; _length = length + 1...
#pragma once // // FILE: Histogram.h // AUTHOR: Rob Tillaart // DATE: 2012-11-10 // VERSION: 0.4.0 // PURPOSE: Histogram library for Arduino // URL: https://github.com/RobTillaart/Histogram #include "Arduino.h" #define HISTOGRAM_LIB_VERSION (F("0.4.0")) // return STATUS add(), sub(), clear(), set...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-03 // PURPOSE: unit tests for the Histogram // https://github.com/RobTillaart/Histogram // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduin...
// // FILE: hmc6352.cpp // AUTHOR: Rob Tillaart // VERSION: 0.4.1 // PURPOSE: Arduino library for HMC6352 digital compass sensor // URL: https://github.com/RobTillaart/HMC6352 #include "hmc6352.h" #define HMC_GET_DATA 0x41 #define HMC_WAKE 0x57 #define HMC_SLEEP 0x53 #define HMC_...
#pragma once // // FILE: hmc6352.h // AUTHOR: Rob Tillaart // VERSION: 0.4.1 // PURPOSE: HMC6352 library for Arduino // URL: https://github.com/RobTillaart/HMC6352 #include "Wire.h" #include "Arduino.h" #define HMC6352_LIB_VERSION (F("0.4.1")) // status function calls #define HMC6532_OK...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-28 // PURPOSE: unit tests for the HMC6352 library // https://github.com/RobTillaart/HMC6352 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/ar...
// // FILE: HT16K33.cpp // AUTHOR: Rob Tillaart // VERSION: 0.4.2 // DATE: 2019-02-07 // PURPOSE: Arduino Library for HT16K33 4x7segment display // URL: https://github.com/RobTillaart/HT16K33 #include "HT16K33.h" // Commands #define HT16K33_ON 0x21 // 0 = off 1 = on #define HT16K33_STAN...
#pragma once // // FILE: HT16K33.h // AUTHOR: Rob Tillaart // VERSION: 0.4.2 // DATE: 2019-02-07 // PURPOSE: Arduino Library for HT16K33 4x7segment display // http://www.adafruit.com/products/1002 // URL: https://github.com/RobTillaart/HT16K33.git #include "Arduino.h" #include "Wire.h" #define H...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-28 // PURPOSE: unit tests for the HT16K33 // https://github.com/RobTillaart/HT16K33 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/arduino_ci...
#pragma once // // FILE: HX710AB.h // AUTHOR: Rob Tillaart // VERSION: 0.2.2 // PURPOSE: Arduino library for the HX710A and HX710B 24-Bit ADC. // DATE: 2024-11-08 // URL: https://github.com/RobTillaart/HX710AB // URL: https://github.com/RobTillaart/HX711_MP // URL: https://github.com/RobTillaart/HX71...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2024-11-08 // PURPOSE: unit tests for the HX710 A/B library // URL: https://github.com/RobTillaart/HX710AB // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-CI/...
// // FILE: HX711.cpp // AUTHOR: Rob Tillaart // VERSION: 0.6.3 // PURPOSE: Library for load cells for UNO // URL: https://github.com/RobTillaart/HX711_MP // URL: https://github.com/RobTillaart/HX711 #include "HX711.h" HX711::HX711() { _offset = 0; _scale = 1; _gain = HX711_CHANNEL_A_GAIN...
#pragma once // // FILE: HX711.h // AUTHOR: Rob Tillaart // VERSION: 0.6.3 // PURPOSE: Library for load cells for Arduino // URL: https://github.com/RobTillaart/HX711_MP // URL: https://github.com/RobTillaart/HX711 // // NOTES // Superset of interface of HX711 class of Bogde // uses float instead of long...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-28 // PURPOSE: unit tests for the HX711 library (24 bit ADC for loadcells) // https://github.com/RobTillaart/HX711 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://g...
// // FILE: HX711_MP.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.4 // PURPOSE: Library for load cells for UNO // URL: https://github.com/RobTillaart/HX711_MP // URL: https://github.com/RobTillaart/HX711 #include "HX711_MP.h" HX711_MP::HX711_MP(uint8_t size) { _size = size; if (_size >= HX711_MP_MAX_...
#pragma once // // FILE: HX711_MP.h // AUTHOR: Rob Tillaart // VERSION: 0.3.4 // PURPOSE: Library for load cells for Arduino // URL: https://github.com/RobTillaart/HX711_MP // URL: https://github.com/RobTillaart/HX711 // // NOTES // Superset of interface of HX711 class of Bogde // uses float instead of l...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-28 // PURPOSE: unit tests for the HX711 library (24 bit ADC for loadcells) // https://github.com/RobTillaart/HX711 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://g...
// // FILE: I2CKeyPad.cpp // AUTHOR: Rob Tillaart // VERSION: 0.5.0 // PURPOSE: Arduino library for 4x4 KeyPad connected to an I2C PCF8574 // URL: https://github.com/RobTillaart/I2CKeyPad #include "I2CKeyPad.h" I2CKeyPad::I2CKeyPad(const uint8_t deviceAddress, TwoWire *wire) { _lastKey = I2C_KEYPAD_NOKEY;...
#pragma once // // FILE: I2CKeyPad.h // AUTHOR: Rob Tillaart // VERSION: 0.5.1 // PURPOSE: Arduino library for 4x4 KeyPad connected to an I2C PCF8574 // URL: https://github.com/RobTillaart/I2CKeyPad #include "Arduino.h" #include "Wire.h" #define I2C_KEYPAD_LIB_VERSION (F("0.5.1")) #define I2C_KEYPAD_NOK...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2020-12-27 // PURPOSE: unit tests for the I2CKeyPad library // https://github.com/RobTillaart/I2CKeyPad // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Arduino-C...
// // FILE: I2CKeyPad8x8.cpp // AUTHOR: Rob Tillaart // VERSION: 0.3.2 // PURPOSE: Arduino library for 8x8 or smaller KeyPad connected to an I2C PCF8575. // URL: https://github.com/RobTillaart/I2CKeyPad8x8 #include "I2CKeyPad8x8.h" I2CKeyPad8x8::I2CKeyPad8x8(const uint8_t deviceAddress, TwoWire *wire) { _...
#pragma once // // FILE: I2CKeyPad8x8.h // AUTHOR: Rob Tillaart // VERSION: 0.3.2 // PURPOSE: Arduino library for 8x8 or smaller KeyPad connected to an I2C PCF8575. // URL: https://github.com/RobTillaart/I2CKeyPad #include "Arduino.h" #include "Wire.h" #define I2C_KEYPAD8x8_LIB_VERSION (F("0.3.2")) ...
// // FILE: unit_test_001.cpp // AUTHOR: Rob Tillaart // DATE: 2022-09-28 // PURPOSE: unit tests for the I2CKeyPad8x8 library // https://github.com/RobTillaart/I2CKeyPad8x8 // https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md // // supported assertions // https://github.com/Ard...