File tree 3 files changed +5
-8
lines changed
libraries/esp8266/examples/FadePolledTimeout
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ inline int esp_get_cpu_freq_mhz()
122
122
}
123
123
#endif
124
124
125
+ // Call this function in your setup() to cause the phase locked version of the generator to
126
+ // be linked in automatically. Otherwise, the default PWM locked version will be used.
127
+ void enablePhaseLockedWaveform (void );
125
128
126
129
#ifdef __cplusplus
127
130
}
Original file line number Diff line number Diff line change 72
72
extern "C" {
73
73
#endif
74
74
75
- // Call this function in your setup() to cause the phase locked version of the generator to
76
- // be linked in automatically. Otherwise, the default PWM locked version will be used.
77
- void enablePhaseLockedWaveform (void );
78
-
79
-
80
75
// Start or change a waveform of the specified high and low times on specific pin.
81
76
// If runtimeUS > 0 then automatically stop it after that many usecs, relative to the next
82
77
// full period.
Original file line number Diff line number Diff line change 23
23
Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
24
24
*/
25
25
26
- #include < core_esp8266_waveform.h>
27
26
#include < PolledTimeout.h>
28
27
29
28
esp8266::polledTimeout::periodicFastUs stepPeriod (50000 );
@@ -33,8 +32,8 @@ void setup() {
33
32
Serial.begin (115200 );
34
33
Serial.println ();
35
34
36
- // This next line will call will cause the code to use the Phase-Locked waveform generator
37
- // instead of the default one. Comment it out to try the default version.
35
+ // This next line will cause the code to use the Phase-Locked waveform generator
36
+ // instead of the default PWM-Locked one. Comment it out to try the default version.
38
37
// For more information on choosing between the two options, see the following pull requests:
39
38
// Phase-Locked generator: https://github.com/esp8266/Arduino/pull/7022
40
39
// PWM-Locked generator: https://github.com/esp8266/Arduino/pull/7231
You can’t perform that action at this time.
0 commit comments