An IRC channel where like nothing is happeningLol what is that ljfy XD
________________________
< I am the all powerfull >
------------------------
\ ^ /^
\ / \ // \
\ |\___/| / \// .\
\ /O O \__ / // | \ \ *----*
/ / \/_/ // | \ \ \ |
@___@` \/_ // | \ \ \/\ \
0/0/| \/_ // | \ \ \ \
0/0/0/0/| \/// | \ \ | |
0/0/0/0/0/_|_ / ( // | \ _\ | /
0/0/0/0/0/0/`/,_ _ _/ ) ; -. | _ _\.-~ / /
,-} _ *-.|.-~-. .~ ~
\ \__/ `/\ / ~-. _ .-~ /
\____(oo) *. } { /
( (--) .----~-.\ \-` .~
//__\\ \__ Ack! ///.----..< \ _ -~
// \\ ///-._ _ _ _ _ _ _{^ - - - - ~
int pins[] = {0, 1, 2, 3};
int curveToDraw = 1;
void setup() {
for (int i = 0; i < sizeof(pins) / sizeof(pins[0]); i++) {
pinMode(pins[i], OUTPUT);
}
}
void loop() {
}
int * * dragon(int n) {
if (n == 0) {
return {{HIGH, LOW, HIGH, LOW}};
} else if (n == 1) {
return {{HIGH, LOW, HIGH, HIGH}};
} else {
int last[][4] = dragon(n-1);
return last;
}
return {};
}
int * rotate(int input[]) {
static int rotated[] = {input[3], input[1], input[4], input[2]};
return rotated;
}
int * reverse(int input[]) {
int n = sizeof(input) / sizeof(input[0]);
int end = n - 1;
int t;
for (int c = 0; c < n/2; c++) {
t = input[c];
input[c] = input[end];
input[end] = t;
end--;
}
}