text: "use strict";
  
  const Gpio = require('../onoff').Gpio; // Gpio class
  const led = new Gpio(17, 'out');       // Export GPIO17 as an output
  
  // Toggle the state of the LED connected to GPIO17 every 200ms 'count' times.
  // Here asynchronous methods are used. Synchronous methods are also available.
  const blinkLed = (count) => {
    if (count <= 0) {
      return led.unexport();
    }
  
    led.read((err, value) => { // Asynchronous read
      if (err) {
        throw err;
      }
  
      led.write(value ^ 1, (err) => { // Asynchronous write
        if (err) {
          throw err;
        }
      });
    });
  
    setTimeout(() => {
      blinkLed(count - 1);
    }, 200);
  };
  
  blinkLed(25);
  
  