UNPKG

raspio

Version:

A raspberry advanced GPIO library for node.js

9 lines (6 loc) 127 B
"use strict"; module.exports = function (total) { return function (step) { return step === 0 ? (total - 1) : 0; } };