ESPHome  2024.11.1
bmp280_i2c.cpp
Go to the documentation of this file.
1 #include "bmp280_i2c.h"
2 #include "esphome/core/hal.h"
3 #include "esphome/core/log.h"
4 
5 namespace esphome {
6 namespace bmp280_i2c {
7 
8 bool BMP280I2CComponent::read_byte(uint8_t a_register, uint8_t *data) {
9  return I2CDevice::read_byte(a_register, data);
10 };
11 bool BMP280I2CComponent::write_byte(uint8_t a_register, uint8_t data) {
12  return I2CDevice::write_byte(a_register, data);
13 };
14 bool BMP280I2CComponent::read_bytes(uint8_t a_register, uint8_t *data, size_t len) {
15  return I2CDevice::read_bytes(a_register, data, len);
16 };
17 bool BMP280I2CComponent::read_byte_16(uint8_t a_register, uint16_t *data) {
18  return I2CDevice::read_byte_16(a_register, data);
19 };
20 
22  LOG_I2C_DEVICE(this);
23  BMP280Component::dump_config();
24 }
25 
26 } // namespace bmp280_i2c
27 } // namespace esphome
bool write_byte(uint8_t a_register, uint8_t data) override
Definition: bmp280_i2c.cpp:11
bool read_byte(uint8_t a_register, uint8_t *data) override
Definition: bmp280_i2c.cpp:8
bool read_byte_16(uint8_t a_register, uint16_t *data) override
Definition: bmp280_i2c.cpp:17
bool read_bytes(uint8_t a_register, uint8_t *data, size_t len) override
Definition: bmp280_i2c.cpp:14
std::string size_t len
Definition: helpers.h:293
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7