its a posibility. but im not really sure.
But for these lines of code, i expect to get a string no?
strcpy (&GCode[strlen(GCode)], "G90G21X");
strcat (&GCode[strlen(GCode)], travelDist);
strcat (&GCode[strlen(GCode)], "F");
travelDist and FR being char variables.
I have just tested the program and learned that even after sending commands thru the lvgl GUI, sending commands thru a serial terminal still makes the motors move.
Codes sent to the machine are actually just text strings. Above code should result to something like “G90G21X-12.5F250”. No spaces in between. so i am thinking that there is something wrong with my text string. its’ termination or something else.
have a nice weekend.
ps. after posting my project on a number of fb groups, i got lots of inquiry what driver or library i used. of course i told them about littlevgl. hope they try this soon.