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
$ /Developer/usr/bin/momc simpleTextMessageModel.xcdatamodel simpleTextMessageModel3.mom |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- Basic Page Needs | |
–––––––––––––––––––––––––––––––––––––––––––––––––– --> | |
<meta charset="utf-8"> | |
<title>Lab Conditions by RPi</title> | |
<meta name="description" content="Lab conditions - RPi"> | |
<meta name="author" content="Peter Dalmaris"> | |
<!-- Mobile Specific Metas |
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
void setup() { | |
// put your setup code here, to run once: | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
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 do_a_calc(int a, int b){ | |
int c = a + b; | |
return c; | |
} |
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
void setup() { | |
// put your setup code here, to run once: | |
int a = do_a_calc(1,2); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
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
/* FILE NAME | |
button.py | |
1. WHAT IT DOES | |
Reads the value of a potentiometer and controls the loudness of a piezo buzzer via pwm | |
2. ORIGINAL WORK | |
Raspberry Full stack 2015, Peter Dalmaris | |
3. HARDWARE | |
D11: piezo buzzer |
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
//Arduino PWM Speed Control: | |
int E1 = 5; | |
int M1 = 4; | |
void setup() | |
{ | |
Serial.begin (9600); | |
pinMode(M1, OUTPUT); | |
} |
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
/*############################################################################## | |
Author: | |
* Mirko Prosseda (06-2013) | |
* email: [email protected] | |
* Modified by Peter Dalmaris | |
Description: | |
* DC Dual Motor Driver 30V 4A V2 test sketch v1.0 | |
* Speed and direction for each motor channel are regulated by |
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
//TMP36 Pin Variables | |
int sensorPin = 0; //the analog pin the TMP36's Vout (sense) pin is connected to | |
//the resolution is 10 mV / degree centigrade with a | |
//500 mV offset to allow for negative temperatures | |
/* | |
* setup() - this function runs once when you turn your Arduino on | |
* We initialize the serial connection with the computer | |
*/ | |
void setup() |
OlderNewer