projects
/
bort-panel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random panel output
[bort-panel.git]
/
seg.c
diff --git
a/seg.c
b/seg.c
index 462b03f73667b9bc032501e5e0cdf87b112c6082..8af863e17ac946207dda701a06cbfa8b70b4079f 100644
(file)
--- a/
seg.c
+++ b/
seg.c
@@
-4,6
+4,7
@@
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <time.h>
#include <sys/types.h>
@@
-17,6
+18,8
@@
int main(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
+ uint8_t ent[4];
+
signal(SIGINT, inth);
config_pins();
signal(SIGINT, inth);
config_pins();
@@
-28,17
+31,14
@@
int main(int argc, char *argv[]) {
start();
byte(0xc0 | 0x01);
start();
byte(0xc0 | 0x01);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
- byte(0xdd);
-
+for(;;) {
+ arc4random_buf(ent, 32);
+ byte(ent[0]);
+ byte(ent[1]);
+ byte(ent[2]);
+ byte(ent[3]);
+ usleep(DEL);
+}
stop();
start();
stop();
start();