-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how change module in user_config.h #569
Comments
you can change to 4ch module later after you flash it |
At the top of sonoff.ino (Line 47) #define MODULE SONOFF_BASIC // [Module] Select default model it can be any of the models defined in sonoff_template.h // Supported hardware modules
enum module_t {
SONOFF_BASIC,
SONOFF_RF,
SONOFF_SV,
SONOFF_TH,
SONOFF_DUAL,
SONOFF_POW,
SONOFF_4CH,
S20,
SLAMPHER,
SONOFF_TOUCH,
SONOFF_LED,
CH1,
CH4,
MOTOR,
ELECTRODRAGON,
EXS_RELAY,
WION,
WEMOS,
SONOFF_DEV,
H801,
SONOFF_SC,
MAXMODULE }; |
No need to change anything in source or user_config.h Just load the default firmware; open the webpage and configure desired module. This way the code is unchanged and any new version can be uploaded as is. |
okey thx for all i had fear before i flash it. |
5.13.0a * Add define MODULE for user selecting default model although it preferably should not be changed (arendst#569, arendst#2589)
Hey there,
I've downloaded the last source code 5.2.3 20170630 and try to editing user_config.h from sonoff basic to ch4 module but i don't find this setting. because i want flash a 4ch module not the basic one.
someone can help me?
thx
The text was updated successfully, but these errors were encountered: