pinoccio-serial

serial interface base objects for pinoccio microcontrollers https://pinocc.io

Usage no npm install needed!

<script type="module">
  import pinoccioSerial from 'https://cdn.skypack.dev/pinoccio-serial';
</script>

README

pinoccio-serial

serial interface base objects for pinoccio microcontrollers https://pinocc.io

var serialport = require('serialport');
var serial = require('pinoccio-serial');

var pinoccios = serial(serialport);

pinoccios.list(function(err,array of scouts found){
  console.log('found',found,'pinoccios connected');
});

pinoccios.connect(com,function(err,scout){
  scout.command("led.red",function(err,data){
    // send a bitlash command to the scout
  });

  // close the connection. callback optional
  scout.close(function(err){
    // closed
  });
});