Go Down

Topic: Arduino TvOut (Read 1 time) previous topic - next topic

Arduino02

I decided to try the arduinos tv out function two days ago and its cool. I now am experimenting with outputting values from potentiometers to my tv. I wrote a simple code that does so and it works. I've also now included an led as a light sensor.
heres the code.
Quote

int potPin1= A0;
int val = A5;
int val1 = A4;


#include <TVout.h>
#include <fontALL.h>

TVout TV;

void setup(){
  TV.begin(NTSC,120,96);
  TV.select_font(font6x8);
   TV.println("Arduino Analog Read Tv");
}

void loop(){
  int sensorValue = analogRead(potPin1);
  delay(1000);
  TV.println(sensorValue, DEC);
   val = analogRead (A5);
   delay(1000);
   TV.println(val, DEC);
   val1 = analogRead(A4);
   delay(1000);
   TV.println(val1, DEC);
   
   

}
 


Arduino02

Is there a way to make a custom logo show up behind the text. and also can I display a custom logo at the beginning.

robtillaart

Quote
can I display a custom logo at the beginning.


Never worked with TVout, but I assume you can do  (by means of ASCII-art )

Code: [Select]

void setup(){
  TV.begin(NTSC,120,96);
  TV.select_font(font6x8);
   TV.println("Arduino Analog Read Tv");

  //
  // print your logo here  (== many TV println()'s
  //
  delay(5000);
}

void loop()
{
  etc ...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up