spatie
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
//LED defines.
|
//LED defines.
|
||||||
#define LEDC_TIMER LEDC_TIMER_0
|
#define LEDC_TIMER LEDC_TIMER_0
|
||||||
#define LEDC_MODE LEDC_LOW_SPEED_MODE
|
#define LEDC_MODE LEDC_LOW_SPEED_MODE
|
||||||
#define LEDC_OUTPUT_IO (38 ) // Define the output GPIO. 38 in the onboard LED.
|
#define LEDC_OUTPUT_IO (38) // Define the output GPIO. 38 in the onboard LED.
|
||||||
#define LEDC_CHANNEL LEDC_CHANNEL_0
|
#define LEDC_CHANNEL LEDC_CHANNEL_0
|
||||||
#define LEDC_DUTY_RES LEDC_TIMER_13_BIT // Set duty resolution to 13 bits
|
#define LEDC_DUTY_RES LEDC_TIMER_13_BIT // Set duty resolution to 13 bits
|
||||||
#define LEDC_DUTY (4095) // Set duty to 50%. ((2 ** 13) - 1) * 50% = 4095
|
#define LEDC_DUTY (4095) // Set duty to 50%. ((2 ** 13) - 1) * 50% = 4095
|
||||||
|
|||||||
Reference in New Issue
Block a user