unPhone implementation and more (#169)
- Implemented [unPhone](https://unphone.net/) v9 board - Updated `.clang-format` to better reflect the intended code style - Fix SD card compatibility issues for all boards (frequency wasn't set well) - Moved `I2cDevice` class from CoreS3 board project to TactilityHeadless project - Tactility configuration now has default empty lists for apps and services fields - Fix for Launcher app: we don't need padding when showing it vertically - Fix for I2cDevice read/write calls that checked for `esp_err_t` instead of `bool` - Fix for TinyUSB init that checked for `esp_err_t` instead of `bool`
This commit is contained in:
committed by
GitHub
parent
3ea02d912f
commit
72230129bb
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "hal/i2c/I2cDevice.h"
|
||||
|
||||
#define BQ24295_ADDRESS 0x6BU
|
||||
|
||||
class Bq24295 : I2cDevice {
|
||||
|
||||
public:
|
||||
|
||||
explicit Bq24295(i2c_port_t port) : I2cDevice(port, BQ24295_ADDRESS) {}
|
||||
|
||||
bool getWatchDog(uint8_t value) const;
|
||||
bool setWatchDogBitOn(uint8_t mask) const;
|
||||
bool setWatchDogBitOff(uint8_t mask) const;
|
||||
|
||||
bool getOperationControl(uint8_t value) const;
|
||||
bool setOperationControlBitOn(uint8_t mask) const;
|
||||
bool setOperationControlBitOff(uint8_t mask) const;
|
||||
|
||||
bool getStatus(uint8_t& value) const;
|
||||
bool getVersion(uint8_t& value) const;
|
||||
|
||||
void printInfo() const;
|
||||
};
|
||||
Reference in New Issue
Block a user