I2Cwrapper v0.4.0
Generic framework for Arduino I2C target devices
ESP32sensorsI2C.h File Reference

Arduino library for I2C-control of touch buttons and hall sensors of an ESP32 which runs the associated firmware.ino firmware. More...

Detailed Description

Arduino library for I2C-control of touch buttons and hall sensors of an ESP32 which runs the associated firmware.ino firmware.

Author

Copyright (c) 2022 juh

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

Classes

class  ESP32sensorsI2C
 An I2C wrapper class for ESP32 sensors (touch, temp, hall). More...
 

Macros

#define log(...)
 

Variables

const uint8_t ESP32sensorsCmdOffset = 70
 
const uint8_t ESP32sensorsTouchSetCyclesCmd = ESP32sensorsCmdOffset + 0
 
const uint8_t ESP32sensorsTouchReadCmd = ESP32sensorsCmdOffset + 1
 
const uint8_t ESP32sensorsTouchReadResult = 2
 
const uint8_t ESP32sensorsEnableInterruptsCmd = ESP32sensorsCmdOffset + 2
 
const uint8_t ESP32sensorsHallReadCmd = ESP32sensorsCmdOffset + 3
 
const uint8_t ESP32sensorsHallReadResult = 2
 
const uint8_t ESP32sensorsTemperatureReadCmd = ESP32sensorsCmdOffset + 4
 
const uint8_t ESP32sensorsTemperatureReadResult = 4
 
const uint8_t interruptReason_ESP32sensorsTouch = 4
 

Macro Definition Documentation

◆ log

#define log (   ...)

Variable Documentation

◆ ESP32sensorsCmdOffset

const uint8_t ESP32sensorsCmdOffset = 70

◆ ESP32sensorsEnableInterruptsCmd

const uint8_t ESP32sensorsEnableInterruptsCmd = ESP32sensorsCmdOffset + 2

◆ ESP32sensorsHallReadCmd

const uint8_t ESP32sensorsHallReadCmd = ESP32sensorsCmdOffset + 3

◆ ESP32sensorsHallReadResult

const uint8_t ESP32sensorsHallReadResult = 2

◆ ESP32sensorsTemperatureReadCmd

const uint8_t ESP32sensorsTemperatureReadCmd = ESP32sensorsCmdOffset + 4

◆ ESP32sensorsTemperatureReadResult

const uint8_t ESP32sensorsTemperatureReadResult = 4

◆ ESP32sensorsTouchReadCmd

const uint8_t ESP32sensorsTouchReadCmd = ESP32sensorsCmdOffset + 1

◆ ESP32sensorsTouchReadResult

const uint8_t ESP32sensorsTouchReadResult = 2

◆ ESP32sensorsTouchSetCyclesCmd

const uint8_t ESP32sensorsTouchSetCyclesCmd = ESP32sensorsCmdOffset + 0