Skip to content

Commit 04a4fb4

Browse files
committed
Update example
1 parent 207ba15 commit 04a4fb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/Wasm_Blink/Wasm_Blink.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
// Redefine the default LED pin here, if needed
14-
#define LED_BUILTIN 13
14+
#define LED_PIN 13
1515

1616
#define WASM_STACK_SLOTS 1024
1717
#define NATIVE_STACK_SIZE 32768
@@ -23,8 +23,8 @@
2323
* WebAssembly app
2424
*
2525
* This is essentially a simple "Blink" sketch, compiled to WebAssembly
26-
* The file was generated from ./wasm_apps/cpp
27-
* You can also find examples for Rust, AssemblyScript, TinyGo
26+
* You can build a wasm binary using C/C++, Rust, AssemblyScript, TinyGo, ...
27+
* See https://github.com/wasm3/wasm3-arduino/tree/master/wasm_apps for details
2828
*/
2929

3030
unsigned char app_wasm[] = {
@@ -119,7 +119,7 @@ m3ApiRawFunction(m3_arduino_getPinLED)
119119
{
120120
m3ApiReturnType (uint32_t)
121121

122-
m3ApiReturn(LED_BUILTIN);
122+
m3ApiReturn(LED_PIN);
123123
}
124124

125125
// Dummy, for TinyGO

0 commit comments

Comments
 (0)