|
|
@ -539,9 +539,9 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
long start = millis();
|
|
|
|
TV.begin(PAL);
|
|
|
|
long total1 = cs_4_2.capacitiveSensor(30);
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
long valCons1 = constrain(total1, 10000, 225000);
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -553,9 +553,8 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
TCCR2A = (TCCR2A | _BV(COM2A1)) & ~_BV(COM2A0);
|
|
|
|
TV.begin(PAL);
|
|
|
|
TCCR2A &= ~(_BV(COM2B1) | _BV(COM2B0));
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -566,9 +565,9 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
TV.set_pixel(x+random(TV.hres()/12),random(z,TV.vres()/4-z),pixel_num);}
|
|
|
|
TV.begin(PAL);
|
|
|
|
if(analogRead(A0)>205 && analogRead(A0)<410){
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
TV.set_pixel(x+random(TV.hres()/10),random(z,TV.vres()/2.3-z),pixel_num);
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -579,9 +578,9 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
Serial.println ("Calib");
|
|
|
|
TV.begin(PAL);
|
|
|
|
TH0 = (adsa.readADC_SingleEnded(0) + 800);
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
TH1 = (adsa.readADC_SingleEnded(1) + 800);
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -592,9 +591,7 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
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
|
|
|
|
TV.begin(PAL);
|
|
|
|
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -605,9 +602,11 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
const int sound_length=22418;
|
|
|
|
TV.begin(PAL);
|
|
|
|
const unsigned char sound_data[] PROGMEM= {
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
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,
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -640,9 +639,11 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
readCard();
|
|
|
|
TV.begin(PAL);
|
|
|
|
int textnumber;
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
int text = analogRead(TextKnob);
|
|
|
|
|
|
|
|
textnumber = map(text, 1, 1023, 0, 18);
|
|
|
|
|
|
|
|
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -653,9 +654,12 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
<br><marquee class="code" behavior="scroll" direction="left">{
|
|
|
|
Serial.begin(9600);
|
|
|
|
TV.bitmap (0,0,top);
|
|
|
|
TV.begin(PAL);
|
|
|
|
TV.bitmap (0,55,mouthclosed);
|
|
|
|
TV.select_font(font4x6);
|
|
|
|
TV.delay (500);
|
|
|
|
|
|
|
|
TV.bitmap (0,55,mouthopen);
|
|
|
|
|
|
|
|
TV.delay (500);
|
|
|
|
|
|
|
|
Serial.println ("TVOUT");
|
|
|
|
} </marquee></br>
|
|
|
|
} </marquee></br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|