|
18 | 18 | *****************************************************************************************************************************/ |
19 | 19 |
|
20 | 20 | #if !defined(ESP8266) |
21 | | -#error This code is designed to run on ESP8266 and ESP8266-based boards! Please check your Tools->Board setting. |
| 21 | + #error This code is designed to run on ESP8266 and ESP8266-based boards! Please check your Tools->Board setting. |
22 | 22 | #endif |
23 | 23 |
|
24 | 24 | // These define's must be placed at the beginning before #include "ESP8266_PWM.h" |
25 | 25 | // _PWM_LOGLEVEL_ from 0 to 4 |
26 | 26 | // Don't define _PWM_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system. |
27 | | -#define _PWM_LOGLEVEL_ 4 |
| 27 | +#define _PWM_LOGLEVEL_ 3 |
28 | 28 |
|
29 | 29 | #define USING_MICROS_RESOLUTION true //false |
30 | 30 |
|
@@ -68,19 +68,19 @@ void IRAM_ATTR TimerHandler() |
68 | 68 | uint32_t PWM_Pin = LED_BUILTIN; |
69 | 69 |
|
70 | 70 | // You can assign any interval for any timer here, in Hz |
71 | | -float PWM_Freq1 = 1.0f; |
| 71 | +float PWM_Freq1 = 200.0f; //1.0f; |
72 | 72 | // You can assign any interval for any timer here, in Hz |
73 | | -float PWM_Freq2 = 2.0f; |
| 73 | +float PWM_Freq2 = 100.0f; //2.0f; |
74 | 74 |
|
75 | 75 | // You can assign any interval for any timer here, in microseconds |
76 | 76 | uint32_t PWM_Period1 = 1000000 / PWM_Freq1; |
77 | 77 | // You can assign any interval for any timer here, in microseconds |
78 | 78 | uint32_t PWM_Period2 = 1000000 / PWM_Freq2; |
79 | 79 |
|
80 | 80 | // You can assign any duty_cycle for any PWM here, from 0-100 |
81 | | -float PWM_DutyCycle1 = 50.0; |
| 81 | +float PWM_DutyCycle1 = 1.0f; //50.0f; |
82 | 82 | // You can assign any duty_cycle for any PWM here, from 0-100 |
83 | | -float PWM_DutyCycle2 = 90.0; |
| 83 | +float PWM_DutyCycle2 = 5.55f; //90.0f; |
84 | 84 |
|
85 | 85 | // Channel number used to identify associated channel |
86 | 86 | int channelNum; |
|
0 commit comments