Tscope5
display03.c
////////////////////////////////////////////////////////////////////////////////
//
// __ ______
// / /_______________ ____ ___ / ____/
// / __/ ___/ ___/ __ \/ __ \/ _ \ /___ )
// / /_(__ ) /__/ /_/ / /_/ / __/ ____/ /
// \__/____/\___/\____/ .___/\___/ /_____/
// /_/
//
// display03.c
// - Open two windowed displays.
// - Count back from 10 to 0 (alternate between the displays).
// - Wait for a click.
////////////////////////////////////////////////////////////////////////////////
#include <tscope5.h>
int main()
{
// we need to know the size of the display adapter
// to position the displays properly
// open a first display
// in the centre of the left half of the display
// open a second display
// in the centre of the right half of the display
int i;
for (i=10; i>=0; i--) {
// switch the active display
// (use the modulo opeartor)
// print the number
ts5_printf(0.0, 0.0, "%d", i);
ts5_wait(0.5);
// remove the number
}
// wait for a click
return 0;
}