text stringlengths 1 24.5M |
|---|
#pragma once
//
// FILE: DAC53001.h
// AUTHOR: Rob Tillaart
// DATE: 2025-02-12
// VERSION: 0.1.0
// PURPOSE: Arduino library for I2C DAC53001 10 bit DAC.
// URL: https://github.com/RobTillaart/DAC53001
//
// Connections see datasheet chapter 5 Pin Configuration and Functions
#include "Arduino.h"
#include... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-02-12
// PURPOSE: unit tests for the I2C DAC53001
// https://github.com/RobTillaart/DAC53001
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// as... |
//
// FILE: DAC8550.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
// VERSION: 0.3.1
// DATE: 2021-02-04
// URL: https://github.com/RobTillaart/DAC8550
#include "DAC8550.h"
DAC8550::DAC8550(uint8_t select, __SPI_CLASS__ * spi)
{
_select = select;
_da... |
#pragma once
//
// FILE: DAC8550.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8550 SPI Digital Analog Convertor
// VERSION: 0.3.1
// DATE: 2021-02-04
// URL: https://github.com/RobTillaart/DAC8550
#include "Arduino.h"
#include "SPI.h"
#define DAC8550_LIB_VERSION (F("0.3.1"))
... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-02-04
// PURPOSE: unit tests for the DAC8550
// https://github.com/RobTillaart/DAC8550
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// assertEq... |
//
// FILE: DAC8551.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8551 SPI Digital Analog Convertor
// VERSION: 0.4.2
// URL: https://github.com/RobTillaart/DAC8551
#include "DAC8551.h"
DAC8551::DAC8551(uint8_t select, __SPI_CLASS__ * spi)
{
_select = select;
_dataOut = 255;
_clock ... |
#pragma once
//
// FILE: DAC8551.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8551 SPI Digital Analog Convertor
// could work with DAC8550, not tested
// VERSION: 0.4.2
// HISTORY: See DAC8551.cpp
// URL: https://github.com/RobTillaart/DAC8551
//
#include "Arduino.h"
#include "SPI.h"
... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the DAC8551
// https://github.com/RobTillaart/
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci/blob/m... |
//
// FILE: DAC8552.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8552 SPI Digital Analog Convertor
// VERSION: 0.5.1
// DATE: 2017-12-14
// URL: https://github.com/RobTillaart/DAC8552
#include "DAC8552.h"
DAC8552::DAC8552(uint8_t select, __SPI_CLASS__ * spi)
{
_select = select;
_d... |
#pragma once
//
// FILE: DAC8552.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8552 SPI Digital Analog Convertor
// VERSION: 0.5.1
// DATE: 2017-12-14
// URL: https://github.com/RobTillaart/DAC8552
#include "Arduino.h"
#include "SPI.h"
#define DAC8552_LIB_VERSION (F("0.5.1"))
... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the DAC8552
// https://github.com/RobTillaart/
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci/blob/m... |
//
// FILE: DAC8554.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
// VERSION: 0.4.2
// DATE: 2017-12-19
// URL: https://github.com/RobTillaart/DAC8554
#include "DAC8554.h"
#define DAC8554_BUFFER_WRITE 0x00
#define DAC8554_SINGLE_WRITE 0... |
#pragma once
//
// FILE: DAC8554.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8554 SPI Digital Analog Convertor
// VERSION: 0.4.2
// DATE: 2017-12-19
// URL: https://github.com/RobTillaart/DAC8554
//
#include "Arduino.h"
#include "SPI.h"
#define DAC8554_LIB_VERSION (F(... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the DAC8554
// https://github.com/RobTillaart/
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci/blob/m... |
//
// FILE: DAC8560.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8560 SPI Digital Analog Convertor
// VERSION: 0.1.1
// URL: https://github.com/RobTillaart/DAC8560
#include "DAC8560.h"
DAC8560::DAC8560(uint8_t select, __SPI_CLASS__ * spi)
{
_select = select;
_dataOut = 255;
_clock ... |
#pragma once
//
// FILE: DAC8560.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DAC8560 SPI Digital Analog Convertor
// could work with DAC8550, not tested
// VERSION: 0.1.1
// HISTORY: See DAC8560.cpp
// URL: https://github.com/RobTillaart/DAC8560
//
#include "Arduino.h"
#include "SPI.h"
... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2024-10-26
// PURPOSE: unit tests for the DAC8560
// https://github.com/RobTillaart/
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci/blob/m... |
//
// FILE: DAC8571.cpp
// AUTHOR: Rob Tillaart
// DATE: 2024-04-16
// VERSION: 0.1.2
// PURPOSE: Arduino library for DAC8571 I2C.
// URL: https://github.com/RobTillaart/DAC8571
#include "DAC8571.h"
// INTERNAL USE ONLY
#define DAC8571_DAC_FLAG 0x40
#define DAC8571_INCR_FLAG ... |
#pragma once
//
// FILE: DAC8571.h
// AUTHOR: Rob Tillaart
// DATE: 2024-04-16
// VERSION: 0.1.2
// PURPOSE: Arduino library for DAC8571 I2C 16 bit DAC.
// URL: https://github.com/RobTillaart/DAC8571
#include "Arduino.h"
#include "Wire.h"
#define DAC8571_LIB_VERSION (F("0.1.2"))
// ERROR CODES
#... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-01-01
// PURPOSE: unit tests for the I2C DAC8571 library
// https://github.com/RobTillaart/DAC8571
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------... |
//
// FILE: DAC8574.cpp
// AUTHOR: Rob Tillaart
// DATE: 2024-11-11
// VERSION: 0.1.1
// PURPOSE: Arduino library for DAC8574, I2C, 4 channel, 16 bit DAC.
// URL: https://github.com/RobTillaart/DAC8574
#include "DAC8574.h"
// INTERNAL USE ONLY
#define DAC8574_DAC_FLAG 0x40
#define DAC8574... |
#pragma once
//
// FILE: DAC8574.h
// AUTHOR: Rob Tillaart
// DATE: 2024-11-11
// VERSION: 0.1.1
// PURPOSE: Arduino library for DAC8574, I2C, 4 channel, 16 bit DAC.
// URL: https://github.com/RobTillaart/DAC8574
#include "Arduino.h"
#include "Wire.h"
#define DAC8574_LIB_VERSION (F("0.1.1"))
// ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-01-01
// PURPOSE: unit tests for the I2C DAC8574 library
// https://github.com/RobTillaart/DAC8574
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------... |
#pragma once
//
// FILE: DAMM.h
// AUTHOR: Rob Tillaart
// DATE: 2025-00-00
// VERSION: 0.2.0
// PURPOSE: Arduino library for calculating DAMM checksum.
// URL: https://github.com/RobTillaart/DAMM
// URL: https://en.wikipedia.org/wiki/Damm_algorithm
//
#include "Arduino.h"
#define DAMM_LIB_VERSION ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-10-28
// PURPOSE: unit tests for the DAMM library
// URL: https://github.com/RobTillaart/DAMM
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_... |
#pragma once
//
// FILE: datetimeHelpers.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.4
// PURPOSE: Arduino library with date time helper functions.
// DATE: 2020-07-01
// URL: https://github.com/RobTillaart/dateTimeHelpers
#include "Arduino.h"
#define DATETIMEHELPER_LIB_VERSION (F("0.1.4"))
#define S... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-12-01
// PURPOSE: unit tests for the dateTimeHelper functions
// https://github.com/RobTillaart/dateTimeHelpers
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ---------------... |
//
// FILE: DCT532.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-06-03
// VERSION: 0.1.0
// PURPOSE: Arduino library for DCT532
// URL: https://github.com/RobTillaart/DCT532
#include "DCT532.h"
DCT532::DCT532(uint8_t address, TwoWire *wire)
{
_address = address;
_wire = wire;
_error = DCT532_OK;
_la... |
#pragma once
//
// FILE: DCT532.h
// AUTHOR: Rob Tillaart
// DATE: 2025-06-03
// VERSION: 0.1.0
// PURPOSE: Arduino library for
// URL: https://github.com/RobTillaart/DCT532
// https://forum.arduino.cc/t/i2c-industrial-pressure-sensor-dct-532-with-arduino-uno-advice-required/1385075/11
//
// TODO: ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-xx-xx
// PURPOSE: unit tests for the DCT532 library
// URL: https://github.com/RobTillaart/DCT532
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/ardu... |
#pragma once
//
// FILE: decibel.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// DATE: 2022-12-19
// PURPOSE: fast decibel function
// URL: https://github.com/RobTillaart/decibel
#ifdef ESP_PLATFORM
#include <math.h>
#include <stdint.h>
#include <stdbool.h>
#else
#include "Arduino.h"
#endif
#define DECIBE... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-03-24
// PURPOSE: unit tests for the decibel library
// URL: https://github.com/RobTillaart/decibel
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/ar... |
#pragma once
//
// FILE: DEVFULL.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.4
// PURPOSE: Arduino library for a /dev/full stream - useful for testing / debugging.
// URL: https://github.com/RobTillaart/DEVFULL
#include "Arduino.h"
#include "limits.h"
#define DEVFULL_LIB_VERSION (F("0.1.4"))
// ERROR N... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-03-11
// PURPOSE: unit tests for the DEVFULL library
// https://github.com/RobTillaart/DEVFULL
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/ar... |
//
// FILE: DEVNULL.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.7
// PURPOSE: Arduino library for a /dev/null stream - useful for testing
// URL: https://github.com/RobTillaart/DEVNULL
#include "DEVNULL.h"
DEVNULL::DEVNULL()
{
setTimeout(0); // no timeout.
_bottomLessPit = -1; // nothing in th... |
#pragma once
//
// FILE: DEVNULL.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.7
// PURPOSE: Arduino library for a /dev/null stream - useful for testing
// URL: https://github.com/RobTillaart/DEVNULL
#include "Arduino.h"
#define DEVNULL_LIB_VERSION (F("0.1.7"))
class DEVNULL : public Stream
{
public:
DEV... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-18
// PURPOSE: unit tests for the DEVNULL library
// https://github.com/RobTillaart/
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_c... |
//
// FILE: DEVRANDOM.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.3
// PURPOSE: Arduino library for a /dev/random stream - useful for testing
// URL: https://github.com/RobTillaart/DEVRANDOM
#include "DEVRANDOM.h"
DEVRANDOM::DEVRANDOM()
{
_next = _rnd();
}
DEVRANDOM::DEVRANDOM(const char * str)
{
this... |
#pragma once
//
// FILE: DEVRANDOM.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.3
// PURPOSE: Arduino library for a /dev/random stream - useful for testing
// URL: https://github.com/RobTillaart/DEVRANDOM
#include "Arduino.h"
#define DEVRANDOM_LIB_VERSION (F("0.2.3"))
#define DEVRANDOM_MODE_RANDOM ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-18
// PURPOSE: unit tests for the DEVRANDOM library
// https://github.com/RobTillaart/DEVRANDOM
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-C... |
//
// FILE: DHT12.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.5.1
// PURPOSE: Arduino library for I2C DHT12 temperature and humidity sensor.
// URL: https://github.com/RobTillaart/DHT12
#include "DHT12.h"
// fixed address
#define DHT12_ADDRESS ((uint8_t)0x5C)
DHT12::DHT12(TwoWire *wire)
{
_wire ... |
#pragma once
//
// FILE: DHT12.h
// AUTHOR: Rob Tillaart
// VERSION: 0.5.1
// PURPOSE: Arduino library for I2C DHT12 temperature and humidity sensor.
// URL: https://github.com/RobTillaart/DHT12
#include "Arduino.h"
#include "Wire.h"
#define DHT12_LIB_VERSION (F("0.5.1"))
#define DHT12_OK... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-19
// PURPOSE: unit tests for the DHT12 library
// https://github.com/RobTillaart/DHT12
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduin... |
//
// FILE: DHT20.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.1
// PURPOSE: Arduino library for DHT20 I2C temperature and humidity sensor.
#include "DHT20.h"
// set DHT20_WIRE_TIME_OUT to 0 to disable.
// note this timeout is commented in code below.
#define DHT20_WIRE_TIME_OUT 250000 // microseco... |
#pragma once
//
// FILE: DHT20.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DHT20 I2C temperature and humidity sensor.
// VERSION: 0.3.1
// URL: https://github.com/RobTillaart/DHT20
//
// Always check datasheet - front view
//
// +--------------+
// VDD ----| 1 |
// SDA ----... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-01-11
// PURPOSE: unit tests for the DHT20 library
// https://github.com/RobTillaart/DHT20
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduin... |
//
// FILE: DHT2pin.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.2
// PURPOSE: Experimental DHT _temperature & _humidiy Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHT2pin
// http://arduino.cc/playground/Main/DHTLib
#include "DHT2pin.h"
/////////////////////////////////////////... |
#pragma once
//
// FILE: dht2pin.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.2
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHT2pin
// http://arduino.cc/playground/Main/DHTLib
#include <Arduino.h>
#define DHT2PIN_LIB_VERSION (F... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the DHT2pin library
// https://github.com/RobTillaart/dht2pin
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/ar... |
//
// FILE: dhtint.cpp
// AUTHOR: Rob.Tillaart
// VERSION: 0.1.5
// PURPOSE: Arduino library for DHT sensors - integer only
// URL: https://github.com/RobTillaart/DHTINT
//
// HISTORY: see changelog.md
#include "dhtint.h"
#include <stdint.h>
// these defines are not for user to adjust
#define DHTLIB_DHT11... |
#pragma once
//
// FILE: dhtint.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.5
// PURPOSE: Arduino library for DHT sensors - integer only
// URL: https://github.com/RobTillaart/DHTINT
//
// DHT PIN layout from left to right
// =================================
// FRONT : DESCRIPTION
// pin 1 : VCC
// ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-05-08
// PURPOSE: unit tests for the DHT temperature and humidity sensor
// https://github.com/RobTillaart/DHTINT
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// -------------... |
//
// FILE: dht.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.37
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino, AVR optimized
// URL: https://github.com/RobTillaart/DHTlib
// http://arduino.cc/playground/Main/DHTLib
//
// inspired by DHT11 library
#include "dht.h"
#define DHTLIB_... |
#pragma once
//
// FILE: dht.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.37
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino. AVR optimized
// URL: https://github.com/RobTillaart/DHTlib
// http://arduino.cc/playground/Main/DHTLib
#if ARDUINO < 100
#include <WProgram.h>
#include <pins_a... |
//
// FILE: dhtnew.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.5.4
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHTNEW
//
// HISTORY: see changelog.md
#include "dhtnew.h"
#include <stdint.h>
// these defines are not for user to adjust (microseconds... |
#pragma once
//
// FILE: dhtnew.h
// AUTHOR: Rob Tillaart
// VERSION: 0.5.4
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHTNEW
//
// DHT PIN layout from left to right
// =================================
// FRONT : DESCRIPTION
// pin 1 : VCC
/... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the DHT temperature and humidity sensor
// https://github.com/RobTillaart/DHTNew
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// -------------... |
//
// FILE: DHTStable.cpp
// AUTHOR: Rob Tillaart
// VERSION: 1.1.3
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHTstable
#include "DHTStable.h"
/////////////////////////////////////////////////////
//
// PUBLIC
//
DHTStable::DHTStable()
{
rese... |
#pragma once
//
// FILE: DHTStable.h
// AUTHOR: Rob Tillaart
// VERSION: 1.1.3
// PURPOSE: DHT Temperature & Humidity Sensor library for Arduino
// URL: https://github.com/RobTillaart/DHTstable
#include "Arduino.h"
#define DHTSTABLE_LIB_VERSION (F("1.1.3 - DHTStable"))
const int DHTLIB_OK ... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-20
// PURPOSE: unit tests for the DHT temperature and humidity sensor
// https://github.com/RobTillaart/DHTstable
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------... |
//
// FILE: DistanceTable.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.4
// PURPOSE: Arduino library to store a symmetrical distance table in less memory
// URL: https://github.com/RobTillaart/DistanceTable
#include "DistanceTable.h"
DistanceTable::DistanceTable(uint8_t dimension, float value)
{
// ATMEL ... |
#pragma once
//
// FILE: DistanceTable.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.4
// PURPOSE: Arduino library to store a symmetrical distance table in less memory
// URL: https://github.com/RobTillaart/DistanceTable
//
#include "Arduino.h"
#define DISTANCETABLE_LIB_VERSION (F("0.3.4"))
class Distance... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-20
// PURPOSE: unit tests for the DistanceTable library
// https://github.com/RobTillaart/DistanceTable
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// --------------------... |
//
// FILE: DMM.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.4
// DATE: 2022-12-19
// PURPOSE: Library for a DMM class for Arduino UNO.
// URL: https://github.com/RobTillaart/DMM
#include "DMM.h"
DMM::DMM()
{
}
void DMM::begin(uint8_t pin, float maxVoltage, uint16_t maxSteps)
{
_pin = pin;
_... |
#pragma once
//
// FILE: DMM.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.4
// DATE: 2022-12-19
// PURPOSE: Library for a DMM class for Arduino.
// URL: https://github.com/RobTillaart/DMM
#include "Arduino.h"
#define DMM_LIB_VERSION (F("0.1.4"))
class DMM
{
public:
DMM();
void begin(uint8_t pin... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-12-19
// PURPOSE: unit tests for DMM class
// https://github.com/RobTillaart/DMM
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// assertEqual(ex... |
//
// FILE: DRV8825.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.0
// PURPOSE: Arduino library for DRV8825 stepper motor driver
// DATE: 2022-07-07
// URL: https://github.com/RobTillaart/DRV8825
#include "DRV8825.h"
DRV8825::DRV8825()
{
}
bool DRV8825::begin(uint8_t DIR, uint8_t STEP, uint8_t EN, uint8_... |
#pragma once
//
// FILE: DRV8825.h
// AUTHOR: Rob Tillaart
// VERSION: 0.2.1
// PURPOSE: Arduino library for DRV8825 stepper motor driver
// DATE: 2022-07-07
// URL: https://github.com/RobTillaart/DRV8825
#include "Arduino.h"
#define DRV8825_LIB_VERSION (F("0.2.1"))
// to set direction of... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-07-08
// PURPOSE: unit tests for the DRV8825 library
// https://github.com/RobTillaart/DRV8825
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// ... |
#pragma once
//
// FILE: DS1804.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.0
// PURPOSE: Arduino library for DS1804 Nonvolatile Trimmer Potentiometer.
// URL: https://github.com/RobTillaart/DS1804
#include "Arduino.h"
#define DS1804_LIB_VERSION (F("0.1.0"))
class DS1804
{
public:
DS1804(uint... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2024-11-11
// PURPOSE: unit tests for the DS1804 library
// https://github.com/RobTillaart/DS1804
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/ardu... |
//
// FILE: DS1821.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.3.6
// DATE: 2014-10-05
// PURPOSE: Arduino library for DS1821 temperature sensor
// URL: https://github.com/RobTillaart/DS1821
#include "DS1821.h"
// CONFIG REGISTER MASKS. P7-8 datasheet
#define DS1821_CONF_1SHOT 0x01
#define DS1821_CON... |
#pragma once
//
// FILE: DS1821.h
// AUTHOR: Rob Tillaart
// VERSION: 0.3.7
// DATE: 2014-10-05
// PURPOSE: Arduino library for DS1821 temperature sensor
// URL: https://github.com/RobTillaart/DS1821
//
//
// BOTTOM VIEW
//
// PIN MEANING
// /---+
// / o | 1 G... |
//
// FILE: DS18B20_INT.cpp
// AUTHOR: Rob.Tillaart
// VERSION: 0.3.3
// DATE: 2017-07-25
// PURPOSE: library for DS18B20 temperature sensor - integer only.
// URL: https://github.com/RobTillaart/DS18B20_INT
// https://github.com/RobTillaart/DS18B20_RT
#include "DS18B20_INT.h"
// OneWire comman... |
#pragma once
//
// FILE: DS18B20_INT.h
// AUTHOR: Rob.Tillaart
// VERSION: 0.3.3
// DATE: 2017-07-25
// PURPOSE: Minimalistic library for DS18B20 temperature sensor
// uses only integer math (no float to minimize footprint)
// URL: https://github.com/RobTillaart/DS18B20_INT
// https://githu... |
//
// FILE: DS18B20.cpp
// AUTHOR: Rob.Tillaart
// VERSION: 0.2.4
// DATE: 2017-07-25
// PURPOSE: library for DS18B20 temperature sensor with minimal footprint
// URL: https://github.com/RobTillaart/DS18B20_RT
// https://github.com/RobTillaart/DS18B20_INT
#include "DS18B20.h"
// OneWire command... |
#pragma once
//
// FILE: DS18B20.h
// AUTHOR: Rob.Tillaart
// VERSION: 0.2.4
// DATE: 2017-07-25
// PURPOSE: library for DS18B20 temperature sensor with minimal footprint
// URL: https://github.com/RobTillaart/DS18B20_RT
//
// BOTTOM VIEW
//
// PIN MEANING
// /---+
//... |
#pragma once
//
// FILE: DS2401.h
// AUTHOR: Rob Tillaart
// PURPOSE: Library for the DS2401 1-wire unique identification chip.
// VERSION: 0.1.2
// URL: https://github.com/RobTillaart/DS2401
#include "Arduino.h"
#include "OneWire.h"
#define DS2401_LIB_VERSION (F("0.1.2"))
class DS2401
{
public... |
//
// FILE: DS2438.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// DATE: 2023-07-28
// PURPOSE: Arduino Library for DS2438 battery monitor
// URL: https://github.com/RobTillaart/DS2438
#include "DS2438.h"
// OneWire commands
#define DS2438_READ_TEMPERATURE 0x44
#define DS2438_READ_VOLTAGE ... |
#pragma once
//
// FILE: DS2438.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.1
// DATE: 2023-07-28
// PURPOSE: Arduino Library for DS2438 battery monitor
// URL: https://github.com/RobTillaart/DS2438
//
// DS2438
// +------------------+
// | 1 GND |
// ... |
//
// FILE: DS28CM00.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Library for the DS28CM00 unique identification chip.
// VERSION: 0.4.1
// DATE: 2017-07-15
// URL: https://github.com/RobTillaart/DS28CM00
#include "DS28CM00.h"
#define DS28CM00_DEVICE_ADDRESS 0x50
#define DS28CM00_UID_REGISTER 0x00... |
#pragma once
//
// FILE: DS28CM00.h
// AUTHOR: Rob Tillaart
// PURPOSE: Library for the DS28CM00 unique identification chip.
// VERSION: 0.4.1
// DATE: 2017-07-15
// URL: https://github.com/RobTillaart/DS28CM00
#include "Arduino.h"
#include "Wire.h"
#define DS28CM00_LIB_VERSION (F("0.4.1"))
#d... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-20
// PURPOSE: unit tests for the DS28CM00
// https://github.com/RobTillaart/DS28CM00
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_... |
//
// FILE: DS3232.cpp
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DS3232 RTC (minimalistic)
// VERSION: 0.6.0
// DATE: 2011-01-21
// URL: https://github.com/RobTillaart/DS3232
#include "DS3232.h"
/////////////////////////////////////////////////////////
//
// CONSTRUCTOR
//
DS3231::DS3231(T... |
#pragma once
//
// FILE: DS3232.h
// AUTHOR: Rob Tillaart
// PURPOSE: Arduino library for DS3232 RTC (minimalistic)
// VERSION: 0.6.0
// DATE: 2011-01-21
// URL: https://github.com/RobTillaart/DS3232
#include "Arduino.h"
#include "Wire.h"
#define DS3232_LIB_VERSION "0.6.0"
// ERROR CODES
#defi... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2024-02-04
// PURPOSE: unit tests for the DS3232 RTC
// https://github.com/RobTillaart/DS3232
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// assert... |
//
// FILE: ellipse.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-10-31
// VERSION: 0.2.0
// PURPOSE: Arduino library for ellipse maths
// URL: https://github.com/RobTillaart/ellipse
// TRIGGER: https://www.youtube.com/watch?v=5nW3nJhBHL0
#include "ellipse.h"
ellipse::ellipse(float a, float b)
{
_a = abs(a... |
#pragma once
//
// FILE: ellipse.h
// AUTHOR: Rob Tillaart
// DATE: 2021-10-31
// VERSION: 0.2.0
// PURPOSE: Arduino library for ellipse maths
// URL: https://github.com/RobTillaart/ellipse
#include "Arduino.h"
#define ELLIPSE_LIB_VERSION (F("0.2.0"))
class ellipse
{
public:
ellipse(float a,... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-10-31
// PURPOSE: unit tests for the ellipse
// https://github.com/RobTillaart/ellipse
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci... |
//
// FILE: ERCFS.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// PURPOSE: Arduino library for SPI based ERCFS rotary encoder.
// DATE: 2025-02-08
// URL: https://github.com/RobTillaart/ERCFS
#include "ERCFS.h"
// HARDWARE SPI
ERCFS::ERCFS(uint8_t select, __SPI_CLASS__ * mySPI)
{
_select = select;
... |
#pragma once
//
// FILE: ERCFS.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// PURPOSE: Arduino library for SPI based ERCFS rotary encoder.
// DATE: 2025-02-08
// URL: https://github.com/RobTillaart/ERCFS
// https://p3america.com/ercf-1-05spi-360-z/
//
// 16384 steps rotary encoder 14 bit 3... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2025-02-08
// PURPOSE: unit tests for the ERCFS rotary encoder
// https://github.com/RobTillaart/ERCFS
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
... |
//
// FILE: FastMap.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.4.2
// PURPOSE: class with fast map function - library for Arduino
// URL: https://github.com/RobTillaart/FastMap
#include "FastMap.h"
///////////////////////////////////////////////////////////////
//
// FASTMAP
//
FastMap::FastMap()
{
init(0... |
#pragma once
//
// FILE: FastMap.h
// AUTHOR: Rob Tillaart
// VERSION: 0.4.2
// PURPOSE: class with fast map function - library for Arduino
// URL: https://github.com/RobTillaart/FastMap
#include "Arduino.h"
#define FASTMAP_LIB_VERSION (F("0.4.2"))
class FastMap
{
public:
FastMap();
bool ini... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-21
// PURPOSE: unit tests for the FastMap
// https://github.com/RobTillaart/FastMap
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Arduino-CI/arduino_ci... |
//
// FILE: FastShiftIn.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.4.1
// PURPOSE: Fast ShiftIn for 74HC165 register, AVR optimized
// DATE: 2013-09-29
// URL: https://github.com/RobTillaart/FastShiftIn
#include "FastShiftIn.h"
FastShiftIn::FastShiftIn(uint8_t dataIn, uint8_t clockPin, uint8_t bitOrder)
{... |
#pragma once
//
// FILE: FastShiftIn.h
// AUTHOR: Rob Tillaart
// VERSION: 0.4.1
// PURPOSE: Fast ShiftIn for 74HC165 register, AVR optimized
// DATE: 2013-09-29
// URL: https://github.com/RobTillaart/FastShiftIn
#include "Arduino.h"
#define FASTSHIFTIN_LIB_VERSION (F("0.4.1"))
// uncomment nex... |
//
// FILE: unit_test_001.cpp
// AUTHOR: Rob Tillaart
// DATE: 2020-12-03
// PURPOSE: unit tests for the FastShiftIn library
// https://github.com/RobTillaart/FastShiftIn
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// https://github.com/Ardui... |
//
// FILE: FastShiftInOut.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.2
// PURPOSE: Arduino library for (AVR) optimized shiftInOut (simultaneously)
// URL: https://github.com/RobTillaart/FastShiftInOut
#include "FastShiftInOut.h"
FastShiftInOut::FastShiftInOut(uint8_t dataIn, uint8_t dataOut, uint8_t clock... |
#pragma once
//
// FILE: FastShiftInOut.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.2.2
// PURPOSE: Arduino library for (AVR) optimized shiftInOut (simultaneously)
// URL: https://github.com/RobTillaart/FastShiftInOut
#include "Arduino.h"
#define FASTSHIFTINOUT_LIB_VERSION (F("0.2.2"))
// uncomment n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.