From 3004208cb07882bd5c67241aa80cebda1d994846 Mon Sep 17 00:00:00 2001 From: Vincent Terraillon Date: Wed, 7 Jan 2015 15:45:59 +0100 Subject: [PATCH] use pin variable for init --- examples/blink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/blink.js b/examples/blink.js index d3a0fb0..ae0bdc6 100644 --- a/examples/blink.js +++ b/examples/blink.js @@ -4,7 +4,7 @@ wpi.setup('wpi'); var pin = 0; -wpi.pinMode(0, wpi.OUTPUT); +wpi.pinMode(pin, wpi.OUTPUT); var value = 1;