@@ -13,7 +13,9 @@ Provides an Arduino library for reading and interpreting Bosch BME280 data.
13
13
* [ Usage] ( #usage )
14
14
* [ Methods] ( #methods )
15
15
16
- * [ BME280(uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0, bool spiEnable = false, uint8_t bme_280_addr = 0x76)] ( #methods )
16
+ * [ BME280I2C(uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0, bool spiEnable = false, uint8_t bme_280_addr = 0x76)] ( #methods )
17
+ * [ BME280Spi(uint8_t spiCsPin, uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0)] ( #methods )
18
+ * [ BME280SpiSw(uint8_t spiCsPin, uint8_t spiMosiPin, uint8_t spiMisoPin, uint8_t spiSckPin, uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0)] ( #methods )
17
19
* [ bool begin()] ( #methods )
18
20
* [ void setMode(uint8_t mode)] ( #methods )
19
21
* [ float temp(bool celsius = true)] ( #methods )
@@ -64,9 +66,9 @@ Use `setMode(0x01)` to trigger a new measurement in forced mode. NOTE: It takes
64
66
## Methods
65
67
66
68
67
- #### BME280 (uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0, bool spiEnable = false, uint8_t bme_280_addr = 0x76)
69
+ #### BME280I2C (uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0, bool spiEnable = false, uint8_t bme_280_addr = 0x76)
68
70
69
- Constructor used to create the class. All parameters have default values.
71
+ Constructor used to create the I2C Bme class. All parameters have default values.
70
72
Return: None
71
73
72
74
* Temperature Oversampling Rate (tosr): uint8_t, default = 0x1
@@ -93,7 +95,66 @@ Use `setMode(0x01)` to trigger a new measurement in forced mode. NOTE: It takes
93
95
* BME280 Address: uint8_t, default = 0x76
94
96
values: any uint8_t
95
97
98
+ #### BME280Spi(uint8_t spiCsPin, uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0)
96
99
100
+ Constructor used to create the Spi Bme class. All parameters have default values.
101
+ Return: None
102
+
103
+ * SPI Chip Select Pin (spiCsPin): uint8_t
104
+ values: Any pin 0-31
105
+
106
+ * Temperature Oversampling Rate (tosr): uint8_t, default = 0x1
107
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
108
+
109
+ * Humidity Oversampling Rate (hosr): uint8_t, default = 0x1
110
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
111
+
112
+ * Pressure Oversampling Rate (posr): uint8_t, default = 0x1
113
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
114
+
115
+ * Mode: uint8_t, default = Normal
116
+ values: Sleep = B00, Forced = B01 and B10, Normal = B11
117
+
118
+ * Standby Time (st): uint8_t, default = 1000ms
119
+ values: B000 = 0.5ms, B001 = 62.5ms, B010 = 125ms, B011 = 250ms, B100 = 250ms, B101 = 1000ms, B110 = 10ms, B111 = 20ms
120
+
121
+ * Filter: uint8_t, default = None
122
+ values: B000 = off, B001 = 2, B010 = 4, B011 = 8, B100/other = 16
123
+
124
+ #### BME280SpiSw(uint8_t spiCsPin, uint8_t spiMosiPin, uint8_t spiMisoPin, uint8_t spiSckPin, uint8_t tosr = 0x1, uint8_t hosr = 0x1, uint8_t posr = 0x1, uint8_t mode = 0x3, uint8_t st = 0x5, uint8_t filter = 0x0)
125
+
126
+ Constructor used to create the software Spi Bme class. All parameters have default values.
127
+ Return: None
128
+
129
+ * SPI Chip Select Pin (spiCsPin): uint8_t
130
+ values: Any pin 0-31
131
+
132
+ * SPI Master Out Slave In Pin (spiMosiPin): uint8_t
133
+ values: Any pin 0-31
134
+
135
+ * SPI Master In Slave Out Pin (spiMisoPin): uint8_t
136
+ values: Any pin 0-31
137
+
138
+ * SPI Serial Clock Pin (spiSckPin): uint8_t
139
+ values: Any pin 0-31
140
+
141
+ * Temperature Oversampling Rate (tosr): uint8_t, default = 0x1
142
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
143
+
144
+ * Humidity Oversampling Rate (hosr): uint8_t, default = 0x1
145
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
146
+
147
+ * Pressure Oversampling Rate (posr): uint8_t, default = 0x1
148
+ values: B000 = Skipped, B001 = x1, B010 = x2, B011 = x4, B100 = x8, B101/other = x16
149
+
150
+ * Mode: uint8_t, default = Normal
151
+ values: Sleep = B00, Forced = B01 and B10, Normal = B11
152
+
153
+ * Standby Time (st): uint8_t, default = 1000ms
154
+ values: B000 = 0.5ms, B001 = 62.5ms, B010 = 125ms, B011 = 250ms, B100 = 250ms, B101 = 1000ms, B110 = 10ms, B111 = 20ms
155
+
156
+ * Filter: uint8_t, default = None
157
+ values: B000 = off, B001 = 2, B010 = 4, B011 = 8, B100/other = 16
97
158
98
159
99
160
#### bool begin()
0 commit comments