Skip to content
Snippets Groups Projects
Commit b6ea1c47 authored by Sam Calisch's avatar Sam Calisch
Browse files

added node rpio

parent 5a72418e
No related branches found
No related tags found
No related merge requests found
Pipeline #
<html>
<head>
<style>
pre code {
background-color: #eee;
border: 1px solid #999;
display: block;
padding: 20px;
}
</style>
</head>
<body>
<h1>RaspberryPi Zero W with BCM2835</h1>
<figure>
<img src='node_rpio.png'>
<figcaption>Ring oscillator with node-rpio.</figcaption>
</figure>
<p>This ring oscillator uses the <a href='https://github.com/jperkin/node-rpio'>node rpio</a> from Jonathan Perkin. The code is available <a href='ring.js'>here</a>, or visible below.</p>
<pre>
<code>
var rpio = require('rpio');
rpio.open(3, rpio.OUTPUT);
rpio.open(5, rpio.INPUT);
while(1){rpio.write(3, 1-rpio.read(5) ); }
</code>
</pre>
</body>
</html>
\ No newline at end of file
RaspberryPiZero_node_rpio/node_rpio.png

6.55 KiB

var rpio = require('rpio');
rpio.open(3, rpio.OUTPUT);
rpio.open(5, rpio.INPUT);
while(1){rpio.write(3, 1-rpio.read(5) ); }
\ No newline at end of file
......@@ -127,9 +127,19 @@
"subdirectory_path":"RaspberryPiZero_bcm2835",
"dev_board_price":5.00,
"dev_board_sales_link":"",
"ic_price":2.00,
"ic_price":0.00,
"ic_sales_link":"",
"ring_period":350
}
},
{
"name":"RPiZero, node rpio",
"serial_number":"",
"subdirectory_path":"RaspberryPiZero_node_rpio",
"dev_board_price":5.00,
"dev_board_sales_link":"",
"ic_price":0.00,
"ic_sales_link":"",
"ring_period":7648
}
]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment