Updated Martin Jerry MJ SD01 (markdown)

hank 2018-10-27 19:41:57 -04:00
parent 4deef0095a
commit a22ae767f6
1 changed files with 19 additions and 1 deletions

@ -80,7 +80,25 @@ The LEDs are wired as follows:
| LED4 | GPIO5 |
| LED5 | RXD |
Added a new entry to the sonoff_template.h list and assigned all the pins. You can of course just do a generic load and set it up with the Web UI.
Added a new entry to the sonoff_template.h list and assigned all the pins. You can of course just do a generic load and set it up with the Web UI. Here's what I ended up with in the header:
```c
{ "MJ-SD01", // Martin Jerry Smart Dimmer Switch (ESP8266EX)
GPIO_SWT3, // GPIO00 UP1 Button, bright up
GPIO_SWT2, // GPIO01 Serial TXD and DOWN1 Button, bright down
0, // GPIO02
GPIO_REL5, // GPIO03 Serial RXD
GPIO_REL1_INV, // GPIO04 Multi-LED RED
GPIO_REL4_INV, // GPIO05 LED1
0, 0, 0, 0, 0, 0, // GPIO06-GPIO11
GPIO_REL3_INV, // GPIO12 LED3
GPIO_PWM1, // GPIO13 PWM for dimmer
GPIO_REL2_INV, // GPIO14 LED2
GPIO_SWT1, // GPIO15 ON/OFF Button, ties to 3.3v when pushed
GPIO_SWT4, // GPIO16 RESET button, also goes to AC side and probably resets the STC chip, tied to LED1
0 // ADC0 Analog input
}
```
* FADE ON: Makes the PWM movements smooth
* DIMMER +/-: Moves dimmer up and down