You need to log in to create posts and topics.

Displaying digits in registers 4bit_led_sca type 74hc595

Hello to the developers of this very good simulation program. I was working on a project using 74hc595 registers and noticed that the display on the computer doesn't match the real display. In the program, the counting goes from left to right: 1000, then 2000... 10 would look like 0100, and the number 12 would be displayed as 2100. This doesn't match the display on the real display; the real display displays the number 12 as 0012. The numbers start on the right, and I think this is correct. Please correct this for proper understanding. I'll attach a picture with the number 24. These are the patterns for the registers from my sketch.

byte getDigitPattern(int digit) {
switch (digit) {
case 0: return 0xC0;
case 1: return 0xF9;
case 2: return 0xA4;
case 3: return 0xB0;
case 4: return 0x99;
case 5: return 0x92;
case 6: return 0x82;
case 7: return 0xF8;
case 8: return 0x80;
case 9: return 0x90;
default: return 0xFF;
}

Uploaded files:

Hi.

Here you can see how to insert images in a post:
https://simulide.com/p/forum/topic/how-to-use-this-forum/