final/masters

master
anna sandri 5 years ago
parent 86ce15fdf0
commit 3102b74268

Binary file not shown.

@ -0,0 +1,99 @@
#include <fontALL.h>
#include <avr/pgmspace.h>
#include <TVout.h>
#include "mouthclosed.h"
#include "mouthopen.h"
#include "top.h"
int knob1;
int knob2;
int knob3;
const int button1Pin = 4; //buttons constants
const int button2Pin = 3;
const int button3Pin = 2;
int button1State = 0; //buttons variables
int button2State = 0;
int button3State = 0;
int incomingByte = 0; //for serial communication
TVout TV; //for the TVOUT mode
char HELLO []= "hello!";
char H []= "01101000";
char E []= "01100101";
char L []= "01101100";
char O []= "01101111";
char IPA []= "ˈləʊ";
char third []= "{V}isModal_Voice";
char fourth []= "{F}isFalsetto";
char first []= "{W}isWhisper";
char second []= "{C}isCreak";
char neighbour [] = "neighbour[ˈneɪbər] says:";
void setup() {
Serial.begin (9600);
TV.select_font(font6x8);
TV.begin(PAL,120,96);
pinMode ( button1Pin && button2Pin && button3Pin, INPUT_PULLUP);
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
button1State = digitalRead(button1Pin); //read the buttons state
button2State = digitalRead(button2Pin);
button3State = digitalRead(button3Pin);
knob1 = analogRead(2);
knob2 = analogRead(1);
TV.bitmap (0,0,top);
TV.bitmap (0,55,mouthclosed);
TV.delay (500);
TV.bitmap (0,55,mouthopen);
TV.delay (500);
Serial.println ("TVOUT");
Serial.println(knob2);
if (button1State == HIGH) {
Serial.print ("button1");
TV.clear_screen ();
//TV.draw_rect (70,10,45,80,WHITE,WHITE);
TV.select_font(font8x8ext);
//TV.fill (INVERT);
TV.print(70,20,HELLO);
TV.println(70,30,HELLO);
TV.println(70,40,HELLO);
TV.println(70,50,HELLO);
TV.println(70,60,HELLO);
TV.println(70,70,HELLO);
}
/*if (button1State == LOW) { //when the button is not pressed the sentence disappears
TV.clear_screen ();
}*/
if (button2State == HIGH) {
Serial.print ("button2");
TV.clear_screen ();
TV.select_font(font4x6);
TV.print(70,70,HELLO);
TV.println(70,60,IPA);
//delay (50);
}
if (button3State == HIGH) {
Serial.print ("button3");
TV.clear_screen ();
//TV.fill(INVERT);
TV.select_font(font6x8);
TV.print(70,20,H);
TV.print(70,30,E);
TV.print(70,40,L);
TV.print(70,50,L);
TV.print(70,60,O);
//delay (50);
}
}

@ -0,0 +1,29 @@
:100000000C9434000C9446000C9446000C9446006A
:100010000C9446000C9446000C9446000C94460048
:100020000C9446000C9446000C9446000C94460038
:100030000C9446000C9446000C9446000C94460028
:100040000C9448000C9446000C9446000C94460016
:100050000C9446000C9446000C9446000C94460008
:100060000C9446000C94460011241FBECFEFD8E03C
:10007000DEBFCDBF21E0A0E0B1E001C01D92A930FC
:10008000B207E1F70E9492000C94DC000C9400008F
:100090001F920F920FB60F9211242F933F938F93BD
:1000A0009F93AF93BF938091050190910601A0911A
:1000B0000701B09108013091040123E0230F2D378F
:1000C00058F50196A11DB11D2093040180930501EF
:1000D00090930601A0930701B0930801809100015D
:1000E00090910101A0910201B09103010196A11D1F
:1000F000B11D8093000190930101A0930201B09380
:100100000301BF91AF919F918F913F912F910F90DC
:100110000FBE0F901F90189526E8230F0296A11D81
:10012000B11DD2CF789484B5826084BD84B58160DE
:1001300084BD85B5826085BD85B5816085BD8091B2
:100140006E00816080936E0010928100809181002A
:100150008260809381008091810081608093810022
:10016000809180008160809380008091B1008460E4
:100170008093B1008091B00081608093B000809145
:100180007A00846080937A0080917A008260809304
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:00000001FF

@ -0,0 +1,153 @@
:100000000C9434000C9446000C9446000C9446006A
:100010000C9446000C9446000C9446000C94460048
:100020000C9446000C9446000C9446000C94460038
:100030000C9446000C9446000C9446000C94460028
:100040000C9448000C9446000C9446000C94460016
:100050000C9446000C9446000C9446000C94460008
:100060000C9446000C94460011241FBECFEFD8E03C
:10007000DEBFCDBF21E0A0E0B1E001C01D92A930FC
:10008000B207E1F70E9492000C94DC000C9400008F
:100090001F920F920FB60F9211242F933F938F93BD
:1000A0009F93AF93BF938091050190910601A0911A
:1000B0000701B09108013091040123E0230F2D378F
:1000C00058F50196A11DB11D2093040180930501EF
:1000D00090930601A0930701B0930801809100015D
:1000E00090910101A0910201B09103010196A11D1F
:1000F000B11D8093000190930101A0930201B09380
:100100000301BF91AF919F918F913F912F910F90DC
:100110000FBE0F901F90189526E8230F0296A11D81
:10012000B11DD2CF789484B5826084BD84B58160DE
:1001300084BD85B5826085BD85B5816085BD8091B2
:100140006E00816080936E0010928100809181002A
:100150008260809381008091810081608093810022
:10016000809180008160809380008091B1008460E4
:100170008093B1008091B00081608093B000809145
:100180007A00846080937A0080917A008260809304
:100190007A0080917A00816080937A0080917A0061
:1001A000806880937A001092C100C0E0D0E0209770
:0C01B000F1F30E940000FBCFF894FFCF99
:107800000C94343C0C94513C0C94513C0C94513CE1
:107810000C94513C0C94513C0C94513C0C94513CB4
:107820000C94513C0C94513C0C94513C0C94513CA4
:107830000C94513C0C94513C0C94513C0C94513C94
:107840000C94513C0C94513C0C94513C0C94513C84
:107850000C94513C0C94513C0C94513C0C94513C74
:107860000C94513C0C94513C11241FBECFEFD8E036
:10787000DEBFCDBF11E0A0E0B1E0ECE9FFE702C060
:1078800005900D92A230B107D9F712E0A2E0B1E065
:1078900001C01D92AD30B107E1F70E942D3D0C945F
:1078A000CC3F0C94003C982F959595959595959582
:1078B000905D8F708A307CF0282F295A8091C0000B
:1078C00085FFFCCF9093C6008091C00085FFFCCF60
:1078D0002093C6000895282F205DF0CF982F809127
:1078E000C00085FFFCCF9093C6000895EF92FF92F1
:1078F0000F931F93EE24FF2487018091C00087FD22
:1079000017C00894E11CF11C011D111D81E4E8164B
:1079100082E4F8068FE0080780E0180770F3E09132
:107920000401F091050109958091C00087FFE9CF1E
:107930008091C6001F910F91FF90EF9008950E94D3
:10794000763C982F8091C00085FFFCCF9093C600B5
:1079500091362CF490330CF09053892F089597555D
:10796000892F08951F930E949F3C182F0E949F3CCF
:107970001295107F810F1F9108951F93182F882350
:1079800021F00E94763C1150E1F71F9108951F935A
:10799000182F0E94763C803249F0809103018F5F5E
:1079A000809303018530C1F01F9108958091C0003C
:1079B00085FFFCCF84E18093C6008091C00085FFE5
:1079C000FCCF1093C6008091C00085FFFCCF80E102
:1079D0008093C6001F910895E0910401F091050184
:1079E00009951F9108950E94763C803241F0809164
:1079F00003018F5F80930301853081F008958091AA
:107A0000C00085FFFCCF84E18093C6008091C00058
:107A100085FFFCCF80E18093C6000895E0910401CA
:107A2000F09105010995089540E951E08823A1F0FE
:107A30002D9A28EE33E0FA013197F1F721503040CA
:107A4000D1F72D9828EE33E0FA013197F1F7215064
:107A50003040D1F7815061F708953F924F925F9285
:107A60006F927F928F929F92AF92BF92CF92DF924E
:107A7000EF92FF920F931F93CF93DF93000080E16B
:107A80008093C4001092C50088E18093C10086E015
:107A90008093C2005098589A259A81E00E94143D24
:107AA00024E1F22E9EE1E92E85E9D82E0FE0C02ECA
:107AB00010E1B12EAA24A394B1E49B2EA6E58A2E50
:107AC000F2E57F2EE0E26E2E79E4572E63E5462E36
:107AD00050E5352E0E94763C8033B1F18133B9F107
:107AE000803409F46FC0813409F476C0823409F41B
:107AF00085C0853409F488C0803531F1823521F1A3
:107B0000813511F1853509F485C0863509F48DC0BC
:107B1000843609F496C0843709F403C1853709F423
:107B200072C1863709F466C0809103018F5F80932C
:107B30000301853079F6E0910401F0910501099582
:107B40000E94763C803351F60E94F33CC3CF0E94E2
:107B5000763C803249F78091C00085FFFCCFF092DF
:107B6000C6008091C00085FFFCCF9092C600809136
:107B7000C00085FFFCCF8092C6008091C00085FFC9
:107B8000FCCF7092C6008091C00085FFFCCF609250
:107B9000C6008091C00085FFFCCF5092C600809146
:107BA000C00085FFFCCF4092C6008091C00085FFD9
:107BB000FCCF3092C6008091C00085FFFCCFB09210
:107BC000C60088CF0E94763C863808F4BDCF0E945C
:107BD000763C0E94F33C7ECF0E94763C803809F4CC
:107BE0009CC0813809F40BC1823809F43CC1883942
:107BF00009F48FC080E00E94C73C6CCF84E10E94F2
:107C0000BD3C0E94F33C66CF85E00E94BD3C0E94D3
:107C1000F33C60CF0E94763C809306010E94763C44
:107C2000809307010E94F33C55CF0E94763C80333D
:107C300009F41DC183E00E94BD3C80E00E94C73C66
:107C400049CF0E94763C809309020E94763C809343
:107C5000080280910C028E7F80930C020E94763C79
:107C6000853409F415C18091080290910902892B8D
:107C700089F000E010E00E94763CF801E85FFE4FDA
:107C800080830F5F1F4F80910802909109020817AF
:107C9000190788F30E94763C803209F045CF809125
:107CA0000C0280FF01C16091060170910701660F0F
:107CB000771F7093070160930601A0910802B091AD
:107CC00009021097C9F0E8E0F1E09B01AD014E0F09
:107CD0005F1FF999FECF32BD21BD819180BDFA9A17
:107CE000F99A2F5F3F4FE417F50799F76A0F7B1F4B
:107CF00070930701609306018091C00085FFFCCF5F
:107D0000F092C6008091C00085FFFCCFB092C60003
:107D1000E1CE83E00E94C73CDDCE82E00E94C73CFA
:107D2000D9CE0E94763C809309020E94763C8093D3
:107D300008028091060190910701880F991F909386
:107D40000701809306010E94763C853409F4A6C0A1
:107D500080910C028E7F80930C020E94763C8032D0
:107D600009F0B8CE8091C00085FFFCCFF092C6002C
:107D7000609108027091090261157105B9F140E046
:107D800050E080910C02A82FA170B82FB27011C0E2
:107D9000BB2309F45CC0E0910601F0910701319624
:107DA000F0930701E09306014F5F5F4F46175707B7
:107DB000E8F4AA2369F3F999FECF209106013091E6
:107DC000070132BD21BDF89A90B58091C00085FFB2
:107DD000FCCF9093C6002F5F3F4F30930701209355
:107DE00006014F5F5F4F4617570718F38091C00099
:107DF00085FDE5CE8091C00085FFF8CFE0CE81E023
:107E00000E94C73C67CE0E94763C803209F08CCE3F
:107E10008091C00085FFFCCFF092C6008091C00029
:107E200085FFFCCFE092C6008091C00085FFFCCFAB
:107E3000D092C6008091C00085FFFCCFC092C600E2
:107E40008091C00085FFFCCFB092C60043CEE09188
:107E50000601F091070194918091C00085FFFCCF4D
:107E60009093C6009CCF80E10E94C73C33CE0E9415
:107E7000763C0E94763C182F0E94763C112309F430
:107E800083C0113009F484C08FE00E94C73C22CE29
:107E900080910C02816080930C02E5CE80910C02EF
:107EA000816080930C0259CF809107018823880F4D
:107EB000880B8A2180930B02809106019091070123
:107EC000880F991F90930701809306018091080203
:107ED00080FF09C080910802909109020196909359
:107EE000090280930802F894F999FECF1127E091D6
:107EF0000601F0910701C8E0D1E08091080290915D
:107F00000902103091F40091570001700130D9F34B
:107F100003E000935700E89500915700017001308D
:107F2000D9F301E100935700E89509901990009169
:107F3000570001700130D9F301E000935700E89534
:107F40001395103498F011270091570001700130FB
:107F5000D9F305E000935700E895009157000170B0
:107F60000130D9F301E100935700E895329602976A
:107F700009F0C7CF103011F00296E5CF112480919F
:107F8000C00085FFB9CEBCCE8EE10E94C73CA2CD19
:0C7F900085E90E94C73C9ECDF894FFCF0D
:027F9C00800063
:040000030000780081
:00000001FF

@ -0,0 +1,46 @@
#include "mouthclosed.h"
const unsigned char mouthclosed [] PROGMEM = {
70,41,
0x00,0x00,0x00,0x00,0x00,0x7F,0xF8,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0x7F,0xF8,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x1F,0xF8,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x1F,0xF8,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x1F,0xF8,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x1F,0xF8,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0xFF,0xF8,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0xFF,0xF8,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x3F,0xFF,0x80,0x00,0x1E,0x00,
0x00,0x00,0x00,0x7F,0xFF,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x8F,0xFE,0x00,0x00,0x1E,0x00,
0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

@ -0,0 +1,6 @@
#include <avr/pgmspace.h>
//#ifndef MOUTHCLOSED_H
#define MOUTHCLOSED_H
extern const unsigned char mouthclosed [];
//#endif

@ -0,0 +1,46 @@
#include "mouthopen.h"
const unsigned char mouthopen [] PROGMEM = {
70,41,
0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x3F,0xFE,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0xFE,0x00,
0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0xFE,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x06,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x3E,0x00,0xFE,0x00,
0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x1E,0x00,
0x00,0x00,0x00,0x3F,0xFF,0x80,0x00,0x1E,0x00,
0x00,0x00,0x00,0x7F,0xFF,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x8F,0xFE,0x00,0x00,0x1E,0x00,
0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1E,0x00,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x03,0x80,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

@ -0,0 +1,6 @@
#include <avr/pgmspace.h>
//#ifndef MOUTHOPEN_H
#define MOUTHOPEN_H
extern const unsigned char mouthopen [];
//#endif

@ -0,0 +1,60 @@
#include "top.h"
const unsigned char top [] PROGMEM = {
70,55,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,
0x3F,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x7F,0xE0,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x00,0x1E,0x00,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x00,0x07,0x80,0x00,0x00,0x1F,0xF0,
0x00,0x00,0x00,0x01,0xE0,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x0E,0x00,0x00,0x1E,0x00,
0x00,0x00,0xE0,0x00,0x1F,0x00,0x00,0x1E,0x00,
0x00,0x00,0x7C,0x00,0x7B,0x00,0x00,0x1E,0x00,
0x00,0x00,0x1F,0xFF,0xE3,0x80,0x00,0x1E,0x00,
0x00,0x1F,0x03,0xFF,0x81,0xC0,0x00,0x1E,0x00,
0x00,0x1F,0x00,0x00,0x01,0xC0,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0xE0,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0xE0,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1C,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1E,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x1E,0x01,0xFF,0x80,0x70,0x00,0x1E,0x00,
0x00,0x06,0x07,0xFF,0xE0,0x70,0x00,0x1E,0x00,
0x00,0x06,0x0E,0x00,0x60,0xE0,0x00,0x1E,0x00,
0x00,0x06,0x0C,0x1C,0x00,0xE0,0x00,0x1E,0x00,
0x00,0x06,0x00,0x3E,0x00,0xE0,0x00,0x1E,0x00,
0x0F,0xE6,0x00,0x3E,0x00,0xE0,0x00,0x1E,0x00,
0x1F,0xE6,0x00,0x3E,0x00,0xE0,0x00,0x1E,0x00,
0x38,0x60,0x70,0x1C,0x00,0xE0,0x00,0x1E,0x00,
0x70,0x60,0x7C,0x00,0x00,0x70,0x00,0x1E,0x00,
0x70,0x00,0x1E,0x00,0xC0,0x78,0x00,0x1E,0x00,
0x70,0x00,0x07,0xFF,0xC0,0x3C,0x00,0x1E,0x00,
0x70,0x00,0x03,0xFF,0x80,0x1E,0x00,0x1E,0x00,
0x76,0x00,0x00,0x00,0x00,0x0F,0x00,0x1E,0x00,
0x77,0x00,0x00,0x00,0x00,0x07,0x80,0x1E,0x00,
0x73,0x80,0x00,0x00,0x00,0x03,0xC0,0x1E,0x00,
0x71,0xC0,0x00,0x00,0x00,0x01,0xE0,0x1E,0x00,
0x70,0xE0,0x00,0x00,0x00,0x00,0xF0,0x1E,0x00,
0x78,0x70,0x00,0x00,0x00,0x00,0x78,0x1E,0x00,
0x3C,0x30,0x00,0x00,0x00,0x00,0x38,0x1E,0x00,
0x1E,0x00,0x00,0x00,0x19,0xE0,0x1C,0x1E,0x00,
0x0F,0x00,0x00,0x00,0x19,0xE0,0x0C,0x1E,0x00,
0x07,0x83,0x00,0x00,0x19,0xFF,0xFC,0x1E,0x00,
0x03,0xC3,0x00,0x00,0x1F,0xFF,0xF8,0x1E,0x00,
0x01,0xE3,0x00,0x00,0x1F,0xFF,0xF0,0x1E,0x00,
0x00,0xFF,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x3E,0x00,0x00,0x00,0x70,0x00,0x1E,0x00,
0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x1E,0x00
};

@ -0,0 +1,6 @@
#include <avr/pgmspace.h>
//#ifndef TOP_H
#define TOP_H
extern const unsigned char top [];
//#endif

@ -28,13 +28,12 @@ void setup() {
void loop() { void loop() {
knob2=analogRead(A1); knob2=analogRead(A1);
Serial.print ("hello");
TV.bitmap (0,0,top); TV.bitmap (0,0,top);
TV.bitmap (0,55,mouthclosed); TV.bitmap (0,55,mouthclosed);
TV.delay (500); TV.delay (500);
TV.bitmap (0,55,mouthopen); TV.bitmap (0,55,mouthopen);
TV.delay (500); TV.delay (500);
Serial.print ("TVOUT"); Serial.println ("TVOUT");
Serial.println(knob2); Serial.println(knob2);
if (knob2>0 && knob2<400){ if (knob2>0 && knob2<400){

@ -1,4 +1,4 @@
#include <fontALL.h> #include <fontALL.h>
#include <font8x8.h> #include <font8x8.h>
#include <font4x6.h> #include <font4x6.h>
#include <font6x8.h> #include <font6x8.h>
@ -29,7 +29,7 @@
void setup() { void setup() {
// put your setup code here, to run once: // put your setup code here, to run once:
pinMode(13, OUTPUT); //pinMode(13, OUTPUT);
Serial.println(TV.vres()); Serial.println(TV.vres());
Serial.println(TV.hres()); Serial.println(TV.hres());
TV.begin(PAL,120,96); TV.begin(PAL,120,96);
@ -45,9 +45,9 @@ void loop() {
TV.select_font(font8x8); TV.select_font(font8x8);
knob1 = analogRead(1);
knob2 = analogRead(2); knob1 = analogRead(2);
knob3 = analogRead(3); knob2 = analogRead(1);
Serial.println(knob2); Serial.println(knob2);
//myChar = pgm_read_byte (1); //myChar = pgm_read_byte (1);
@ -59,7 +59,7 @@ Serial.println(knob2);
delay (200); delay (200);
} }
else if (knob2>255 && knob2<510){ else if (knob1>255 && knob1<510){
TV.clear_screen(); TV.clear_screen();
//TV.fill(INVERT); //TV.fill(INVERT);
TV.println(0,20,second); TV.println(0,20,second);
@ -68,14 +68,14 @@ Serial.println(knob2);
delay (200); delay (200);
} }
else if (knob2>510 && knob2<750){ else if (knob1>510 && knob1<750){
TV.clear_screen(); TV.clear_screen();
TV.println(0,40,third); TV.println(0,40,third);
TV.draw_rect (40,70,30,30,WHITE,WHITE); TV.draw_rect (40,70,30,30,WHITE,WHITE);
delay (200); delay (200);
} }
else if (knob2>750 && knob2<1023){ else if (knob1>750 && knob1<1023){
TV.clear_screen(); TV.clear_screen();
TV.println(0,70,fourth); TV.println(0,70,fourth);
delay (1000); delay (1000);

Loading…
Cancel
Save