How to use the bonescript.analogRead function in bonescript

To help you get started, we’ve selected a few bonescript examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jadonk / bone101 / examples / extras / bacon_cape / task8.html View on Github external
function readPOT() {
                    // Fetch slider location using asynchronous callback
                    // function onAnalogRead()
                    b.analogRead(POT, onAnalogRead);
                }
github jadonk / bone101 / examples / extras / escbrazil / task6.html View on Github external
function readPOT() {
                    // Fetch slider location using asynchronous callback
                    // function onAnalogRead()
                    b.analogRead(POT, onAnalogRead);
                }
github jadonk / bone101 / examples / BeagleBone / analog2.js View on Github external
function loop() {
    var value = b.analogRead(inputPin);
    console.log(value);
    setTimeout(loop, 1);
}
github pingo-io / pingo-py / experiments / beagle / js / analog.js View on Github external
function loop() {
    var value = b.analogRead(inputPin);
    b.analogWrite(outputPin, value);
    setTimeout(loop, 1);
};
github jadonk / bonescript / demo / analog.js View on Github external
function loop() {
    var value = b.analogRead(inputPin);
    b.analogWrite(outputPin, value);
    setTimeout(loop, 1);
};

bonescript

Physical computing library for embedded Linux

MIT
Latest version published 5 years ago

Package Health Score

42 / 100
Full package analysis