#include <EducationShield.h>
VUMeter me;
int pins[]={3, 5, 6, 9, 10, 11};
int pinCount=6;
int ORANGE = 3;
int RED = 5;
int BLUE = 6;
int PURPLE = 9;
int GREEN = 10;
int YELLOW = 11;
void setup() {
me.config(pinCount, pins);
me.begin(); // put your setup code here, to run once:
}
void loop() {
for (int i = 0; i <= 255; i++) {
analogWrite(ORANGE, i);
delay(10);}
for (int i = 0; i <= 255; i++) {
analogWrite(RED, i);
delay(10);}
for (int i = 0; i <= 255; i++) {
analogWrite(BLUE, i);
delay(10);}
for (int i = 0; i <= 255; i++) {
analogWrite(PURPLE, i);
delay(10);}
for (int i = 0; i <= 255; i++) {
analogWrite(GREEN, i);
delay(10);}
for (int i = 0; i <= 255; i++) {
analogWrite(YELLOW, i);
delay(10);
// put your main code here, to run repeatedly:
}
}
Comentarios
Publicar un comentario