You are reading a single comment by @Nickax and its replies. Click here to read the full conversation.
  • Hi Gordon

    I've recently purchased a Pixel JS for a specific project

    I'm converting a minibus to a campervan - and want to run (temperature control) the fridge (off a UPS) , Switch the Inverter out as the fridge starts, Run hot and cold water pumps (mix), and pumps to scavenge waste heat from the exhaust to heat water.

    I'm not having the greatest user experience with the Pixel .. the latest in a line of frustrations is that it doesn't appear to find any of the 'requred' modules

    here's the output - using a one of your simple examples

    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
     1v99 (c) 2018 G.Williams
    >var ow = new OneWire(A1);
    =OneWire: { "pin": A1 }
    >var sensor = require("DS18B20").connect(ow);
    Uncaught Error: Module DS18B20 not found
     at line 1 col 31
    var sensor = require("DS18B20").connect(ow);
    >setInterval(function() {
    :  sensor.getTemp(function (temp) {
    :    console.log("Temp is "+te1000);

    I haven't updated the firmware - as I hoped that as shipped it might be able to run such a simple example.

    I'm sure i'm doing something stupid

    I have had the flashing LED example working
    I'm using the native IDE on a Windows 10 Machine

    My module extensions are set thus:-

    Module URL

    Where to search online for modules when require() is used
    Module Extensions

    The file extensions to use for each module. These are checked in order and the first that exists is used. One or more file extensions (including the dot) separated by |


    Hope you can help put me on track



Avatar for Nickax @Nickax started