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 LEDRpin = 3; | |
int LEDGpin = 5; | |
int LEDBpin = 6; | |
void turn(int r, int g, int b) { | |
analogWrite(LEDRpin, r); | |
analogWrite(LEDGpin, g); | |
analogWrite(LEDBpin, b); | |
} |
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 LEDRpin = 3; | |
int LEDGpin = 5; | |
int LEDBpin = 6; | |
void setup() { | |
pinMode(LEDRpin, OUTPUT); | |
pinMode(LEDGpin, OUTPUT); | |
pinMode(LEDBpin, OUTPUT); | |
analogWrite(LEDRpin, 0); | |
analogWrite(LEDGpin, 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
int LEDRpin = 3; | |
int LEDGpin = 5; | |
int LEDBpin = 6; | |
void turn(int r, int g, int b) { | |
analogWrite(LEDRpin, r); | |
analogWrite(LEDGpin, g); | |
analogWrite(LEDBpin, b); | |
} |
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 LEDRpin = 3; | |
int LEDGpin = 5; | |
int LEDBpin = 6; | |
int SVRpin = A1; | |
void turn(int r, int g, int b) { | |
analogWrite(LEDRpin, r); | |
analogWrite(LEDGpin, g); | |
analogWrite(LEDBpin, b); | |
} |
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
#include "Servo.h" | |
Servo m; | |
void setup() { | |
m.attach(9); | |
} | |
void loop() { | |
m.write(90); |
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
#include "Servo.h" | |
Servo m; | |
int SVRpin=A1; | |
void setup() { | |
m.attach(9); | |
} | |
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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int pr = analogRead(A2); | |
Serial.println(pr); | |
delay(500); | |
} |
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 LEDpin = 13; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(LEDpin, OUTPUT); | |
digitalWrite(LEDpin, LOW); | |
} | |
void loop() { | |
int pr = analogRead(A2); |
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 RELAYpin = 7; | |
void setup() { | |
pinMode(RELAYpin, OUTPUT); | |
digitalWrite(RELAYpin, LOW); | |
} | |
void loop() { | |
digitalWrite(RELAYpin, HIGH); | |
delay(1000); |
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 RELAYpin = 7; | |
int PHOTOpin = A1; | |
void setup() { | |
pinMode(RELAYpin, OUTPUT); | |
digitalWrite(RELAYpin, LOW); | |
} | |
void loop() { | |
int pr = analogRead(PHOTOpin); |
OlderNewer