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
// variable global | |
int led = 9; | |
int input = A0; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(led, OUTPUT); | |
} | |
void loop() { |
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
// http://arduino.cc/en/Tutorial/Fading | |
int ledPin = 9; // LED connected to digital pin 9 | |
void setup() { | |
// nothing happens in setup | |
} | |
void loop() { | |
// fade in from min to max in increments of 5 points: |
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
// http://arduino.cc/en/Tutorial/Fading | |
int ledPin = 9; // LED connected to digital pin 9 | |
void setup() { | |
// nothing happens in setup | |
} | |
void loop() { | |
// fade in from min to max in increments of 5 points: |
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
//http://www.arduino.cc/en/Tutorial/AnalogInput | |
int sensorPin = A0; // select the input pin for the potentiometer | |
int ledPin = 9; // select the pin for the LED | |
int sensorValue = 0; // variable to store the value coming from the sensor | |
void setup() { | |
// declare the ledPin as an OUTPUT: | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(9600); |
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
/** | |
* mask, ellipse, rects | |
* Example based on: Draw a Mask example Pt.2 | |
* 2017-08-22 Processing 3.3.5 | |
https://forum.processing.org/two/discussion/23886/masking-a-shape-with-another-shape | |
**/ | |
PGraphics sourceImage1; | |
PGraphics maskImage1; | |
PGraphics sourceImage2; | |
PGraphics maskImage2; |
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
//Primer Sketch | |
//Función: Point | |
size(200, 200); | |
background(255, 8, 198); | |
point(50, 50); | |
point(51, 50); | |
point(52, 50); | |
point(53, 50); | |
point(54, 50); |