ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
ledc_duty.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::ledc
 

Functions

uint32_t esphome::ledc::full_scale_ticks (uint8_t bit_depth, uint8_t fractional_bits)
 Ticks for a constant high output, one past the highest PWM level.
 
uint32_t esphome::ledc::duty_to_ticks (float state, uint8_t bit_depth, uint8_t fractional_bits)
 Convert a 0-1 duty to timer ticks, with fractional_bits extra bits for dithering.