Tscope5
display01.c
////////////////////////////////////////////////////////////////////////////////
//
// __ ______
// / /_______________ ____ ___ / ____/
// / __/ ___/ ___/ __ \/ __ \/ _ \ /___ )
// / /_(__ ) /__/ /_/ / /_/ / __/ ____/ /
// \__/____/\___/\____/ .___/\___/ /_____/
// /_/
//
// display01.c
// - Open a windowed display.
// - Count back from 10 to 0.
// - Wait for a click.
////////////////////////////////////////////////////////////////////////////////
#include <tscope5.h>
#include <stdio.h>
int main()
{
// we need to install a display first
int i;
for (i=10; i>=0; i--) {
// print something on the display
ts5_printf(0.0, 0.0, "%d", i);
// flip the display to make it visible
// wait a bit
ts5_wait(0.5);
// clear the display for the next iteration
}
// wait for a click
// ts5_draw_mouse_button
// automatically flips the display
return 0;
}