Skip to content

Instantly share code, notes, and snippets.

View loadix's full-sized avatar

Mónica Bate loadix

View GitHub Profile
// variable global
int led = 9;
int input = A0;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
// 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:
// 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:
//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);
/**
* 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;
//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);