lgeorge123
Full Member level 2
I wish to use 8052 to display ks0108 glcd , also wish to display char in effect of shift left style like calculator when pressing key , I search the web but no result is found , can someone give me some hits ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void StringMoveLeft (char * String, char Len)
{
char tmp;
char dat = String[0];
char cnt;
if (Len) tmp = Len-1;
else tmp = StringLen(String)-1;
for (cnt=0; cnt!=tmp; cnt++) String[cnt]=String[cnt+1];
String[tmp]=dat;
}
void StringMoveRight (char * String, char Len)
{
char tmp;
char dat;
char cnt;
if (Len) tmp = Len-1;
else tmp = StringLen(String)-1;
dat = String[Len-1];
for (cnt=tmp; cnt!=0; cnt--) String[cnt]=String[cnt-1];
String[0]=dat;
}