Problem with 7-Segments and Rotary Encoder

Hi takao,

okay, I explain my system:

It's quite easy. The decimal numbers represent actually the binary number, which sets the output bits of the shift register low and high. The decimal numbers just take less space and make declaring easier.

So the number 6 is actually the binary code 00000110 which makes my segment show the number ONE
91 represents the binary code 1011011 which shows the TWO on the 7-Segment.
79 is as binary number 1001111. The shift register makes with this code a THREE.

In my code so each index number (40 all in all) has a variable for the right ( kanaele_einer = which makes channels_oner in english) and for the left (kanaele_zehner=channels_tenner) display.

int kanaele_einer[] = {6,91,79,102,109,125,7,127,103,63,6,91,79,102,109,125,7,127,103,63,6,91,79,102,109,125,7,127,103,63,6,91,79,102,109,125,7,127,103,63};

int kanaele_zehner[] = {63,63,63,63,63,63,63,63,63,6,6,6,6,6,6,6,6,6,6,91,91,91,91,91,91,91,91,91,91,79,79,79,79,79,79,79,79,79,79,102}; // left segment, ten-spot?

Is it now better to understand?

Well, the problem is this is my first project. And my programming skills are pretty hmm not existent. Thats why i tried to start arduino (and this of course also the reasion why I didn't multiplex at all).