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.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 void ks0108Puts(char* str) { int x = ks0108Coord.x; while(*str != 0) { if(*str == '\n') { ks0108GotoXY(x, ks0108Coord.y+ks0108FontRead(ks0108Font+FONT_HEIGHT)); } else { ks0108PutChar(*str); } str++; } }
Code C - [expand] 1 2 3 4 while(*str != 0) // this is true until the pointer reaches the end of the array and finds a null character if(*str == '\n') // this is true is there is a new line character so the function uses ks0108GotoXY to change line ks0108PutChar(*str); // this shows the character at the pointer position by calling the function that displays a char str++ // and this moves the pointer address to the next char of the array