Skip to content

Instantly share code, notes, and snippets.

Richard Ho skynettw

Block or report user

Report or block skynettw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View arduino-unit-9-1
int RELAYpin = 7;
void setup() {
pinMode(RELAYpin, OUTPUT);
digitalWrite(RELAYpin, LOW);
}
void loop() {
digitalWrite(RELAYpin, HIGH);
delay(1000);
View arduino-unit-8-2
int LEDpin = 13;
void setup() {
Serial.begin(9600);
pinMode(LEDpin, OUTPUT);
digitalWrite(LEDpin, LOW);
}
void loop() {
int pr = analogRead(A2);
View arduino-unit-8-1
void setup() {
Serial.begin(9600);
}
void loop() {
int pr = analogRead(A2);
Serial.println(pr);
delay(500);
}
View arduino-unit-7-1
#include "Servo.h"
Servo m;
int SVRpin=A1;
void setup() {
m.attach(9);
}
void loop() {
View arduino-unit-6-1
#include "Servo.h"
Servo m;
void setup() {
m.attach(9);
}
void loop() {
m.write(90);
View arduino-unit-5-1
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);
}
View arduino-unit-4-3
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);
View arduino-unit-4-2
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);
}
View arduino-unit-4-1
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);
}
You can’t perform that action at this time.