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
#define SENSOR_PIN A0 | |
void setup() { | |
pinMode( SENSOR_PIN, INPUT ); | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println( analogRead( SENSOR_PIN ) ); | |
delay(2500); |
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
license: mit |
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
/** | |
Licence MIT | |
@Servuc | |
Linked to my teaching http://servuc.github.io/teaching/iot-4.html | |
Base code to help students :P | |
*/ | |
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
//Global variable (like static) | |
App = { | |
value: 1 | |
}; | |
/* | |
* Mother class constructor | |
*/ | |
function ClassA() { | |
this.value = 1; |
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
license: mit |
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
license: gpl-3.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
license: gpl-3.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
license: gpl-3.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
/** | |
* @author http://servuc.github.io | |
* | |
* This code is in public domain | |
* It's was create for the instructable : | |
* | |
* http://www.instructables.com/id/Arduino-Shutter-Opener | |
*/ | |
#define SWITCH_DOWN_PIN 2 | |
#define SWITCH_UP_PIN 3 |
NewerOlder