Created
October 28, 2015 23:24
-
-
Save ajouellette/acf4e5fa4704b985fc1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <knightos/display.h> | |
#include <math.h> | |
void main() { | |
SCREEN *screen; | |
double a = 15; | |
double b = 4; | |
double c = fmod(a, b); | |
int c_int = (int) c; | |
get_lcd_lock(); | |
screen = screen_allocate(); | |
screen_clear(screen); | |
draw_short(screen, 5, 2, c_int); | |
screen_draw(screen); | |
while (1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment