beginning of video generation code.
added hardware rev2 pinout +#define