ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
bmp280_spi.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::bmp280_spi {
7
9 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
10 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_200KHZ> {
11 void setup() override;
12 bool bmp_read_byte(uint8_t a_register, uint8_t *data) override;
13 bool bmp_write_byte(uint8_t a_register, uint8_t data) override;
14 bool bmp_read_bytes(uint8_t a_register, uint8_t *data, size_t len) override;
15 bool bmp_read_byte_16(uint8_t a_register, uint16_t *data) override;
16};
17
18} // namespace esphome::bmp280_spi
This class implements support for the BMP280 Temperature+Pressure sensor.
Definition bmp280_base.h:52
The SPIDevice is what components using the SPI will create.
Definition spi.h:429
const void size_t len
Definition hal.h:64