We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
If i have two serial port in the controller(interfaced 16c550) how to access both using printf library
An idea would be to use the "union" command in ANSI-C. Then You can control a X-dimensional array. You can possibly use a random function or some other function on how to lit the differen t LED:s.You also have to check the different compiler manuals wether they support onions or not.
If you need help we listen and you ask
Good luck!
"use the 'union' command in ANSI-C"
Why? What would that achieve?
"Then You can control a X-dimensional array"
'C' naturally supports multi-dimensional arrays - unions have nothing to do with it!