Tidied examples
This commit is contained in:
parent
3cc7df6b74
commit
6c59169bed
@ -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...");
|
||||||
|
@ -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...");
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
const PoweredUP = require("..");
|
const PoweredUP = require("..");
|
||||||
const poweredUP = new PoweredUP.PoweredUP();
|
|
||||||
|
const poweredUP = new PoweredUP.PoweredUP()
|
||||||
|
|
||||||
const trains = [
|
const trains = [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user