Menu

EX2

Anonymous

include <TVout.h>

#include <pollserial.h>
#include <fontALL.h>

TVout TV;
pollserial pserial;

void setup()  {
  TV.begin(_NTSC,184,72);
  TV.select_font(font6x8);
  TV.println("Serial Terminal");
  TV.println("-- Version 0.1 --");
  TV.set_hbi_hook(pserial.begin(57600));
}

void loop() {
  if (pserial.available()) {
    TV.print((char)pserial.read());
  }
}

Related

Wiki: EXsketches
Wiki: TableOfContents

Discussion

  • Anonymous

    Anonymous - 2011-11-13

    Originally posted by: graysone...@gmail.com

    Can we get more documentation on how this pserial stuff works?

     
  • Anonymous

    Anonymous - 2012-06-28

    Originally posted by: shobha23...@gmail.com

    i personally think there is some problem with this code...its not working...someone please correct the code...this code doesn't give the required output,it would be very helpful if some one correct this code

     
  • Anonymous

    Anonymous - 2012-10-11

    Originally posted by: marcelve...@gmail.com

    This demo works. However there is a bug in pollserial. The malloc there that allocates the buffer must be removed. And then the buffer must be statically allocated (static unsigned char buffer[BUFFER_SIZE+1]). If you don't do this you will see garbage on the serial port after a while.

     
  • Anonymous

    Anonymous - 2013-04-18

    Originally posted by: blandfo...@gmail.com

    "rxbuffer.buffer = (unsigned char)malloc(BUFFER_SIZE*sizeof(unsigned char));" What do I have to do to this line to change it from a malloc to the static unsigned char?

     
  • Anonymous

    Anonymous - 2013-07-17

    Originally posted by: winhelp3...@gmail.com

    It don't work for me. The compiling log say: " C:\Tools\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Tools\Arduino\hardware\arduino\cores\arduino -IC:\Tools\Arduino\hardware\arduino\variants\mega C:\Users\Paul\AppData?\Local\Temp\build953338783501734976.tmp\NTSCserialTerm.cpp -o C:\Users\Paul\AppData?\Local\Temp\build953338783501734976.tmp\NTSCserialTerm.cpp.o NTSCserialTerm.pde:1:19: warning: TVout.h: No such file or directory NTSCserialTerm.pde:2:24: warning: pollserial.h: No such file or directory NTSCserialTerm.pde:3:21: warning: fontALL.h: No such file or directory NTSCserialTerm:5: error: 'TVout' does not name a type NTSCserialTerm:6: error: 'pollserial' does not name a type NTSCserialTerm.pde: In function 'void setup()': NTSCserialTerm:9: error: 'TV' was not declared in this scope NTSCserialTerm:9: error: '_NTSC' was not declared in this scope NTSCserialTerm:10: error: 'font6x8' was not declared in this scope NTSCserialTerm:13: error: 'pserial' was not declared in this scope NTSCserialTerm.pde: In function 'void loop()': NTSCserialTerm:17: error: 'pserial' was not declared in this scope NTSCserialTerm:18: error: 'TV' was not declared in this scope " If somebody have help contact me! _

     
  • Anonymous

    Anonymous - 2014-03-06

    Originally posted by: regfport...@gmail.com

    how do I go about adjusting the offset ive been playing with the numbers and im getting nowhere. :/ Ive come across little tutorials that touch on it if at all and i seam to have lost the website link that explained it indepth.. any suggestions?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.