Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[Samples] Update ButtonEnable.js and Blink-k64f.js on zjs-0.1 #457

Merged
merged 2 commits into from
Nov 18, 2016

Conversation

xiaolongx
Copy link
Contributor

  1. Fix onchange event in ButtonEnable.js
  2. Use pins.LEDG instead of pins.D5 in samples/arduino/basics/Blink-k64f.js

1. Fix onchange event in ButtonEnable.js
2. Use pins.LEDG instead of pins.D5 in samples/arduino/basics/Blink-k64f.js
var value = btn1.read();
led1.write(value);

if (value) {
// set up btn2 to toggle led2 while btn1 is down
btn2.on('change', function () {
// set up btn2 to toggle led2 while btn1 is down
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align comment here

@jimmy-huang
Copy link
Contributor

+1

@jimmy-huang jimmy-huang merged commit 0c138d2 into intel:zjs-0.1 Nov 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants