adding an init.d script:
- look at
/etc/init.d/skeleton
for the script template - after creating your own,
chmod a+x myscript
sudo mv myscript /etc/init.d
- update-rc.d myscript.....tba...
OR
...tba...
adding an init.d script:
/etc/init.d/skeleton
for the script templatechmod a+x myscript
sudo mv myscript /etc/init.d
OR
...tba...
/****** | |
* Teensy connected to Powerswitch Tail 2 | |
*/ | |
#define PST_1 3 //powerswitch tail pin 1 | |
#define PST_2 4 //powerswitch tail pin 2 | |
#define LED 13 //teensy 3.0 on-board LED | |
void setup() { | |
Serial.begin(9600); |
import java.io.*; | |
import java.util.*; | |
/** | |
made this work. | |
- joe |
int bytesReceived[3]; //incoming bytes | |
void setup() { | |
pinMode(13, OUTPUT); //LED on 13 | |
pinMode(12, OUTPUT); //LED on 12 | |
Serial.begin(9600); | |
} | |
void loop() |
char inByte; // incoming serial byte | |
int count1; //for some fake data | |
int count2; //even more fake data | |
void setup() { | |
// start serial port at 115200 bps: | |
Serial.begin(115200); | |
// while (!Serial) { | |
// ; // wait for serial port to connect. Needed for Leonardo only |
<?php | |
//first grab the xml file | |
$xml=simplexml_load_file("http://www.stateair.net/web/rss/1/1.xml"); | |
/* simpleXML let's you parse through the entire file */ | |
/* info: http://www.w3schools.com/php/php_xml_simplexml.asp */ | |
//foreach($xml->children() as $child) { | |
// echo $child->getName() . ": " . $child . "<br>"; | |
//} |
//#include <WiFlyHQ.h> | |
/* | |
- download visualight library from here: | |
https://github.com/lpercifield/visualight/releases/download/1.1/Visualight.zip | |
- unzip, put in the Documents > Arduino > libraries folder | |
*/ | |
#include <EEPROM.h> |