'use strict';

var ev3 = require('../index');

ev3.button.enter.on('press', function () {
    console.log('Up button pressed!');

    console.log('Battery voltage: ' + ev3.battery.getVoltage());
});

ev3.button.enter.on('release', function () {
    console.log('Up button released!');
});

@@ -36,24 +36,140 @@
 ./index');%0A%0A
+console.log('ev3 started...');%0A%0Aev3.button.up.on('press', function () %7B%0A    console.log('up button pressed!');%0A%7D);%0A%0A
 ev3.button.e
@@ -208,34 +208,37 @@
    console.log('
-Up
+enter
  button pressed!
@@ -263,9 +263,9 @@
 og('
-B
+b
 atte
@@ -327,25 +327,200 @@
 ton.
-enter
+down.on('press', function () %7B%0A    console.log('down button pressed!');%0A%7D);%0A%0Aev3.button.right
 .on('
+p
 re
-lease
+ss', function () %7B%0A    console.log('right button pressed!');%0A%7D);%0A%0Aev3.button.left.on('press
 ', f
@@ -553,18 +553,20 @@
 og('
-Up
+left
  button 
 rele
@@ -565,18 +565,130 @@
 ton 
+p
 re
-leased!'
+ssed!');%0A%7D);%0A%0Aev3.button.escape.on('press', function () %7B%0A    console.log('escape button pressed!');%0A%0A    process.exit(
 );%0A%7D

Update ev3.js