UNPKG

raspio

Version:

A raspberry advanced GPIO library for node.js

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