#include <TVout.h>
#include "disturbance1.h"
#include "disturbance2.h"
#include "a.h"
#include "e.h"
#include "m.h"
#include "o.h"
#include "u.h"
#include "font6x8.h"
TVout tv;
void setup() {
Serial.begin(9600);
tv.begin(PAL);
tv.select_font(font6x8);
tv.clear_screen();
tv.delay(100);
stream_animation();
tv.clear_screen();
tv.delay(100);
speaking_animation(30,20);
tv.clear_screen();
}
void loop() {
}
void stream_animation(){
for(int i=0; i<20; i++){
tv.bitmap(20,16,d1);
tv.delay(40);
tv.bitmap(20,16,d2);
tv.delay(40);
}
}
void speaking_animation(int x, int y){
char message[]= "ROBOT WORLD NEWS";
tv.print(30,10,message);
for(int i=0; i<=5; i++){
tv.bitmap(x,y,a);
tv.delay(100);
tv.bitmap(x,y,e);
tv.delay(100);
tv.bitmap(x,y,m);
tv.delay(100);
tv.bitmap(x,y,o);
tv.delay(100);
tv.bitmap(x,y,u);
tv.delay(100);
}
}