Skip to content

Commit 589cff6

Browse files
committed
Update wasm apps
1 parent 30729a8 commit 589cff6

File tree

22 files changed

+738
-664
lines changed

22 files changed

+738
-664
lines changed
Binary file not shown.

examples_pio/Wasm_Advanced/wasm_apps/assemblyscript/app.wasm.h

Lines changed: 182 additions & 304 deletions
Large diffs are not rendered by default.

examples_pio/Wasm_Advanced/wasm_apps/assemblyscript/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples_pio/Wasm_Advanced/wasm_apps/assemblyscript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"license": "MIT",
33
"scripts": {
44
"build": "npm run asbuild:optimized && xxd -i app.wasm > app.wasm.h",
5-
"asbuild:optimized": "npx asc app.ts -b app.wasm -t app.wat -O3z --runtime half --noAssert --use abort="
5+
"asbuild:optimized": "npx asc app.ts -b app.wasm -t app.wat -O3z --runtime stub --noAssert --use abort="
66
},
77
"devDependencies": {
8-
"assemblyscript": "^0.9.0"
8+
"assemblyscript": "^0.18.0"
99
}
1010
}
Binary file not shown.

examples_pio/Wasm_Advanced/wasm_apps/rust/app.wasm.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ unsigned char app_wasm[] = {
1010
0x69, 0x74, 0x61, 0x6c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x00, 0x00, 0x07,
1111
0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x05, 0x64, 0x65, 0x6c, 0x61,
1212
0x79, 0x00, 0x02, 0x03, 0x02, 0x01, 0x01, 0x05, 0x03, 0x01, 0x00, 0x01,
13-
0x06, 0x0d, 0x02, 0x7f, 0x00, 0x41, 0x90, 0x10, 0x0b, 0x7f, 0x00, 0x41,
14-
0x90, 0x10, 0x0b, 0x07, 0x2e, 0x04, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72,
15-
0x79, 0x02, 0x00, 0x0a, 0x5f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65,
16-
0x6e, 0x64, 0x03, 0x00, 0x0b, 0x5f, 0x5f, 0x68, 0x65, 0x61, 0x70, 0x5f,
17-
0x62, 0x61, 0x73, 0x65, 0x03, 0x01, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72,
18-
0x74, 0x00, 0x05, 0x0a, 0x38, 0x01, 0x36, 0x01, 0x01, 0x7f, 0x41, 0x81,
19-
0x10, 0x41, 0x0f, 0x10, 0x00, 0x41, 0x80, 0x10, 0x41, 0x01, 0x10, 0x00,
13+
0x06, 0x0d, 0x02, 0x7f, 0x00, 0x41, 0x95, 0x10, 0x0b, 0x7f, 0x00, 0x41,
14+
0x95, 0x10, 0x0b, 0x07, 0x2e, 0x04, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72,
15+
0x79, 0x02, 0x00, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x00, 0x05,
16+
0x0a, 0x5f, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x64, 0x03,
17+
0x00, 0x0b, 0x5f, 0x5f, 0x68, 0x65, 0x61, 0x70, 0x5f, 0x62, 0x61, 0x73,
18+
0x65, 0x03, 0x01, 0x0a, 0x38, 0x01, 0x36, 0x01, 0x01, 0x7f, 0x41, 0x81,
19+
0x10, 0x41, 0x14, 0x10, 0x00, 0x41, 0x80, 0x10, 0x41, 0x01, 0x10, 0x00,
2020
0x10, 0x01, 0x22, 0x00, 0x41, 0x01, 0x10, 0x02, 0x03, 0x40, 0x20, 0x00,
2121
0x41, 0x01, 0x10, 0x03, 0x41, 0xe4, 0x00, 0x10, 0x04, 0x20, 0x00, 0x41,
2222
0x00, 0x10, 0x03, 0x41, 0x84, 0x07, 0x10, 0x04, 0x0c, 0x00, 0x0b, 0x00,
23-
0x0b, 0x0b, 0x17, 0x01, 0x00, 0x41, 0x80, 0x10, 0x0b, 0x10, 0x0a, 0x52,
23+
0x0b, 0x0b, 0x1c, 0x01, 0x00, 0x41, 0x80, 0x10, 0x0b, 0x15, 0x0a, 0x52,
2424
0x75, 0x73, 0x74, 0x20, 0x69, 0x73, 0x20, 0x72, 0x75, 0x6e, 0x6e, 0x69,
25-
0x6e, 0x67
25+
0x6e, 0x67, 0x20, 0xf0, 0x9f, 0x98, 0x8e
2626
};
27-
unsigned int app_wasm_len = 278;
27+
unsigned int app_wasm_len = 283;

examples_pio/Wasm_Advanced/wasm_apps/rust/src/app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![no_std]
2-
#![feature(core_intrinsics)]
32

43
mod arduino;
54
use arduino::*;

examples_pio/Wasm_Advanced/wasm_apps/rust/src/arduino.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ pub fn println(string: &str) {
3838

3939
#[panic_handler]
4040
fn handle_panic(_: &core::panic::PanicInfo) -> ! {
41-
unsafe { core::intrinsics::unreachable() }
41+
unsafe { core::arch::wasm32::unreachable() }
4242
}
Binary file not shown.

examples_pio/Wasm_Advanced/wasm_apps/tinygo/app.wasm.h

Lines changed: 433 additions & 268 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)