Skip to content

Commit

Permalink
led pwm, menu fold
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplFerris committed Dec 24, 2024
1 parent d66881e commit 985b498
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
6 changes: 5 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ src = "src"

[output.html]
git-repository-url = "https://github.com/ImplFerris/esp32-book"
cname = "esp.implrust.com"
cname = "esp32.implrust.com"
preferred-dark-theme = "ayu"
preferred-light-theme = "rust"
default-theme = "light"
mathjax-support = true

# [output.html.playground]
# editable = true

[output.html.fold]
enable = true
level = 1 # the depth to start folding
2 changes: 1 addition & 1 deletion src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
- [Voltage Divider](./core-concepts/voltage-divider.md)
- [ADC](./core-concepts/adc.md)
- [PWM](./core-concepts/pwm/index.md)
- [LED PWM Controller](./core-concepts/pwm/led-pwm-controller.md)
- [no_std, no_main in Rust](./core-concepts/no-std-main.md)
- [Dimming LED](./dimming-led/index.md)
- [LED PWM Controller](./core-concepts/pwm/led-pwm-controller.md)
9 changes: 8 additions & 1 deletion src/core-concepts/pwm/led-pwm-controller.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# LED PWM Controller
# LED PWM Controller(LEDC)

The ESP32 has LED PWM Controller(LEDC) that generates PWM signals for controlling LEDs(example, dimming effect). However, its functionality isn't limited to LEDs;you can use it for other applications as well. If you are not familiar with PWM(Pulse Width Modulation), i recommend you to check the PWM section [here](../core-concepts/pwm.md).

The LEDC includes 16 independent PWM generators and supports a maximum PWM duty cycle resolution of 20 bits. The 16 PWM channels further classified into two types: 8 high speed channel and 8 low speed channels.

The PWM controller can automatically increase or decrease the duty cycle gradually, allowing for smooth fades without using the processor. For more details, refer to page 390 of the [ESP32 Technical Reference Manual](https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf#ledpwm).

3 changes: 2 additions & 1 deletion src/dimming-led/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Dimming LED

In this exercise, we'll dim an external LED using Pulse Width Modulation (PWM), which will be explained in the next chapter.
In this exercise, we'll dim an external LED using Pulse Width Modulation (PWM). Before you begin, I recommend reading the [PWM and LED PWM sections](../core-concepts/pwm/index.md) in the Core Concepts chapter.


## Hardware Requirements

Expand Down
8 changes: 0 additions & 8 deletions src/dimming-led/led-pwm-controller.md

This file was deleted.

1 change: 0 additions & 1 deletion src/esp32-intro/esp32-family.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,3 @@ The following are basic specs for the ESP32:
## Reference
- [Buyers Guide](https://eitherway.io/posts/esp32-buyers-guide/)
- [Chip Series Comparison](https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32s3/hw-reference/chip-series-comparison.html)
- [ESP32 Guide 2024 Video](https://www.youtube.com/watch?v=u5unB24lhC4)

0 comments on commit 985b498

Please sign in to comment.