Skip to content

Instantly share code, notes, and snippets.

@ajouellette
Created October 28, 2015 23:24
Show Gist options
  • Save ajouellette/acf4e5fa4704b985fc1a to your computer and use it in GitHub Desktop.
Save ajouellette/acf4e5fa4704b985fc1a to your computer and use it in GitHub Desktop.
#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