-
|
Hello, I have loaded Tasmota on RGB LED Bulb based on ESP8285 module. Now Using Tasmocompiler I want to hardcode following console commands: I have tried compiling with following custom lines, but lines 3,4 and 5 are not working: (Please note that I have added line numbers for convenience, the actual code does not have the line numbers): What am I doing wrong? Kindly help in formatting the custom commands for hardcoding in a .bin file. Thanks, Navi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You can see which defines are possible in general and which SetOption this will be |
Beta Was this translation helpful? Give feedback.
Jason and sformis Thanks for your help. I was going through Sfromis's @sfromis previous posts/replies and as per the information there I tried the following code:
1#define MODULE USER_MODULE
2#define USER_TEMPLATE "{"CMND":"SetOption37 46","NAME":"Wipro-RGB-NS9001","GPIO": [0,0,0,0,416,419,0,0,417,420,418,0,0,0],"FLAG":0,"BASE":18}"
<---This worked for "SetOption37"
3#define LIGHT_PWM_CT_MODE true
4#define SETOPTION37 46 <-Removed from code
5#define APP_DISABLE_POWERCYCLE true
6#define EMULATION EMUL_HUE
7#define USE_EMULATION_HUE
Final code that worked is as follows: