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
Connect your device and put into DFU mode. Press [ENTER] to continue...make -C ../../../services-dynalib clean | |
make[1]: Entering directory '/home/vic/github/firmware/services-dynalib' | |
rm -f ../build/target/services-dynalib/arm/./src/services_dynalib.o ../build/target/services-dynalib/arm/./src/services_dynalib.o.d ../build/target/services-dynalib/arm/libservices-dynalib.a | |
rm -f -r ../build/target/services-dynalib/arm | |
make[1]: Leaving directory '/home/vic/github/firmware/services-dynalib' | |
make -C ../../../rt-dynalib clean | |
make[1]: Entering directory '/home/vic/github/firmware/rt-dynalib' | |
rm -f ../build/target/rt-dynalib/platform-10-m/./src/rt_dynalib.o ../build/target/rt-dynalib/platform-10-m/./src/rt_dynalib.o.d ../build/target/rt-dynalib/platform-10-m/librt-dynalib.a | |
rm -f -r ../build/target/rt-dynalib/platform-10-m | |
make[1]: Leaving directory '/home/vic/github/firmware/rt-dynalib' |
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
int buttonPin=D5; | |
int led1=D7; | |
void setup() { | |
pinMode(buttonPin, INPUT_PULLUP); | |
pinMode(led1, OUTPUT); | |
digitalWrite(led1, HIGH);; | |
delay(100); | |
digitalWrite(led1, LOW); | |
} |
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 Promise = require("bluebird"); | |
var bhttp = Promise.promisifyAll(require("bhttp")); | |
// config encapsulates opensensors-api-key | |
module.exports = function(config) { | |
var API_POST_OPTIONS = { | |
headers: { | |
Accept: "application/json", | |
Authorization: "api-key " + config["api-key"] | |
} |
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
int analogInputs[] = {A0, A1, A2, A3, A4, A5}; | |
void setup(void){ | |
Serial.begin(115200); | |
Serial.println("Hello world."); | |
for(int ii = 0; ii < sizeof(analogInputs); ii++){ | |
pinMode(analogInputs[ii], INPUT); | |
} | |
} |
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
/* | |
* timebase.h | |
* | |
* Created on: Dec 3, 2012 | |
* Author: vic | |
*/ | |
#ifndef TIMEBASE_H_ | |
#define TIMEBASE_H_ |
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
/* | |
* timebase.c | |
* | |
* Created on: Dec 3, 2012 | |
* Author: vic | |
*/ | |
#include <inttypes.h> | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include "timebase.h" |