[SOLVED] TVout Help

It has been solved I figured it out I had librarys that were conflicting with eachother and the right stuff wasn't being used, did a clean install of the IDE on a different computer installed only the library's i needed and it worked!

hey guys im trying to setup the pong game for arduino and im having this problem with the TVout library i keep getting this error code now this is just for testing that the screen and ouput will work properly so im just using the example not the pong game code.

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:16:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:16:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:16:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:17:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:17:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:17:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:18:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:18:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:18:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:19:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:19:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:19:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff - cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:20:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:20:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:20:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:21:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:21:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:21:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff + cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:22:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:22:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:22:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff - cSize,yOff - cSize,zOff + cSize},

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:23:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff + cSize}

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:23:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff + cSize}

^

C:\Users\Alex\Documents\Arduino\sketch_jun04d\sketch_jun04d.ino:23:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]

{xOff + cSize,yOff - cSize,zOff + cSize}

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:96:18: error: no 'void TVout::end()' member function declared in class 'TVout'

void TVout::end() {

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_line(uint8_t, uint8_t, uint8_t, uint8_t, char)':

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:310:25: error: 'draw_column' was not declared in this scope

draw_column(x0,y0,y1,c);

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:312:22: error: 'draw_row' was not declared in this scope

draw_row(y0,x0,x1,c);

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp: At global scope:

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:391:71: error: no 'void TVout::draw_row(uint8_t, uint16_t, uint16_t, uint8_t)' member function declared in class 'TVout'

void TVout::draw_row(uint8_t line, uint16_t x0, uint16_t x1, uint8_t c) {

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:445:73: error: no 'void TVout::draw_column(uint8_t, uint16_t, uint16_t, uint8_t)' member function declared in class 'TVout'

void TVout::draw_column(uint8_t row, uint16_t y0, uint16_t y1, uint8_t c) {

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_rect(uint8_t, uint8_t, uint8_t, uint8_t, char, char)':

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:508:25: error: 'draw_row' was not declared in this scope

draw_row(i,x0,x0+w,fc);

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_circle(uint8_t, uint8_t, uint8_t, char, char)':

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:546:37: error: 'draw_row' was not declared in this scope

draw_row(y0,x0-radius,x0+radius,fc);

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:567:31: error: 'draw_row' was not declared in this scope

draw_row(y0+y,x0-x,x0+x,fc);

^

C:\Users\Alex\Documents\Arduino\libraries\TVout\TVout.cpp:571:31: error: 'draw_row' was not declared in this scope

draw_row(y0+x,x0-y,x0+y,fc);

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

i have to put the code in the comments

code:

#include <TVout.h>
#include <fontALL.h>
#include "schematic.h"
#include "TVOlogo.h"

TVout TV;

int zOff = 150;
int xOff = 0;
int yOff = 0;
int cSize = 50;
int view_plane = 64;
float angle = PI/60;

float cube3d[8][3] = {
  {xOff - cSize,yOff + cSize,zOff - cSize},
  {xOff + cSize,yOff + cSize,zOff - cSize},
  {xOff - cSize,yOff - cSize,zOff - cSize},
  {xOff + cSize,yOff - cSize,zOff - cSize},
  {xOff - cSize,yOff + cSize,zOff + cSize},
  {xOff + cSize,yOff + cSize,zOff + cSize},
  {xOff - cSize,yOff - cSize,zOff + cSize},
  {xOff + cSize,yOff - cSize,zOff + cSize}
};
unsigned char cube2d[8][2];


void setup() {
  TV.begin(PAL,120,96);
  TV.select_font(font6x8);
  intro();
  TV.println("I am the TVout\nlibrary running on a freeduino\n");
  TV.delay(2500);
  TV.println("I generate a PAL\nor NTSC composite  video using\ninterrupts\n");
  TV.delay(2500);
  TV.println("My schematic:");
  TV.delay(1500);
  TV.bitmap(0,0,schematic);
  TV.delay(10000);
  TV.clear_screen();
  TV.println("Lets see what\nwhat I can do");
  TV.delay(2000);
  
  //fonts
  TV.clear_screen();
  TV.print(0,0,"Multiple fonts:");
  TV.select_font(font4x6);
  TV.println("4x6 font FONT");
  TV.select_font(font6x8);
  TV.println("6x8 font FONT");
  TV.select_font(font8x8);
  TV.println("8x8 font FONT");
  TV.select_font(font6x8);
  TV.delay(2000);
  
  TV.clear_screen();
  TV.print(9,44,"Draw Basic Shapes");
  TV.delay(2000);
  
  //circles
  TV.clear_screen();
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/3,WHITE);
  TV.delay(500);
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/2,WHITE,INVERT);
  TV.delay(2000);
  
  //rectangles and lines
  TV.clear_screen();
  TV.draw_rect(20,20,80,56,WHITE);
  TV.delay(500);
  TV.draw_rect(10,10,100,76,WHITE,INVERT);
  TV.delay(500);
  TV.draw_line(60,20,60,76,INVERT);
  TV.draw_line(20,48,100,48,INVERT);
  TV.delay(500);
  TV.draw_line(10,10,110,86,INVERT);
  TV.draw_line(10,86,110,10,INVERT);
  TV.delay(2000);
  
  //random cube forever.
  TV.clear_screen();
  TV.print(16,40,"Random Cube");
  TV.print(28,48,"Rotation");
  TV.delay(2000);
  
  randomSeed(analogRead(0));
}

void loop() {
  int rsteps = random(10,60);
  switch(random(6)) {
    case 0:
      for (int i = 0; i < rsteps; i++) {
        zrotate(angle);
        printcube();
      }
      break;
    case 1:
      for (int i = 0; i < rsteps; i++) {
        zrotate(2*PI - angle);
        printcube();
      }
      break;
    case 2:
      for (int i = 0; i < rsteps; i++) {
        xrotate(angle);
        printcube();
      }
      break;
    case 3:
      for (int i = 0; i < rsteps; i++) {
        xrotate(2*PI - angle);
        printcube();
      }
      break;
    case 4:
      for (int i = 0; i < rsteps; i++) {
        yrotate(angle);
        printcube();
      }
      break;
    case 5:
      for (int i = 0; i < rsteps; i++) {
        yrotate(2*PI - angle);
        printcube();
      }
      break;
  }
}

void intro() {
unsigned char w,l,wb;
  int index;
  w = pgm_read_byte(TVOlogo);
  l = pgm_read_byte(TVOlogo+1);
  if (w&7)
    wb = w/8 + 1;
  else
    wb = w/8;
  index = wb*(l-1) + 2;
  for ( unsigned char i = 1; i < l; i++ ) {
    TV.bitmap((TV.hres() - w)/2,0,TVOlogo,index,w,i);
    index-= wb;
    TV.delay(50);
  }
  for (unsigned char i = 0; i < (TV.vres() - l)/2; i++) {
    TV.bitmap((TV.hres() - w)/2,i,TVOlogo);
    TV.delay(50);
  }
  TV.delay(3000);
  TV.clear_screen();
}

void printcube() {
  //calculate 2d points
  for(byte i = 0; i < 8; i++) {
    cube2d[i][0] = (unsigned char)((cube3d[i][0] * view_plane / cube3d[i][2]) + (TV.hres()/2));
    cube2d[i][1] = (unsigned char)((cube3d[i][1] * view_plane / cube3d[i][2]) + (TV.vres()/2));
  }
  TV.delay_frame(1);
  TV.clear_screen();
  draw_cube();
}

void zrotate(float q) {
  float tx,ty,temp;
  for(byte i = 0; i < 8; i++) {
    tx = cube3d[i][0] - xOff;
    ty = cube3d[i][1] - yOff;
    temp = tx * cos(q) - ty * sin(q);
    ty = tx * sin(q) + ty * cos(q);
    tx = temp;
    cube3d[i][0] = tx + xOff;
    cube3d[i][1] = ty + yOff;
  }
}

void yrotate(float q) {
  float tx,tz,temp;
  for(byte i = 0; i < 8; i++) {
    tx = cube3d[i][0] - xOff;
    tz = cube3d[i][2] - zOff;
    temp = tz * cos(q) - tx * sin(q);
    tx = tz * sin(q) + tx * cos(q);
    tz = temp;
    cube3d[i][0] = tx + xOff;
    cube3d[i][2] = tz + zOff;
  }
}

void xrotate(float q) {
  float ty,tz,temp;
  for(byte i = 0; i < 8; i++) {
    ty = cube3d[i][1] - yOff;
    tz = cube3d[i][2] - zOff;
    temp = ty * cos(q) - tz * sin(q);
    tz = ty * sin(q) + tz * cos(q);
    ty = temp;
    cube3d[i][1] = ty + yOff;
    cube3d[i][2] = tz + zOff;
  }
}

void draw_cube() {
  TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[1][0],cube2d[1][1],WHITE);
  TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[2][0],cube2d[2][1],WHITE);
  TV.draw_line(cube2d[0][0],cube2d[0][1],cube2d[4][0],cube2d[4][1],WHITE);
  TV.draw_line(cube2d[1][0],cube2d[1][1],cube2d[5][0],cube2d[5][1],WHITE);
  TV.draw_line(cube2d[1][0],cube2d[1][1],cube2d[3][0],cube2d[3][1],WHITE);
  TV.draw_line(cube2d[2][0],cube2d[2][1],cube2d[6][0],cube2d[6][1],WHITE);
  TV.draw_line(cube2d[2][0],cube2d[2][1],cube2d[3][0],cube2d[3][1],WHITE);
  TV.draw_line(cube2d[4][0],cube2d[4][1],cube2d[6][0],cube2d[6][1],WHITE);
  TV.draw_line(cube2d[4][0],cube2d[4][1],cube2d[5][0],cube2d[5][1],WHITE);
  TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[6][0],cube2d[6][1],WHITE);
  TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[3][0],cube2d[3][1],WHITE);
  TV.draw_line(cube2d[7][0],cube2d[7][1],cube2d[5][0],cube2d[5][1],WHITE);
}

Ok I have looked at the file and tried to figure out what I need to fix but I am very confused with what I am supposed to change

Post a link to where you got the TVout library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.