Skip to content

Commit 960ed8e

Browse files
committed
dimming illusion
1 parent 6a4722d commit 960ed8e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/led/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,17 @@ To make it dim, we use a technique called PWM (Pulse Width Modulation). You can
77
We will gradually increment the PWM's duty cycle to increase the brightness, then we gradually decrement the PWM duty cycle to reduce the brightness of the LED. This effectively creates the dimming LED effect.
88

99

10+
## The Eye
11+
"
12+
Come in close... Closer...
13+
14+
Because the more you think you see... The easier it’ll be to fool you...
15+
16+
Because, what is seeing?.... You're looking but what you're really doing is filtering, interpreting, searching for meaning...
17+
"
18+
19+
Now, here's the cool part: when this switching happens super quickly, our eyes can't keep up. Instead of seeing the blinking, it just looks like the brightness changes! The longer the LED stays ON, the brighter it seems, and the shorter it's ON, the dimmer it looks. It's like tricking your brain into thinking the LED is smoothly dimming or brightening. PWM: the magician of electronics!
20+
21+
1022
<img style="display: block; margin: auto;" alt="pico2" src="../images/pico2-board.png"/>
23+

0 commit comments

Comments
 (0)