@@ -28,7 +28,7 @@ This function is used to setup the LEDC channel frequency and resolution.
28
28
29
29
.. code-block :: arduino
30
30
31
- double ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);
31
+ uint32_t ledcSetup(uint8_t channel, uint32_t freq, uint8_t resolution_bits);
32
32
33
33
* ``channel `` select LEDC channel to config.
34
34
* ``freq `` select frequency of pwm.
@@ -71,7 +71,7 @@ This function is used to get configured frequency for the LEDC channel.
71
71
72
72
.. code-block :: arduino
73
73
74
- double ledcReadFreq(uint8_t chan);
74
+ uint32_t ledcReadFreq(uint8_t chan);
75
75
76
76
* ``chan `` select the LEDC channel to read the configured frequency.
77
77
@@ -84,7 +84,7 @@ This function is used to setup the LEDC channel to 50 % PWM tone on selected fre
84
84
85
85
.. code-block :: arduino
86
86
87
- double ledcWriteTone(uint8_t chan, double freq);
87
+ uint32_t ledcWriteTone(uint8_t chan, uint32_t freq);
88
88
89
89
* ``chan `` select LEDC channel.
90
90
* ``freq `` select frequency of pwm signal.
@@ -99,7 +99,7 @@ This function is used to setup the LEDC channel to specific note.
99
99
100
100
.. code-block :: arduino
101
101
102
- double ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
102
+ uint32_t ledcWriteNote(uint8_t chan, note_t note, uint8_t octave);
103
103
104
104
* ``chan `` select LEDC channel.
105
105
* ``note `` select note to be set.
@@ -144,7 +144,7 @@ This function is used to set frequency for the LEDC channel.
144
144
145
145
.. code-block :: arduino
146
146
147
- double ledcChangeFrequency(uint8_t chan, double freq, uint8_t bit_num);
147
+ uint32_t ledcChangeFrequency(uint8_t chan, uint32_t freq, uint8_t bit_num);
148
148
149
149
* ``channel `` select LEDC channel.
150
150
* ``freq `` select frequency of pwm.
0 commit comments