This file contains hidden or 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
// Make variables to be used throughout code | |
int sensorPin = A0; | |
int ledPin = 13; | |
void setup() { | |
// Tell pin 13 to work as an output: | |
pinMode(ledPin, OUTPUT); | |
} | |
void loop() { |
This file contains hidden or 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
// Make variables for the led pin number and delay | |
// These can be used throughout your code | |
int ledPin = 13; | |
int delayMs = 1000; | |
void setup() { | |
// Tell pin 13 to work as an output | |
pinMode( ledPin, OUTPUT ); | |
} |
This file contains hidden or 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 [ -z "$1" ]; then | |
IP_ADDRESS=10.164.208.102 | |
else | |
IP_ADDRESS=$1 | |
fi | |
# FFMPEG command for creating segments from RTSP stream | |
ffmpeg -i rtsp://@${IP_ADDRESS}:5554/playlist.m3u -c copy -map 0 -f segment -strftime 1 -segment_time 60 -segment_format mp4 "%Y%m%d-%H%M.mp4" |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JavaScript Example</title> | |
</head> | |
<body> | |
<h1>This is a JS Example.</h1> | |
<span class="time">What's the time?!</span> | |
<hr/> |
This file contains hidden or 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
#include <SoftwareSerial.h> | |
SoftwareSerial sSerial(10, 11); // RX, TX | |
void setup() { | |
Serial.begin(9600); | |
while (!Serial); | |
// set the data rate for the SoftwareSerial port | |
sSerial.begin(38400); |
This file contains hidden or 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
import processing.serial.*; | |
Serial arduino; | |
void setup() { | |
// Create a canvas | |
size( 800, 600 ); | |
// Get a list of serial ports | |
String ports[] = Serial.list(); | |
int id = 0; |
This file contains hidden or 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
P-I-C | |
├── 3D Workshop | |
├── Animation & Game Design | |
└── Prototype & Code | |
├── Computing | |
├── Physical | |
└── Programming |
This file contains hidden or 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
/* | |
* Blink - Blinks an LED attached to digital pin. | |
* @author Gareth Foote & Berit Greinke | |
* 12th November 2015 | |
*/ | |
int ledPin = 1; | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin 13 as an output. |
This file contains hidden or 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
/* | |
* V&A Wearables Prototype - Using a ... to change the .... | |
* @author Your name goes here. | |
* 13th November 2015 | |
* | |
*/ | |
#include "pitches.h" | |
int sensorPin = 1; // The number of the input pin for the pressure sensor |
NewerOlder