Connect CEE chA to the 5V output pin of the USB breakout. GND, D+ and D- are passed through by the breakout by default.
Use ConnectClientPython and the following script:
// Any copyright is dedicated to the Public Domain. | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
process.on('message', function(msg) { | |
console.log('reply'); | |
process.send(msg); | |
}); | |
process.ref(); |
#![feature(quote)] | |
extern crate syntax; | |
use syntax::print::pprust; | |
use syntax::codemap::DUMMY_SP; | |
fn main() { | |
with_fake_extctxt(|cx| { | |
let x = quote_expr!(cx, (a+b)); |
Connect CEE chA to the 5V output pin of the USB breakout. GND, D+ and D- are passed through by the breakout by default.
Use ConnectClientPython and the following script:
#Compiling AVR toolchain
http://distribute.atmel.no/tools/opensource/Atmel-AVR-Toolchain-3.4.1/avr/
Rebuild configure script with autoconf
in root and in bfd? May need to hack the Makefile.am if the autotools version is wrong.
(cd bfd; ./configure && make headers)
# Replace parts of `string` matching regex `pattern` with the callback value of an | |
# async function `fn`, which receives the regex match object and callback. Calls `cb` with | |
# final string when complete. | |
asyncReplace = (string, pattern, fn, cb)-> | |
console.assert(pattern.global, "asyncReplace pattern must be global (g flag)") | |
outChunks = [] | |
lastIndex = 0 | |
pendingCb = 0 |
// Bufferred BULK streaming | |
// http://nonolithlabs.com | |
// (C) 2011 Kevin Mehall (Nonolith Labs) <[email protected]> | |
// | |
// Licensed under the terms of the GNU GPLv3+ | |
#include "packetbuffer.h" | |
// CEE to PC buffer | |
Ringbuf in_ring; |
#include "usb.h" | |
// PORT C | |
#define QDEC1 (1<<2) | |
#define QDEC2 (1<<3) | |
int main(void){ | |
sei(); | |
#include "usb.h" | |
// PORT C | |
#define PWM1 (1<<0) | |
#define PWM2 (1<<1) | |
int main(void){ | |
sei(); | |
rtmpdump -v -r rtmp://livestfslivefs.fplive.net/aljazeeraflashlive-live -y "aljazeera_eng_high?videoId=883816736001&lineUpId=&pubId=6650033.03001&playerId=751182905001&affiliateId=" -W "http://admin.brightcove.com/viewer/us20110916.1045/BrightcoveBootloader.swf" -p "http://english.aljazeera.net/watch_now/" -a "aljazeeraflashlive-live?videoId=883816736001&lineUpId=&pubId=6650033.03001&playerId=751182905001&affiliateId=" | mplayer - |
void setup(){ | |
pinMode(6,INPUT); // Button | |
digitalWrite(6, HIGH); // Enable pull-up on pin 6 | |
pinMode(8,OUTPUT); // LED | |
} | |
int counter = 0; | |
int state = 0; | |
void loop(){ | |
int button = digitalRead(6); |