I tried the AI search engine of Bing, and asked what'#s the difference between modules 5461AG and 5641AG, and got the following response…
According to the web search results, both 5461AG and 5641AG are part numbers for 4-digit 7-segment LED display modules. However, they seem to have different pinouts and wiring schemes. For example, according to the DFRobot1, the 5461AG module is used for evaluation of the KYX-5461AG display, which has the following pinout:
Pin Function
1 Segment E
2 Segment D
3 Decimal point
4 Segment C
5 Segment G
6 Digit 4
7 Segment B
8 Digit 3
9 Digit 2
10 Segment F
11 Segment A
12 Digit 1
According to a forum post on Model Engineer2, the 5641AG module has a different pinout, which is:
Pin Function
1 Segment E
2 Segment D
3 Decimal point
4 Segment C
5 Segment G
6 Digit 4
7 Segment B
8 Digit 3
9 Digit 2
10 Digit 1
11 Segment A
12 Segment F
As you can see, the pins for segment F and digit 1 are swapped between the two modules.
This means that you cannot use them interchangeably without modifying the wiring or the code.
You should use the module that matches your device and application.