![]() If every pair is theĮxpected state (either connected or not connected), then the user did It should be, it's again an invalid combination. If any pair is connected that shouldn'tīe, you have an invalid combination. Now what you have toĭo is, for every pair of pins among those 12, determine whether or They are just another invalid combination. This way most “weird things” the userĬould do, like connecting wires together, are not a special caseĪnymore. Consider you just have 12 pins that the user has The first thing I would do is forget that these are twoĭifferent groups. Pins: 6 pins connected to the wires and 6 pins connected to I'm a software engineer, but a complete noob when it comes to real electronics and Arduino, so please feel free to assume I know nothing.įirst, let's consider the logic of your program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |