Skip to content

Instantly share code, notes, and snippets.

@zerotacg
zerotacg / arduino-rc-receiver.ino
Created Jun 17, 2017
simple unoptimized arduino code to read data from an rc receiver and send via serial
View arduino-rc-receiver.ino
#define CHANNEL_0 14
#define CHANNEL_1 15
#define CHANNEL_2 16
uint16_t ch0;
uint16_t ch1;
uint16_t ch2;
void setup() {
Serial.begin(19200);
View network-cache-race.js
function request( delay, value, fail )
{
return new Promise(function( fullfill, reject ) {
setTimeout( (fail ? reject : fullfill).bind( this, value), delay );
});
}
var render = console.log.bind( console, "render" )
, error = console.log.bind( console, "error" )
;