You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the TVout library as described in the library description but when compiling I get this error:
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:96:18: error: no 'void TVout::end()' member function declared in class 'TVout'
void TVout::end() {
^
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_line(uint8_t, uint8_t, uint8_t, uint8_t, char)':
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:310:3: error: 'draw_column' was not declared in this scope
draw_column(x0,y0,y1,c);
^~~~~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:310:3: note: suggested alternative: 'draw_line'
draw_column(x0,y0,y1,c);
^~~~~~~~~~~
draw_line
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:312:3: error: 'draw_row' was not declared in this scope
draw_row(y0,x0,x1,c);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:312:3: note: suggested alternative: 'draw_rect'
draw_row(y0,x0,x1,c);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: At global scope:
c:\Users\micha\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\micha\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\micha\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\micha\Documents\Arduino\libraries\TVout\TVout.cpp:508:4: error: 'draw_row' was not declared in this scope
draw_row(i,x0,x0+w,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:508:4: note: suggested alternative: 'draw_rect'
draw_row(i,x0,x0+w,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_circle(uint8_t, uint8_t, uint8_t, char, char)':
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:546:3: error: 'draw_row' was not declared in this scope
draw_row(y0,x0-radius,x0+radius,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:546:3: note: suggested alternative: 'draw_rect'
draw_row(y0,x0-radius,x0+radius,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:567:5: error: 'draw_row' was not declared in this scope
draw_row(y0+y,x0-x,x0+x,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:567:5: note: suggested alternative: 'draw_rect'
draw_row(y0+y,x0-x,x0+x,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:571:5: error: 'draw_row' was not declared in this scope
draw_row(y0+x,x0-y,x0+y,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:571:5: note: suggested alternative: 'draw_rect'
draw_row(y0+x,x0-y,x0+y,fc);
^~~~~~~~
draw_rect
exit status 1
Compilation error: exit status 1
and the code is:
#include <TVout.h>
#include <fontALL.h>
TVout TV;
unsigned char x,y;
void setup() {
x=0;
y=0;
TV.begin(PAL); //for devices with only 1k sram(m168) use TV.begin(_NTSC,128,56)
TV.select_font(font6x8);
}
void loop() {
TV.clear_screen();
x=0;
y=0;
for (char i = 32; i < 127; i++) {
TV.print_char(x6,y8,i);
x++;
if (x >= TV.char_line()) {
y++;
x=0;
}
}
TV.delay(1000);
TV.clear_screen();
TV.println("Fill the Screen\nPixel by Pixel");
TV.delay(1000);
TV.clear_screen();
for(x=0;x<TV.hres();x++){
for(y=0;y<TV.vres();y++){
TV.set_pixel(x,y,1);
}
}
TV.delay(1000);
TV.clear_screen();
TV.print("Draw some lines");
TV.delay(1000);
x = TV.hres() - 1;
for(y=0;y<TV.vres();y++){
TV.draw_line(0,y,x-y,y,2);
}
TV.delay(1000);
}
The text was updated successfully, but these errors were encountered:
I installed the TVout library as described in the library description but when compiling I get this error:
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:96:18: error: no 'void TVout::end()' member function declared in class 'TVout'
void TVout::end() {
^
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_line(uint8_t, uint8_t, uint8_t, uint8_t, char)':
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:310:3: error: 'draw_column' was not declared in this scope
draw_column(x0,y0,y1,c);
^~~~~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:310:3: note: suggested alternative: 'draw_line'
draw_column(x0,y0,y1,c);
^~~~~~~~~~~
draw_line
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:312:3: error: 'draw_row' was not declared in this scope
draw_row(y0,x0,x1,c);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:312:3: note: suggested alternative: 'draw_rect'
draw_row(y0,x0,x1,c);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: At global scope:
c:\Users\micha\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\micha\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\micha\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\micha\Documents\Arduino\libraries\TVout\TVout.cpp:508:4: error: 'draw_row' was not declared in this scope
draw_row(i,x0,x0+w,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:508:4: note: suggested alternative: 'draw_rect'
draw_row(i,x0,x0+w,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp: In member function 'void TVout::draw_circle(uint8_t, uint8_t, uint8_t, char, char)':
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:546:3: error: 'draw_row' was not declared in this scope
draw_row(y0,x0-radius,x0+radius,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:546:3: note: suggested alternative: 'draw_rect'
draw_row(y0,x0-radius,x0+radius,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:567:5: error: 'draw_row' was not declared in this scope
draw_row(y0+y,x0-x,x0+x,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:567:5: note: suggested alternative: 'draw_rect'
draw_row(y0+y,x0-x,x0+x,fc);
^~~~~~~~
draw_rect
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:571:5: error: 'draw_row' was not declared in this scope
draw_row(y0+x,x0-y,x0+y,fc);
^~~~~~~~
c:\Users\micha\Documents\Arduino\libraries\TVout\TVout.cpp:571:5: note: suggested alternative: 'draw_rect'
draw_row(y0+x,x0-y,x0+y,fc);
^~~~~~~~
draw_rect
exit status 1
Compilation error: exit status 1
and the code is:
#include <TVout.h>
#include <fontALL.h>
TVout TV;
unsigned char x,y;
void setup() {
x=0;
y=0;
TV.begin(PAL); //for devices with only 1k sram(m168) use TV.begin(_NTSC,128,56)
TV.select_font(font6x8);
}
void loop() {
TV.clear_screen();
x=0;
y=0;
for (char i = 32; i < 127; i++) {
TV.print_char(x6,y8,i);
x++;
if (x >= TV.char_line()) {
y++;
x=0;
}
}
TV.delay(1000);
TV.clear_screen();
TV.println("Fill the Screen\nPixel by Pixel");
TV.delay(1000);
TV.clear_screen();
for(x=0;x<TV.hres();x++){
for(y=0;y<TV.vres();y++){
TV.set_pixel(x,y,1);
}
}
TV.delay(1000);
TV.clear_screen();
TV.print("Draw some lines");
TV.delay(1000);
x = TV.hres() - 1;
for(y=0;y<TV.vres();y++){
TV.draw_line(0,y,x-y,y,2);
}
TV.delay(1000);
}
The text was updated successfully, but these errors were encountered: