Advertisement
computermuseo

grafico tv out arduino

Mar 14th, 2015
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <TVout.h>
  2. #include <pollserial.h>
  3. #include <fontALL.h>
  4.  
  5. TVout TV;
  6. pollserial pserial;
  7.  
  8. void setup() {
  9. TV.begin(_NTSC,184,72);
  10. TV.select_font(font6x8);
  11. TV.println("Serial Terminal");
  12. TV.println("-- Version 0.1 --");
  13. TV.set_hbi_hook(pserial.begin(57600));
  14. }
  15.  
  16. void loop() {
  17. if (pserial.available()) {
  18. TV.print((char)pserial.read());
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement