#include #include #include #include #include #include #include #include #include #include #include #include "seg.h" #define UP(N) set_pin(N, 1) #define DOWN(N) set_pin(N, 0) int main(int argc, char *argv[]) { uint8_t ent[4]; signal(SIGINT, inth); config_pins(); pincnt(); start(); byte(0x40); stop(); start(); byte(0xc0 | 0x01); for(;;) { arc4random_buf(ent, 32); byte(ent[0]); byte(ent[1]); byte(ent[2]); byte(ent[3]); usleep(DEL); } stop(); start(); byte(DISP_ON); stop(); inth(0); return 0; }