Skip to content

Commit

Permalink
fix Esp32Hal example
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed Nov 20, 2020
1 parent e476f2d commit b0373f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ over after channel 15. To manually specify a channel, the JLed object must be
constructed this way:

```c++
auto esp32Led = JLed(Esp32Hal(2, 7)).Blink(1000, 1000).Forever();
auto esp32Led = JLed(jled::Esp32Hal(2, 7)).Blink(1000, 1000).Forever();
```

The `Esp32Hal(pin, chan)` constructor takes the pin number as the first
The `jled::Esp32Hal(pin, chan)` constructor takes the pin number as the first
argument and the ESP32 ledc channel number on the second position. Note that
using the above-mentioned constructor yields non-platform independent code, so
it should be avoided and is normally not necessary.
Expand Down

0 comments on commit b0373f9

Please sign in to comment.