blob: 9afe79bb6b6020390c58500729cd3ec520e071bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Random Color Display for RVController
* A product of Advanced Mesecons Devices, a Cheapie Systems company
* This is free and unencumbered software released into the public domain.
* See http://unlicense.org/ for more information */
#include "rvcontroller-ecalls.h"
char color[] = "123456";
char channel[] = "A1";
char chars[] = "0123456789ABCDEF";
void randomize() {
for (int i=0;i<=5;i++) {
color[i] = chars[randomint(0,15)];
}
}
void main(void) {
for (int y=0;y<=5;y++) {
channel[1] = '1' + y;
for (int x=0;x<=19;x++) {
channel[0] = 'A' + x;
randomize();
digiline_send(channel,color);
}
}
for (;;) {
channel[0] = randomint('A','T');
channel[1] = randomint('1','6');
randomize();
digiline_send(channel,color);
}
}
|