{"_id":"pcduino","_rev":"22-ecc13fd6e51090fc4d15718cee847e19","name":"pcduino","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"pcduino","version":"0.0.1","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","main":"index.js","repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"},"keywords":["pcduino","arduino","GPIO","I2C","sparkfun","SPI"],"author":{"name":"Jim Heising"},"license":"MIT","readme":"node.pcduino\n============\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.\n","readmeFilename":"README.md","_id":"pcduino@0.0.1","dist":{"shasum":"fc93590be27874163cc701581e94a24fb0146a94","tarball":"https://registry.npmjs.org/pcduino/-/pcduino-0.0.1.tgz","integrity":"sha512-miO708pO0b5SpLjnqlkQBRbvxwvrhezUMax3HTorOpFCGtw9Pw23S1wHBt2Yi1USbWQ1Wcx4hBfJl/7pH4H+Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSB0lHKJoM+VVecQ1vM4jI0ejIskxvs2p2TrOksLLdkAIgAY52Bro8DuiXVab4D7bWNRudqLfo8opnZyT1Y8KDy1Q="}]},"_from":"pcduino","_npmVersion":"1.2.15","_npmUser":{"name":"jheising","email":"jheising@gmail.com"},"maintainers":[{"name":"jheising","email":"jheising@gmail.com"}],"directories":{}},"0.0.2":{"name":"pcduino","version":"0.0.2","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","main":"index.js","repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"},"keywords":["pcduino","arduino","GPIO","I2C","sparkfun","SPI"],"author":{"name":"Jim Heising"},"license":"MIT","readme":"node.pcduino\n============\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.\n\n[ THIS IS A WORK IN PROGRESS ]","readmeFilename":"README.md","_id":"pcduino@0.0.2","dist":{"shasum":"839b34dda65b0518c719ec451f7010ac74609cae","tarball":"https://registry.npmjs.org/pcduino/-/pcduino-0.0.2.tgz","integrity":"sha512-rosAObN06Yr2+QlPO9pka8HaRYvIhT5p31bWsWxoGkn5kQtdYT8oNVJdjW0GLhBt8L2uaXrLDigIdnPJyX3a+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjAGxc/5y+mFVPap2l/tIO6sFjuZ4pb5QxmRwWWd6BxAiEAptvq93R8Ri19/8AwAvNTBMiIc71it91BdL+95ySy7Fk="}]},"_from":"pcduino","_npmVersion":"1.2.15","_npmUser":{"name":"jheising","email":"jheising@gmail.com"},"maintainers":[{"name":"jheising","email":"jheising@gmail.com"}],"directories":{}},"0.0.3":{"name":"pcduino","version":"0.0.3","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","main":"pcduino.js","repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"},"keywords":["pcduino","arduino","GPIO","I2C","sparkfun","SPI"],"author":{"name":"Jim Heising","email":"jheising@gmail.com"},"license":"MIT","readme":"# node.pcduino\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller. It tries to maintain as close a match as possible to the original Arduino C++ functions.\n\n## Installation\n\nFrom the command line:\n\n    $ npm install pcduino\n\nOr in your package.json file:\n\n\t{\n    \t\"dependencies\" : {\n    \t\t\"pcduino\" : \"*\",\n    \t}\n    }\n\n## A digital example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar digital = pcduino.digital;\n\n// digital.simulate(true); - Can be used for testing purposes when you're not running on a pcDuino. This will read and write to dummy files.\n\nconsole.log(\"There are \" + digital.PIN_COUNT + \" digital GPIO pins on the pcDuino.\");\n\n\ndigital.pinMode(10, digital.INPUT); // Set pin #10 to input\ndigital.pinMode(10, digital.INPUT_PU); // Set pin #10 to input with pull-up\n\n\nvar state = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.pinMode(10, digital.OUTPUT);          // Set pin #10 to output\n\n\ndigital.digitalWrite(10, digital.HIGH);       // Set pin #10 HIGH\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.digitalWrite(10, digital.LOW);        // Set pin #10 LOW\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n```\n\n## An analog example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar analog = pcduino.analog;\n\n// analog.simulate(true); - Can be used for testing purposes when you're not running on a pcDuino. This will read and write to dummy files.\n\nconsole.log(\"There are \" + analog.PIN_COUNT + \" analog pins on the pcDuino.\");\n\n// Note that the only valid pins for analog output are 3, 5, 6, 9, 10, and 11. These are PWM (digital) pins on the pcDuino and not to be confused with the analog input pins. Any other pin specified will throw an error.\nvar maxValue = analog.maxWriteValue(5);\nconsole.log(\"The maximum number that can be written to analog pin #5 is \" + maxValue);\n\nanalog.analogWrite(5, maxValue);            // Turn our pin fully up\n\n// Note this is not the same as the analog write pin #5! This maps to the analog input pins on the pcDuino.\nvar readValue = analog.analogRead(5);\nconsole.log(\"The analog value of pin #5 is \" + readValue + \". Note this is not the same as the analog write pin #5!\");\n```\n\n## Limitations\n\nThe current version of this module uses the standard unix filesystem mappings to the GPIO pins which, while fast enough for most general purposes, are not fast enough to perform high-speed protocols (like 1-wire for example).\nThere is a subdirectory called WIP, which is a start to some pure C++ native code access to the pins— although even it appears to be too slow and will probably require the use of interrupts or DMA at some point.\n\n","readmeFilename":"README.md","_id":"pcduino@0.0.3","dist":{"shasum":"53917069098699ed78a50368205325ebba866a2d","tarball":"https://registry.npmjs.org/pcduino/-/pcduino-0.0.3.tgz","integrity":"sha512-IZmT5961nC696bdSjTS7DJ6TdVS5OWwjjfvLbWKrsnU8+bHWyQWlRBUA8is3zGyYZcWVFVd06Y18bccA8OzrFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPGOafO9sEJkG7qXLeD7rk4MV7oJCi5wXX2DbsG1uk7QIhAIoCdn3uUgmzMH0G0dVlemRJnJkRolCYrTi1txJIg19P"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"jheising","email":"jheising@gmail.com"},"maintainers":[{"name":"jheising","email":"jheising@gmail.com"}]},"0.0.5":{"name":"pcduino","version":"0.0.5","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","main":"pcduino.js","repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"},"keywords":["pcduino","arduino","GPIO","I2C","sparkfun","SPI"],"author":{"name":"Jim Heising","email":"jheising@gmail.com"},"license":"MIT","readme":"# node.pcduino\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller. It tries to maintain as close a match as possible to the original Arduino C++ functions.\n\n**NOTE: Analog functions aren't working right now, pending a new rewrite as the pcDuino OS has been updated**\n\n## Installation\n\nFrom the command line:\n\n    $ npm install pcduino\n\nOr in your package.json file:\n\n\t{\n    \t\"dependencies\" : {\n    \t\t\"pcduino\" : \"*\",\n    \t}\n    }\n\n## A digital example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar digital = pcduino.digital;\n\n// digital.simulate(true); - Can be used for testing purposes when you're not running on a pcDuino. This will read and write to dummy files.\n\nconsole.log(\"There are \" + digital.PIN_COUNT + \" digital GPIO pins on the pcDuino.\");\n\n\ndigital.pinMode(10, digital.INPUT); // Set pin #10 to input\ndigital.pinMode(10, digital.INPUT_PU); // Set pin #10 to input with pull-up\n\n\nvar state = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.pinMode(10, digital.OUTPUT);          // Set pin #10 to output\n\n\ndigital.digitalWrite(10, digital.HIGH);       // Set pin #10 HIGH\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.digitalWrite(10, digital.LOW);        // Set pin #10 LOW\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n```\n\n## An analog example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar analog = pcduino.analog;\n\n// analog.simulate(true); - Can be used for testing purposes when you're not running on a pcDuino. This will read and write to dummy files.\n\nconsole.log(\"There are \" + analog.PIN_COUNT + \" analog pins on the pcDuino.\");\n\n// Note that the only valid pins for analog output are 3, 5, 6, 9, 10, and 11. These are PWM (digital) pins on the pcDuino and not to be confused with the analog input pins. Any other pin specified will throw an error.\nvar maxValue = analog.maxWriteValue(5);\nconsole.log(\"The maximum number that can be written to analog pin #5 is \" + maxValue);\n\nanalog.analogWrite(5, maxValue);            // Turn our pin fully up\n\n// Note this is not the same as the analog write pin #5! This maps to the analog input pins on the pcDuino.\nvar readValue = analog.analogRead(5);\nconsole.log(\"The analog value of pin #5 is \" + readValue + \". Note this is not the same as the analog write pin #5!\");\n```\n\n## Limitations\n\nThe current version of this module uses the standard unix filesystem mappings to the GPIO pins which, while fast enough for most general purposes, are not fast enough to perform high-speed protocols (like 1-wire for example).\nThere is a subdirectory called WIP, which is a start to some pure C++ native code access to the pins— although even it appears to be too slow and will probably require the use of interrupts or DMA at some point.\n\n","readmeFilename":"README.md","_id":"pcduino@0.0.5","dist":{"shasum":"99a9efa90829f00c071396b38aed6beb19cea6bb","tarball":"https://registry.npmjs.org/pcduino/-/pcduino-0.0.5.tgz","integrity":"sha512-y82yOy1TT2V/eSHGZo/iG5g2K1M0R4jyaisTG5CCPxq0NO/+iiV+6tUeZqQ7iSH7PIqcL0g5ZZqPMjf0HvjVLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChfFxqqCbk6Wqzc8mDzaSX93OrSFHPGVKSlJoky4zEwAiEAnymp/kBZj5p4+GTJMuJcHPyUsMBdLk+WNNI/q5as6NY="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"jheising","email":"jheising@gmail.com"},"maintainers":[{"name":"jheising","email":"jheising@gmail.com"}]},"0.0.6":{"name":"pcduino","version":"0.0.6","description":"A node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.","main":"pcduino.js","repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"},"keywords":["pcduino","arduino","GPIO","I2C","sparkfun","SPI"],"author":{"name":"Jim Heising","email":"jheising@gmail.com"},"license":"MIT","scripts":{"install":"node-gyp rebuild"},"gypfile":true,"readme":"# node.pcduino\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller. It tries to maintain as close a match as possible to the original Arduino C++ functions.\n\n## Installation\n\nFrom the command line:\n\n    $ npm install pcduino\n\nOr in your package.json file:\n\n\t{\n    \t\"dependencies\" : {\n    \t\t\"pcduino\" : \"*\",\n    \t}\n    }\n\n## A digital example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar digital = pcduino.digital;\n\n// digital.simulate(true); - Can be used for testing purposes when you're not running on a pcDuino. This will read and write to dummy files.\n\nconsole.log(\"There are \" + digital.PIN_COUNT + \" digital GPIO pins on the pcDuino.\");\n\n\ndigital.pinMode(10, digital.INPUT); // Set pin #10 to input\ndigital.pinMode(10, digital.INPUT_PU); // Set pin #10 to input with pull-up\n\n\nvar state = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.pinMode(10, digital.OUTPUT);          // Set pin #10 to output\n\n\ndigital.digitalWrite(10, digital.HIGH);       // Set pin #10 HIGH\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n\n\ndigital.digitalWrite(10, digital.LOW);        // Set pin #10 LOW\n\nstate = digital.digitalRead(10);\nconsole.log(\"The value of pin #10 is now \" + (state == digital.HIGH ? \"HIGH\" : \"LOW\"));\n```\n\n## An analog example\n\n```js\nvar pcduino = require(\"pcduino\");\nvar analog = pcduino.analog;\n\nconsole.log(\"There are \" + analog.PIN_COUNT + \" analog pins on the pcDuino.\");\n\n// Note that the only valid pins for analog output are 3, 5, 6, 9, 10, and 11. These are PWM (digital) pins on the pcDuino and not to be confused with the analog input pins. Any other pin specified will throw an error.\nvar maxValue = analog.maxWriteValue(5);\nconsole.log(\"The maximum number that can be written to analog pin #5 is \" + maxValue);\n\nanalog.analogWrite(5, maxValue);            // Turn our pin fully up\n\n// Note this is not the same as the analog write pin #5! This maps to the analog input pins on the pcDuino. Valid pins are 0, 1, 2, 3, 4, 5.\nvar readValue = analog.analogRead(5);\nconsole.log(\"The analog value of pin #5 is \" + readValue + \". Note this is not the same as the analog write pin #5!\");\n```\n\n## Limitations\n\nThe current version of this module uses the standard unix filesystem mappings to the GPIO pins which, while fast enough for most general purposes, are not fast enough to perform high-speed protocols (like 1-wire for example).\nThere is a subdirectory called WIP, which is a start to some pure C++ native code access to the pins— although even it appears to be too slow and will probably require the use of interrupts or DMA at some point.\n\n","readmeFilename":"README.md","_id":"pcduino@0.0.6","dist":{"shasum":"e0849ff8e4fd5860500074b5237612980a330602","tarball":"https://registry.npmjs.org/pcduino/-/pcduino-0.0.6.tgz","integrity":"sha512-Pb42kW3bQTFlOXdO20gPSb72PnrS6ZWSNUTkvC/BTWncsm1yQkf3icsPzk/y4u+0j9qgZJG/ScWDiy5Mr6jKng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4vsUjYb+Y3hTAKlhAUifxDLocJpzrcJqfcNhKTqy34AiB+SRrQfBMm0GZtXCiOLeACx17LwAy2IUxSeGMbCkroqA=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"jheising","email":"jheising@gmail.com"},"maintainers":[{"name":"jheising","email":"jheising@gmail.com"}]}},"readme":"node.pcduino\n============\n\nA node.js module for accessing the Arduino compatible pins on the pcDuino microcontroller.\n","maintainers":[{"name":"jheising","email":"jheising@gmail.com"}],"time":{"modified":"2022-06-23T16:12:57.287Z","created":"2013-05-11T04:02:24.817Z","0.0.1":"2013-05-11T04:02:26.183Z","0.0.2":"2013-05-11T04:07:40.381Z","0.0.3":"2013-05-17T03:53:13.245Z","0.0.5":"2013-12-18T18:50:18.058Z","0.0.6":"2013-12-18T20:05:29.512Z"},"author":{"name":"Jim Heising","email":"jheising@gmail.com"},"repository":{"type":"git","url":"https://github.com/jheising/node.pcduino.git"}}