1. Tudom, hogy a CopyPaste nem szép dolog, de ha már van valakinek készen az nagyon leegyszerűsíti a dolgot
2. Igen, megvan
3. 60 napos tanfolyam elkezdve.
Ja és bocs, hogy rossz fórumba írtam.
Üdv:
István
Kód: Egész kijelölése
int inPin1 = 6; // the nuál.mber of the input pin
int inPin2 = 3; // the number of the input pin
int outPin1 = 8; // the number of the output pin
int outPin2 = 9; // the number of the output pin
int state1 = LOW; // the current state of the output pin
int reading1; // the current reading from the input pin
int previous1 = HIGH; // the previous reading from the input pin
int state2 = LOW; // the current state of the output pin
int reading2; // the current reading from the input pin
int previous2 = HIGH; // the previous reading from the input pin
// the follow variables are long's because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long time1 = 0; // the last time the output pin was toggled
long time2 = 0; // the last time the output pin was toggled
long debounce = 200; // the debounce time, increase if the output flickers
void setup()
{
pinMode(inPin1, INPUT);
pinMode(inPin2, INPUT);
pinMode(outPin1, OUTPUT);
pinMode(outPin2, OUTPUT);
}
void loop()
{
reading1 = digitalRead(inPin1);
reading2 = digitalRead(inPin2);
// if the input just went from LOW and HIGH and we've waited long enough
// to ignore any noise on the circuit, toggle the output pin and remember
// the time
if (reading1 == HIGH && previous1 == LOW && millis() - time1 > debounce) {
if (state1 == HIGH)
state1 = LOW;
else
state1 = HIGH;
time1 = millis();
}
if (reading2 == HIGH && previous2 == LOW && millis() - time2 > debounce) {
if (state2 == HIGH)
state2 = LOW;
else
state2 = HIGH;
time2 = millis();
}
digitalWrite(outPin1, state1);
digitalWrite(outPin2, state2);
previous1 = reading1;
previous2 = reading2;
}
Kód: Egész kijelölése
Temp_w2 = 300
For Temp_w = Temp_w2 To 0 Step -2
Next Temp_w
Megerősítve - (szimulátorban próbálva)... 2.0.7.7-el viszont jó.winnerbt írta:Sziasztok!
...
A változók word típusúak.
JAni
Hát ez az, hogy odáig el sem jutottam, hogy bármilyen programot is felírjak egyetlen chipre sem! Ezért furcsa.Robert írta:A chpre ha írtál: (ASP vagy Doper), beállíthatott olyat. Hogy kizartad magad a chipből. Lehet nem látja de kiírom a programot...
A gyári programozott chip lehet lezárt is. Azt nem is fogod látni...
STK500 ismeri. AVRStudio alatt a read chipIDnek kell látnia. Ha nem látja - hibás a chiped.