1 ///////////////////////////////////////////////////////////////////////////
2 // Workfile: tvout.c (Implementation)
3 // Author: Daniel Giritzer
5 // Description: Simple Program to move the
8 // Copyright (C) 2017, Daniel Giritzer (giri@nwrk.biz)
9 ///////////////////////////////////////////////////////////////////////////
16 int main(int argc, char **argv)
18 unsigned long to_write = 0;
24 fprintf(stdout, "Usage: tvout <move x> <move y>\n");
25 fprintf(stdout, "The parameter values should be in px.\n");
26 fprintf(stdout, "This program was created for the Armbian Project.");
27 fprintf(stdout, "(c) 2017, Daniel G.");
32 to_write = strtoul(argv[1], 0, 0) << X_REG_OFFSET;
35 to_write = strtoul(argv[2], 0, 0) << Y_REG_OFFSET;
38 writemem(TV_ENCODER_RESYNC, to_write, 'w');