{"_id":"pwm","_rev":"26-a2c92c3aaf5bc28ab2dc0f26b2261a9a","name":"pwm","time":{"modified":"2022-06-25T02:39:56.906Z","created":"2014-03-26T17:57:55.351Z","0.0.1":"2014-03-26T17:57:58.935Z","0.0.2":"2014-03-26T18:09:51.074Z","0.0.3":"2014-03-31T11:55:35.895Z"},"maintainers":[{"name":"djdeath","email":"llandwerlin@gmail.com"}],"description":"Write to your PWM outputs","readme":"# pwm - API to use PWM gpio through /sys\n\nDerived from https://github.com/EnotionZ/GpiO\n\n##### Standard setup\n\n```js\nvar pwm = require(\"pwm\");\n\n// Calling export with a chip number and a pin number will export that\n// header and return a pwm header instance\nvar pwm5 = pwm.export(0, 5, function() {\n    console.log(\"Ready!\");\n});\n```\n##### API Methods\n\n```js\n// Enable pin\npwm5.setEnable(1, function() {\n    console.log(\"Enabled!\");\n});\n```\n```js\n// Set pin period\npwm5.setPeriod(1000000, function() {\n    console.log(\"Period set!\");\n});\n```\n```js\n// Set pin duty cycle\npwm5.setDutyCycle(500000, function() {\n    console.log(\"Duty cycle set!\");\n});\n```\n```js\n// Reset\npwm5.reset();\n```\n```js\n// unexport program when done\npwm5.unexport();\n```\n","versions":{"0.0.2":{"name":"pwm","version":"0.0.2","author":{"name":"Lionel Landwerlin","email":"lionel.g.landwerlin@linux.intel.com"},"description":"Write to your PWM outputs","keywords":["gpio","pwm","sysfs"],"main":"lib/pwm.js","repository":{"type":"git","url":"git://github.com/djdeath/pwm.git"},"devDependencies":{"sinon":"*"},"licenses":[{"type":"MIT","url":"https://raw.github.com/djdeath/pwm/master/LICENSE"}],"bugs":{"url":"https://github.com/djdeath/pwm/issues"},"_id":"pwm@0.0.2","dist":{"shasum":"2f2a6507a4363c2a99566ee2d8c9df1c1884098b","tarball":"https://registry.npmjs.org/pwm/-/pwm-0.0.2.tgz","integrity":"sha512-pDQekUXOWD8vLli63ldI4b3sIdJcLIyjwAeVsQQT6QkMaZrQg4Tv3wgFZfcgm4RE9WAwXYhTrnnwVSGH6DzpoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3KA0DHbRmyN+eJ0fcGxe7ypHTjPOF598lZ+hE2NQD+AiEA7RMwYUynieFJMX0gjVDX08vmRhVQCM8EUgGmoVUWKGU="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"djdeath","email":"llandwerlin@gmail.com"},"maintainers":[{"name":"djdeath","email":"llandwerlin@gmail.com"}]},"0.0.3":{"name":"pwm","version":"0.0.3","author":{"name":"Lionel Landwerlin","email":"lionel.g.landwerlin@linux.intel.com"},"description":"Write to your PWM outputs","keywords":["gpio","pwm","sysfs"],"main":"lib/pwm.js","repository":{"type":"git","url":"git://github.com/djdeath/pwm.git"},"devDependencies":{"sinon":"*"},"licenses":[{"type":"MIT","url":"https://raw.github.com/djdeath/pwm/master/LICENSE"}],"bugs":{"url":"https://github.com/djdeath/pwm/issues"},"_id":"pwm@0.0.3","dist":{"shasum":"09293789a90d4482213e76790d23738aa8b4d531","tarball":"https://registry.npmjs.org/pwm/-/pwm-0.0.3.tgz","integrity":"sha512-BePY2/qaPWvDsVuZzb+X48RTwBwDf/nAC1p7B3fx/kN8c1/nuTlNg6tq8J+NnBhZTfM5LR6xy8GQVA/hDwgNkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFR/pmn4U6iMHS0grBJGplr7CnMSdgHwlQCSqOl6qMdRAiEA9ncJT39u0LdYTLHuyWS6EowfxW6Keds8MFRz0TDbBeM="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"djdeath","email":"llandwerlin@gmail.com"},"maintainers":[{"name":"djdeath","email":"llandwerlin@gmail.com"}]}},"dist-tags":{"latest":"0.0.3"},"readmeFilename":"README.md","keywords":["gpio","pwm","sysfs"],"repository":{"type":"git","url":"git://github.com/djdeath/pwm.git"},"author":{"name":"Lionel Landwerlin","email":"lionel.g.landwerlin@linux.intel.com"},"bugs":{"url":"https://github.com/djdeath/pwm/issues"}}