This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Copyright (c) 2014 Roger Light <roger@atchoo.org> | |
# | |
# All rights reserved. This program and the accompanying materials | |
# are made available under the terms of the Eclipse Distribution License v1.0 | |
# which accompanies this distribution. | |
# | |
# The Eclipse Distribution License is available at | |
# http://www.eclipse.org/org/documents/edl-v10.php. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Copyright (c) 2010-2013 Roger Light <roger@atchoo.org> | |
# | |
# All rights reserved. This program and the accompanying materials | |
# are made available under the terms of the Eclipse Distribution License v1.0 | |
# which accompanies this distribution. | |
# | |
# The Eclipse Distribution License is available at | |
# http://www.eclipse.org/org/documents/edl-v10.php. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_feed_url": "https://api.xively.com/v2/feeds/1495248008.json", | |
"created": "2014-01-28T01:09:26.992036Z", | |
"creator": "https://xively.com/users/tomo_watanabe", | |
"datastreams": [ | |
{ | |
"at": "2014-02-03T09:42:19.028303Z", | |
"current_value": "33", | |
"id": "Humidity", | |
"max_value": "34.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = require('bonescript'); | |
b.pinMode('USR0', b.OUTPUT); | |
b.pinMode('USR1', b.OUTPUT); | |
b.pinMode('USR2', b.OUTPUT); | |
b.pinMode('USR3', b.OUTPUT); | |
b.digitalWrite('USR0', b.HIGH); | |
b.digitalWrite('USR1', b.HIGH); | |
b.digitalWrite('USR2', b.HIGH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (len == 0) { | |
// ハンドル名なし | |
// vfPrintf(&sSerStream, LB"[%08X:%d] ", sSerSeqRx.u32SrcAddr, sSerSeqRx.u8ReqNum); | |
sSerCmdOut.u16len -= 2; // 本文の長さに設定 | |
} else { | |
// ハンドル名あり | |
// vfPrintf(&sSerStream, LB"[%s:%d] ", &sSerCmdOut.au8data[i+1], sSerSeqRx.u8ReqNum); | |
sSerCmdOut.u16len = i; // 本文の長さに設定 | |
} |