Skip to content
Snippets Groups Projects
Select Git revision
  • b6ea1c47c32be1b206d20cd262c5f6e2ad4d8672
  • master default protected
  • jake
3 results

index.html

Blame
  • user avatar
    Sam Calisch authored
    b6ea1c47
    History
    index.html 653 B
    <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>