Skip to content

Commit 1fa0917

Browse files
committed
Add instructions for including esp-idf driver component
1 parent 1e0ef56 commit 1fa0917

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ In `esp32_build_config.rb`, at the end of the `MRuby::CrossBuild` block, add the
1010
conf.gem :github => 'mruby-esp32/mruby-esp32-gpio'
1111
```
1212

13+
In `CMakeLists.txt`, make sure the line `PRIV_REQUIRES` includes the `driver` component. Add it if needed:
14+
15+
```
16+
add_prebuilt_library(
17+
libmruby ${LIBMRUBY_FILE}
18+
PRIV_REQUIRES esp_wifi esp_hw_support esp_rom mqtt driver
19+
)
20+
````
21+
1322
## Example
1423
```ruby
1524
include ESP32::GPIO

0 commit comments

Comments
 (0)