first commit

This commit is contained in:
Jérôme Delacotte
2025-03-06 11:15:32 +01:00
commit 7b30d6e298
5276 changed files with 2108927 additions and 0 deletions

74
TV_TEST2/TV_TEST2.ino Executable file
View File

@@ -0,0 +1,74 @@
#include <TVout.h>
#include <video_gen.h>
#include <fontALL.h>
#include <math.h>
TVout TV;
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
TV.begin(_NTSC);
TV.select_font(font6x8);
// initialize the digital pin as an output for blinking the LED.
pinMode(led, OUTPUT);
TV.fill(1);
//TV.println("Test");
//TV.println(1,1, TV.hres());
delay(1000);
}
// the loop routine runs over and over again forever:
void loop ()
{
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
int x = TV.hres() / 2;
int y = TV.vres() / 2;
TV.clear_screen ();
TV.println( 40, 40, "TVout FTW!!!" ); //TVout software for the World!
TV.delay (60);
TV.tone(480,500); // Play a 480 tone for half second
delay(500); // wait for a half second
TV.print (30, 60, "Wait one Second" );
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
TV.tone(440,500); // Play a 480 tone for half second
delay(500);
TV.draw_rect(20,20,105,56,WHITE); //draw a white rectangle
TV.draw_line(0,0,20,20,WHITE) ;
//TV.fill(1);
// wait for two seconds
delay(1500);
for (int i = 0; i < 15; i++) {
TV.draw_line(0,i,20,20 + i,WHITE) ;
}
TV.clear_screen ();
for (int i = 0; i < 40; i++) {
TV.clear_screen ();
TV.draw_circle(x ,y , i, 1, 1);
delay(2);
}
delay(1500);
TV.clear_screen ();
for (int i = 0; i < 120; i++) {
TV.draw_column(i,100, 50 + sin (i * 6.28 / 90) * 49, 1);
delay(20);
}
TV.clear_screen ();
for (int i = 0; i < y; i+=2) {
TV.draw_rect(i, i, x * 2 - 2 * i, y * 2 - 2 * i, 1);
delay(20);
}
delay(1500);
}