Tidied examples

This commit is contained in:
Nathan Kunicki 2018-08-16 15:23:31 +01:00
parent 3cc7df6b74
commit 6c59169bed
3 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
// This example won't work by itself, this is the code used to automate this train layout: https://www.youtube.com/watch?v=Tyzo_hHFiUc // This example won't work by itself, this is the code used to automate this train layout: https://www.youtube.com/watch?v=Tyzo_hHFiUc
// It is included here as an example. // It is included here as an example.
const PoweredUP = require("..").PoweredUP; const PoweredUP = require("..");
const poweredUP = new PoweredUP(); const poweredUP = new PoweredUP.PoweredUP();
poweredUP.scan(); // Start scanning for hubs poweredUP.scan(); // Start scanning for hubs
console.log("Looking for Hubs..."); console.log("Looking for Hubs...");

View File

@ -4,9 +4,9 @@
* *
*/ */
const PoweredUP = require("..").PoweredUP; const PoweredUP = require("..");
const poweredUP = new PoweredUP(); const poweredUP = new PoweredUP.PoweredUP();
poweredUP.scan(); // Start scanning for hubs poweredUP.scan(); // Start scanning for hubs
console.log("Looking for Hubs..."); console.log("Looking for Hubs...");

View File

@ -1,5 +1,6 @@
const PoweredUP = require(".."); const PoweredUP = require("..");
const poweredUP = new PoweredUP.PoweredUP();
const poweredUP = new PoweredUP.PoweredUP()
const trains = [ const trains = [
{ {