Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 442 Bytes

File metadata and controls

26 lines (19 loc) · 442 Bytes

Ejemplo Potenciometro

Cableado

cableado potenciometro

Código

const five = require('johnny-five');

const board = new five.Board();

board.on('ready', () => {
  const potentiometer = new five.Sensor({
    pin: 'A3',
    freq: 250
  });

  potentiometer.on('data', () => {
    potentiometer.value;
  });

});

Referencia de la API

Sensor