SC-F001 way better logging and parameters. not integrated yet but.

This commit is contained in:
Thaddeus Hughes
2025-12-13 10:57:09 -06:00
commit ac030005c3
505 changed files with 174645 additions and 0 deletions

23
main/i2c.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef I2C_H_
#define I2C_H_
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
// Public Functions
esp_err_t i2cdev_init(void);
esp_err_t i2c_set_relays(uint8_t states);
esp_err_t i2c_set_led1(uint8_t state);
esp_err_t i2c_poll_buttons();
bool i2c_get_button_tripped(uint8_t button);
bool i2c_get_button_released(uint8_t button);
bool i2c_get_button_state(uint8_t button);
bool i2c_get_button_repeat(uint8_t btn);
int8_t i2c_get_button_repeats(uint8_t btn);
int64_t i2c_get_button_ms(uint8_t btn);
#endif // I2C_H_