diff --git a/10/index.html b/10/index.html index 0af58bb..b9d46cc 100644 --- a/10/index.html +++ b/10/index.html @@ -539,9 +539,9 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + long start = millis(); + long total1 = cs_4_2.capacitiveSensor(30); + long valCons1 = constrain(total1, 10000, 225000); }
@@ -553,9 +553,8 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + TCCR2A = (TCCR2A | _BV(COM2A1)) & ~_BV(COM2A0); + TCCR2A &= ~(_BV(COM2B1) | _BV(COM2B0)); }
@@ -566,9 +565,9 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + TV.set_pixel(x+random(TV.hres()/12),random(z,TV.vres()/4-z),pixel_num);} + if(analogRead(A0)>205 && analogRead(A0)<410){ + TV.set_pixel(x+random(TV.hres()/10),random(z,TV.vres()/2.3-z),pixel_num); }
@@ -579,9 +578,9 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + Serial.println ("Calib"); + TH0 = (adsa.readADC_SingleEnded(0) + 800); + TH1 = (adsa.readADC_SingleEnded(1) + 800); }
@@ -592,9 +591,7 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + const uint8_t spI[] PROGMEM = {0xAA,0x8D,0x63,0xA8,0xAA,0x66,0xAD,0xB9,0xA8,0xCB,0x08,0xDD,0x7C,0xFB,0x5B,0xDF,0xFA,0x36,0xB7,0x39,0x6D,0xB5,0xA3,0x15,0xBA,0xF8,0x76,0xBB,0xDF,0xD3,0x }
@@ -605,9 +602,11 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + const int sound_length=22418; +const unsigned char sound_data[] PROGMEM= { + 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, + 0x81, 0x81, 0x80, 0x80, 0x80, 0x80, 0x81, 0x80, 0x80, 0x80, 0x80, 0x80, + 0x81, 0x81, 0x80, 0x80, 0x80, }
@@ -640,9 +639,11 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + readCard(); + int textnumber; + int text = analogRead(TextKnob); + textnumber = map(text, 1, 1023, 0, 18); + }
@@ -653,9 +654,12 @@
{ - Serial.begin(9600); - TV.begin(PAL); - TV.select_font(font4x6); + TV.bitmap (0,0,top); + TV.bitmap (0,55,mouthclosed); + TV.delay (500); + TV.bitmap (0,55,mouthopen); + TV.delay (500); + Serial.println ("TVOUT"); }