mirror of
https://github.com/google/pebble.git
synced 2025-05-19 01:44:53 +00:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
15
third_party/jerryscript/targets/esp8266/js/blink.js
vendored
Normal file
15
third_party/jerryscript/targets/esp8266/js/blink.js
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
var check = 1;
|
||||
|
||||
function blink() {
|
||||
var inp = gpio_get(0);
|
||||
var blk = (check > 8) ? 1 - inp : inp;
|
||||
gpio_set(2, blk);
|
||||
check = check >= 10 ? 1 : check+1;
|
||||
}
|
||||
|
||||
// GPIO 0 as input
|
||||
// GPIO 2 as output
|
||||
gpio_dir(0, 0);
|
||||
gpio_dir(2, 1);
|
||||
|
||||
print("blink js OK");
|
4
third_party/jerryscript/targets/esp8266/js/main.js
vendored
Normal file
4
third_party/jerryscript/targets/esp8266/js/main.js
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
function sysloop(ticknow) {
|
||||
blink();
|
||||
};
|
||||
print("main js OK");
|
Loading…
Add table
Add a link
Reference in a new issue