How to use the pigpio.terminate function in pigpio

To help you get started, we’ve selected a few pigpio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bang-olufsen / create / Beocreate2 / beo-extensions-experimental / led / index.js View on Github external
function terminate() {
		turnOff();
		pigpio.terminate(); // pigpio C library terminated here
		beoBus.emit("general", {header: "shutdownComplete", content: {extension: "led"}});
	}
github victordibia / tjwave / wave.js View on Github external
process.on('SIGINT', function () {
  pigpio.terminate();
  process.nextTick(function () { process.exit(0); });
});
github victordibia / tjwave / wave_conversation.js View on Github external
process.on('SIGINT', function () {
  pigpio.terminate();
  ws281x.reset();
  process.nextTick(function () { process.exit(0); });
});

pigpio

Fast GPIO, PWM, servo control, state change notification, and interrupt handling on the Raspberry Pi

MIT
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis