8000 Update README.md and add example.js · marcelkottmann/esp32-javascript@de2f6b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit de2f6b8

Browse files
Update README.md and add example.js
1 parent 1478185 commit de2f6b8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ If you need to create your own C/C++ bindings for your JS code, this are the ste
6464
1. Create a file named `project.cpp` in the `./main` directory
6565
2. Implement the esp32_javascript_main callback function inside this `project.ccp`:
6666
```c
67+
#include "esp32-javascript.h"
68+
6769
extern void esp32_javascript_main(duk_context *ctx)
6870
{
6971
// do your own duktape bindings here
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Hello World");

0 commit comments

Comments
 (0)
0