Install
Server and app
-
Clone the
radiodan server
andexample
applications:$ git clone https://github.com/radiodan/radiodan.js $ git clone https://github.com/radiodan/client-web-example
-
Run
npm install
in both directories.
pi@raspberrypi ~/bluez-5.11 $ cat config.log | |
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by bluez configure 5.11, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --disable-systemd | |
## --------- ## |
var wpi = require('./build/Release/wiringPi'); | |
wpi.wiringPiSetup(); | |
var colour = [255, 255, 0]; | |
var pins = [0, 2, 3 ]; | |
pins.forEach(createPwmPin); |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
Clone the radiodan server
and example
applications:
$ git clone https://github.com/radiodan/radiodan.js
$ git clone https://github.com/radiodan/client-web-example
Run npm install
in both directories.
import pifacecad | |
import string | |
# Create object | |
cad = pifacecad.PiFaceCAD() | |
cad.lcd.backlight_on() | |
# Config | |
code_length = 8 | |
characters = list(string.digits + string.ascii_lowercase) |
var xhr = (function () { | |
'use strict'; | |
// xhr.get(), xhr.post() convenience methods | |
['get', 'post', 'put', 'delete'].forEach(function (method) { | |
request[method] = requestWithMethod(method); | |
}); | |
function requestWithMethod(method) { | |
return function (url, params) { |
Either provision a radiodan from scratch using:
https://github.com/radiodan/provision
If you already have a provisioned radiodan, run the following commands to update the software:
// Turn LED straight on, no transition | |
powerLED.change({ | |
colour: [255, 255, 255] | |
}); | |
rgb.on() | |
rgb.colour([255, 255, 255]) | |
rgb.off() | |
// Fade LED on rather than just |
This relies on the jp2a JPEG to ASCII tool and the Windows print utility.
console.log('hello'); | |
var faye = require('faye'); | |
var fs = require('fs'); | |
var spawn = require('child_process').spawn; | |
var exec = require('child_process').exec; | |
var path = require('path'); | |
var Promise = require('es6-promise').Promise; |