#include <TVout.h>
#include <IRremote.h>
#include "disturbance2.h"
#include "disturbance1.h"
#include "disturbance3.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);
string_animation();
tv.clear_screen();
tv.delay(100);
speaking_animation(35,0);
tv.clear_screen();
}
void loop() {
// put your main code here, to run repeatedly:
}
void string_animation(){
for(int i=0; i<10; 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,80, 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);
}
}