Im involved in a project that uses an arduino as a test device for an electrical panel that goes like this.
User will input "type" number through a keypad and based on the input, the device should be able to reassign pin modes.
everything else seems to be working flawlessly for me except that Ive come to the point where there are too many possible types involved. At the moment, I am able to do the process required using a switch-case statement since for a prototype, i decided to only incorporate 10 types.
The main goal would be that the device should be capable of distinguishing multiple(1-100) types that have subtypes(100+). so in total there could be hundreds of items that needs to be stored within the device and thats why i decided to use an SD card to hold the data.
I am not new to programming so i can easily grasp concepts but my biggest problem right now is that I dont know the best way to implement this process.
What Im asking for is just some sort of a process flow to implement the query on a file on an sd card and return values(pin numbers that needs to be assigned in order for the device to allow inputs on some pins and send outputs on some.) no need for specific lines but an example for a query and return value would be very much appreciated. Thanks!
PS. the device will not be connected to any other another platform.