Hi, i am having trouble with code, i have a raw code to test my connection between c2000 controller and encoder and now i just need to create .c and .h file to make it look more "beautiful", if there is someboody who can tell me how to do it i would be thankful the code for communication is:
(I can't even remotely test the code because I don't have the 3rd party library/libraries needed.)
There are apps available, standalone or online, that can format source code to look better. Some IDEs (Integrated Development Environment) have that capability 'built-in.' Visual Studio is one.
by more "beautiful" i ment that in the main.c there will be only one function which will do what is from 54 to 60 line in code, so i am asking how it can be done
If'n that isn't helpful then I don't know what can be done since what you are trying to do isn't all that understandable.
The internet has a LOT of resources available, searching for what you want/need should be a first step. It is part of "asking questions the smart way."
Being a self-taught (and still learning) programming hobbyist I've had lots of questions how to do something across the years. Most times I've found what I'm looking for, or something close enough to work, by scraping the bowel of the interwebz.
The few times I couldn't find something on my own that worked I then began asking questions of others, starting off informing them what I had done in detail. More often than not answers were quick in coming.