Skip to content

Commit 1241167

Browse files
committed
esp32 builds and changing compilation define
formatting
1 parent 954615b commit 1241167

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+317
-241
lines changed

docs/A4988-Stepper-Motor-Controller.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
!!! failure "This feature is not included in precompiled binaries"
1+
??? failure "This feature is not included in precompiled binaries"
2+
3+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
4+
```c++
5+
#ifndef USE_A4988_STEPPER
6+
#define USE_A4988_STEPPER // A4988/DRV8825 stepper motor (+10k5 code)
7+
#endif
8+
```
29

3-
To use it you must [compile your build](Compile-your-build). Add the following to `user_config_override.h`:
4-
```
5-
#ifndef USE_A4988_STEPPER
6-
#define USE_A4988_STEPPER // A4988/DRV8825 stepper motor (+10k5 code)
7-
#endif
8-
```
9-
----
1010
This driver is used to control stepper-motors such as [NEMA 17](https://reprap.org/wiki/NEMA_17_Stepper_motor).
1111

1212
## Configuration

docs/AHT1x.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
# AHT1x/AHT2x and compatible temperature and humidity sensor
2-
!!! failure "This feature is not included in precompiled binaries"
32

4-
To use it you must [compile your build](Compile-your-build). Add the following to `user_config_override.h` to add support for AHT10 or AHT15:
5-
```
6-
#ifndef USE_AHT1x
7-
#define USE_AHT1x // [I2cDriver43] Enable AHT10/15 humidity and temperature sensor (I2C address 0x38 or 0x39)
8-
#endif
9-
```
10-
or those lines for AHT20 or AM2301B:
11-
```
12-
#ifndef USE_AHT2x
13-
#define USE_AHT2x Enable AHT20 instead of AHT1x humidity and temperature sensor (I2C address 0x38)
14-
#endif
15-
```
3+
??? failure "This feature is not included in precompiled binaries"
164

17-
----
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_AHT1x
8+
#define USE_AHT1x // [I2cDriver43] Enable AHT10/15 humidity and temperature sensor (I2C address 0x38, 0x39) (+0k8 code)
9+
#endif
10+
```
11+
or those lines for AHT2x or AM2301B:
12+
```
13+
#ifndef USE_AHT2x
14+
#define USE_AHT2x // [I2cDriver43] Enable AHT20/AM2301B instead of AHT1x humidity and temperature sensor (I2C address 0x38) (+0k8 code)
15+
#endif
16+
```
1817

19-
AHT10 or AH15 are an I<sup>2</sup>C temperature and humidity sensor.
20-
AHT20 or AM2301B are upgraded versions.
18+
AHT1x are an I<sup>2</sup>C temperature and humidity sensor.
19+
AHT2x or AM2301B are upgraded versions.
2120

2221
## Configuration
2322

2423
!!! failure "This sensor is incompatible with other I^2^C devices on I^2^C bus"
2524
Sensor datasheet implicitly says:
2625
**Only a single** AHT10 can be connected to the I^2^C bus and no other I^2^C devices can be connected.
27-
The AHT20/AM2301B do not suffer from this problem.
26+
The AHT2x/AM2301B does not suffer from this problem.
2827

2928
### Wiring
30-
| AHT1x | ESP8266 |
29+
| AHT | ESP |
3130
|---|---|
3231
|VCC |3.3V
3332
|GND |GND
@@ -38,8 +37,8 @@ AHT20 or AM2301B are upgraded versions.
3837
### Tasmota Settings
3938
In the **_Configuration -> Configure Module_** page assign:
4039

41-
1. GPIOx to `I2C SDA (6)`
42-
2. GPIOy to `I2C SCL (5)`
40+
1. GPIOx to `I2C SDA`
41+
2. GPIOy to `I2C SCL`
4342

4443
After a reboot the driver will detect AHT1x automatically and display sensor readings.
4544

docs/AM2301.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# AM2301/AM2302 (DHT21/DHT22) temperature and humidity sensor
22

3-
!!! info "This feature is included only in tasmota-sensors.bin"
3+
??? tip "This feature is included in `tasmota`, `tasmota32`, `tasmota-knx` and `tasmota-display` binaries"
4+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
5+
```c++
6+
#ifndef USE_DHT
7+
#define USE_DHT // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor (1k6 code)
8+
#endif
9+
```
410

511
AM2301 driver supports [AM2301 (DHT21)](http://www.haoyuelectronics.com/Attachment/AM2301/AM2301.pdf), [AM2302 (DHT22)](https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf) and [AM2321](http://akizukidenshi.com/download/ds/aosong/AM2321_e.pdf) temperature and humidity sensors. Introduced in Tasmota through [Sonoff AM2301](https://sonoff.tech/product/accessories/am2301) accessory for [Sonoff TH](/devices/Sonoff-TH).
612

@@ -11,7 +17,7 @@ For AM2301B I^2^C model, please refer to [AHT1x/AHT2x](AHT1x) driver.
1117
## Configuration
1218

1319
### Wiring
14-
| AM2301 | ESP266 |
20+
| AM2301 | ESP |
1521
|---|---|
1622
|- |GND |
1723
|OUT |GPIOx |

docs/APDS-9960.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# APDS-9960 light and gesture sensor
22

3-
!!! failure "This feature is not included in precompiled binaries"
3+
??? failure "This feature is not included in precompiled binaries"
4+
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_APDS9960
8+
#define USE_APDS9960 // [I2cDriver21] Enable APDS9960 Proximity Sensor (I2C address 0x39). Disables SHT and VEML6070 (+4k7 code)
9+
#define USE_APDS9960_GESTURE // Enable APDS9960 Gesture feature (+2k code)
10+
#define USE_APDS9960_PROXIMITY // Enable APDS9960 Proximity feature (>50 code)
11+
#define USE_APDS9960_COLOR // Enable APDS9960 Color feature (+0.8k code)
12+
#define USE_APDS9960_STARTMODE 0 // Default to enable Gesture mode
13+
#endif
14+
```
415

5-
To use it you must [compile your build](Compile-your-build). Add the following to `user_config_override.h`:
6-
```
7-
#ifndef USE_APDS9960
8-
#define USE_APDS9960 // Enable APDS9960 Proximity Sensor (+4k7 code)
9-
#endif
10-
```
11-
----
1216
Broadcom APDS-9960 is a digital RGB, ambient light, proximity and gesture sensor device in a single 8-pin package. The device has an I2C compatible interface providing red, green, blue, clear (RGBC), proximity and gesture sensing with IR LED. The RGB and ambient light sensing feature detects light intensity under various lighting conditions and through various attentuation materials including darkened glass. In addition, the integrated UV-IR blocking filter enables accurate ambient light and correlated color temperature sensing.
1317

1418
## Configuration
1519
#### Wiring
16-
| Breakout | ESP8266 |
20+
| Breakout | ESP |
1721
|----------|-----------|
1822
| VCC/VIN | +3.3VDC |
1923
| GND | GND |
@@ -24,8 +28,8 @@ Broadcom APDS-9960 is a digital RGB, ambient light, proximity and gesture sensor
2428
#### Tasmota Settings
2529
In the **_Configuration -> Configure Module_** page assign:
2630

27-
1. GPIOx to `I2C SDA (6)`
28-
2. GPIOy to `I2C SCL (5)`
31+
1. GPIOx to `I2C SDA`
32+
2. GPIOy to `I2C SCL`
2933

3034
After configuring the GPIO's the driver will detect the APDS-9960 automatically.
3135
On first boot sensor will start in gesture mode. It will not appear in the webUI but it can be observed via MQTT messages in console:

docs/AS3935.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# AS3935 Franklin Lightning sensor
22

3-
!!! info "This feature is included only in tasmota-sensors.bin"
3+
??? tip "This feature is included only in `tasmota-sensors` and `tasmota32` binaries"
44

5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_AS3935
8+
#define USE_AS3935 // [I2cDriver48] Enable AS3935 Franklin Lightning Sensor (I2C address 0x03) (+5k4 code)
9+
#endif
10+
```
511

612
The AS3935 is a programmable fully integrated Lightning
713
Sensor IC that detects the presence and approach of potentially
@@ -21,7 +27,7 @@ Tasmota driver includes:
2127
## Configuration
2228

2329
### Wiring
24-
| AS3935 | ESP8266 |
30+
| AS3935 | ESP |
2531
|---|---|
2632
|GND |GND
2733
|VCC |3.3V
@@ -35,11 +41,11 @@ Tasmota driver includes:
3541
### Tasmota Settings
3642
In the **_Configuration -> Configure Module_** page assign:
3743

38-
1. GPIOx to `I2C SDA (6)`
39-
2. GPIOy to `I2C SCL (5)`
40-
3. GPIOz to `AS3935 (202)`
44+
1. GPIOx to `I2C SDA`
45+
2. GPIOy to `I2C SCL`
46+
3. GPIOz to `AS3935`
4147

42-
!!! tip "Note for I2C Use"
48+
!!! tip "Note for I^2^C Use"
4349
You will need to wire up all of the associated pins for the different boards.<br>
4450
- Always connect CS and MISO to GND.<br>
4551
- If "SI" is present, you need to connect to VCC.<br>

docs/AZ-7798.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# AZ7798 CO~2~ meter
22

3-
!!! failure "This feature is not included in precompiled binaries"
4-
To use it you must [compile your build](Compile-your-build). Add the following to `user_config_override.h`:
5-
```
6-
#ifndef USE_AZ7798
7-
#define USE_AZ7798 // Add support for AZ-Instrument 7798 CO2 datalogger (+1k6 code)
8-
#endif
9-
```
10-
----
3+
??? failure "This feature is not included in precompiled binaries"
4+
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_AZ7798
8+
#define USE_AZ7798 // Add support for AZ-Instrument 7798 CO2 datalogger (+1k6 code)
9+
#endif
10+
```
1111

1212
<img src="https://raw.githubusercontent.com/wiki/adebeun/Sonoff-Tasmota/az7798-front.jpg" align=right width=240>
1313

@@ -16,7 +16,7 @@ The AZ7798 CO~2~ Meter/Datalogger appears to be made by [AZ Instrument](https://
1616
The CO~2~ meter is already provided with a PC interface in the form of a logic-level (3V3) serial port, accessible through a 2.5mm stereo jack on the back. The Wemos D1 Mini is connected to this serial port instead, and the PC interface is no longer available.
1717

1818
## Configuration
19-
### Connecting the AZ7798 to a Wemos D1 Mini
19+
#### Connecting the AZ7798 to a Wemos D1 Mini
2020

2121
The Wemos D1 Mini is fitted inside the meter enclosure. This requires the enclosure to be opened. There are four screws. Two of the screws are hidden behind the type label. Use the tip of a small knife to cut holes in the label.
2222

@@ -43,8 +43,8 @@ Make a small right-angle bracket for mounting the Wemos D1 Mini to the meter boa
4343

4444
In the **_Configuration -> Configure Module_** page assign:
4545

46-
1. D1 TX to `AZ Tx (117)`
47-
2. D3 RX to `AZ Rx (118)`
46+
1. D1 TX to `AZ Tx`
47+
2. D3 RX to `AZ Rx`
4848

4949
![](https://raw.githubusercontent.com/wiki/adebeun/Sonoff-Tasmota/az7798-configure.png)
5050

docs/Alexa.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
!!! info "This feature is included only in builds: tasmota and tasmota-sensors"
1+
??? tip "This feature is included only in `tasmota`, `tasmota32`, `tasmota-lite` and `tasmota-sensors` binaries"
22

3-
To use in other builds you must [compile your own build](Compile-your-build). Add the following to `user_config_override.h`:
4-
```
5-
#ifndef EMULATION
6-
#define EMULATION EMUL_NONE // [Emulation] Select Belkin WeMo (single relay/light) or Hue Bridge emulation (multi relay/light) (EMUL_NONE, EMUL_WEMO or EMUL_HUE)
7-
#endif
8-
```
3+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
4+
```c++
5+
#define USE_EMULATION // Enable Wemo or Hue emulation
6+
#define USE_EMULATION_HUE // Enable Hue Bridge emulation for Alexa (+14k code, +2k mem common)
7+
#define USE_EMULATION_WEMO // Enable Belkin WeMo emulation for Alexa (+6k code, +2k mem common)
8+
```
99

10-
`EMUL_NONE` = disables emulation
11-
`EMUL_WEMO` = enables Belking WeMo emulation
12-
`EMUL_HUE` = enables Hue Bridge emulation
13-
14-
----
1510
## Connecting to Alexa
1611

1712
You can interact with Tasmota using Amazon Alexa through its Echo devices .

docs/BH1750.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
# BH1750 ambient light sensor
22

3-
!!! info "This feature is included only in tasmota-sensors.bin"
3+
??? tip "This feature is included only in `tasmota32` and `tasmota-sensors` binaries"
4+
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_BH1750
8+
#define USE_BH1750 // [I2cDriver11] Enable BH1750 sensor (I2C address 0x23 or 0x5C) (+0k5 code)
9+
#endif
10+
```
411

512
The BH1750 is a digital ambient light sensor module which uses I<sup>2</sup>C to communicate. The BH1750 provides you with a digital value in lux (Lx) over a range of 1 - 65535 lx. See [datasheet](https://www.mouser.com/datasheet/2/348/bh1750fvi-e-186247.pdf) for more information.
613

714
## Configuration
815

916
### Wiring
10-
| BH1750 | ESP8266 |
17+
| BH1750 | ESP |
1118
|---|---|
12-
|GND |GND
13-
|VCC |3.3V
19+
|GND | GND
20+
|VCC | 3.3V
1421
|SDA | GPIOx
1522
|SCL | GPIOy
1623

1724
### Tasmota Settings
1825
In the **_Configuration -> Configure Module_** page assign:
1926

20-
1. GPIOx to `I2C SDA (6)`
21-
2. GPIOy to `I2C SCL (5)`
27+
1. GPIOx to `I2C SDA`
28+
2. GPIOy to `I2C SCL`
2229

2330
After a reboot the driver will detect BH1750 automatically and display Illuminance.
2431

docs/BME280.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
# BME280 temperature, humidity and pressure sensor
2-
!!! info "This feature is included only in tasmota-sensors.bin"
2+
3+
??? tip "This feature is included only in `tasmota-sensors` and `tasmota32` binaries"
4+
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```c++
7+
#ifndef USE_BMP
8+
#define USE_BMP // [I2cDriver10] Enable BMP085/BMP180/BMP280/BME280 sensors (I2C addresses 0x76 and 0x77) (+4k4 code)
9+
#endif
10+
```
311

412
BME280 sensor, an environmental sensor with temperature, barometric pressure and humidity" See [BME280 Temperature, Humidity and Pressure Sensor](https://www.adafruit.com/product/2652) for more information.
513

6-
BME280 driver also supports [BMP085](https://learn.adafruit.com/bmp085), [BMP180](https://www.bosch-sensortec.com/bst/products/all_products/bmp180) and [BMP280](https://www.bosch-sensortec.com/bst/products/all_products/bmp280) sensors.
14+
BME280 driver also supports [BMP085](https://learn.adafruit.com/bmp085), [BMP180](https://www.bosch-sensortec.com/bst/products/all_products/bmp180) and [BMP280](https://www.bosch-sensortec.com/bst/products/all_products/bmp280) pressure sensors.
715

816
## Configuration
917

1018
### Wiring
11-
| BME280 | ESP8266
19+
| BME280 | ESP
1220
| ---| ---
1321
|GND | GND
1422
|VCC | 3.3V
1523
|SDA | GPIOx
1624
|SCL | GPIOy
1725

26+
### Tasmota Settings
27+
In the **_Configuration -> Configure Module_** page assign:
28+
29+
1. GPIOx to `I2C SDA`
30+
2. GPIOy to `I2C SCL`
1831

1932
!!! note
2033
If you are using breakout boards which break out pins CSB please ensure that you connect this pin to VCC to ensure that the chip stays in I<sup>2</sup>C mode. This is due to some manufacturers of breakout boards add pull-up resistors to allow for SPI compatibility (some would default to SPI, others to I<sup>2</sup>C)_

docs/BME680.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# BME680 temperature, humidity, pressure and gas sensor
2-
!!! info "This feature is included only in tasmota-sensors.bin"
2+
??? tip "This feature is included only in `tasmota-sensors` and `tasmota32` binaries"
3+
4+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
5+
```c++
6+
#ifndef USE_BME68X
7+
#define USE_BME68X // Enable support for BME680/BME688 sensor using Bosch BME68x library (+6k9 code)
8+
#endif
9+
```
310

4-
Otherwise you must [compile your build](Compile-your-build). Add the following to `user_config_override.h`:
5-
```
6-
#ifndef USE_BME680
7-
#define USE_BME680 // Enable support for BME680 sensor using Bosch BME680 library (+4k code)
8-
#endif
9-
```
10-
----
1111
BME680 sensor, an environmental I<sup>2</sup>C sensor with temperature, humidity, barometric pressure and gas.
1212

1313
_The BME680 takes those sensors to the next step in that it contains a small MOX sensor. The heated metal oxide **changes resistance** based on the volatile organic compounds (VOC) in the air, so it can be used to detect gasses & alcohols such as Ethanol, Alcohol and Carbon Monoxide, and perform air quality measurements. Note it will give you one resistance value, with overall VOC content, but it cannot differentiate gasses or alcohols._
@@ -18,7 +18,7 @@ See [BME680 - Temperature, Humidity, Pressure and Gas Sensor](https://www.adafru
1818
## Configuration
1919

2020
### Wiring
21-
| BME680 | ESP8266 |
21+
| BME680 | ESP |
2222
|---|---|
2323
|GND |GND
2424
|VCC |3.3V
@@ -28,8 +28,8 @@ See [BME680 - Temperature, Humidity, Pressure and Gas Sensor](https://www.adafru
2828
### Tasmota Settings
2929
In the **_Configuration -> Configure Module_** page assign:
3030

31-
- GPIOx to `I2C SDA (6)`
32-
- GPIOy to `I2C SCL (5)`
31+
- GPIOx to `I2C SDA`
32+
- GPIOy to `I2C SCL`
3333

3434
After a reboot the driver will detect BME680 automatically and display temperature, humidity, dew point, pressure and gas resistance measured.
3535

0 commit comments

Comments
 (0)