X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=bort-panel.git;a=blobdiff_plain;f=seg.c;h=6f7b25f015dce1b290bdf34639dbc650cf36bb83;hp=2f6867f5e31cb4d276b38f0080d3595a085110ff;hb=2b25fa21db02919b25cf2d497d49f713e867b0e4;hpb=6e5408c013b4fe35eb4ba74519c4c259f98e5089 diff --git a/seg.c b/seg.c old mode 100755 new mode 100644 index 2f6867f..6f7b25f --- a/seg.c +++ b/seg.c @@ -26,21 +26,21 @@ int main(int argc, char *argv[]) { config_pins(); pincnt(); - start(); - byte(0x8f); - stop(); +// start(); +// byte(0x8f); +// stop(); start(); byte(0x40); stop(); start(); - byte(0xc0 | 0x00); - byte(0x00); - byte(0x00); - byte(0x00); - byte(0x00); - byte(0x00); - byte(0x00); + byte(0xc0 | 0x03); + byte(0xff); + byte(0xff); + byte(0xff); + byte(0xff); + byte(0xff); + byte(0xff); /*for(;;) { arc4random_buf(ent, 32); byte(ent[0]); @@ -50,12 +50,12 @@ int main(int argc, char *argv[]) { usleep(DEL); }*/ -for(;;) { +/*for(;;) { UP("clk"); usleep(1); DOWN("clk"); usleep(1); -} +}*/ for(;;) { byte(dig(0x0c));