Description
## Hardware
There are three GPIOs in use:
- `GPIO04`: Global light enable/disable. As long as this output is high, the WW/CW channels will light.
- `GPIO19`: Cold White channel
- `GPIO21`: Warm White channel
### Templates
This template keeps `GPIO4` high and relies on Tasmota setting both `GPIO19` and `GPIO21` to fully off to shut the light off.
Most people should use this template.
```json
{"NAME":"Mijia Desk Lamp 1S (MJGJD02YL)","GPIO":[0,0,0,0,3840,0,1,1,0,0,0,0,0,0,0,416,0,417,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1,"CMND":"DimmerRange 45,255"}
```
If you want to control the global on/off (`GPIO04`) independently of the WW/CW channels, use this template:
```json
{"NAME":"Mijia Desk Lamp 1S (MJGJD02YL)","GPIO":[0,0,0,0,224,0,1,1,0,0,0,0,0,0,0,416,0,417,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1,"CMND":"DimmerRange 45,255"}
```
### Dimmer Range
In testing, extremely low brightness values for both the WW and CW channel had some undesirable behavior