This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Saját projektek ====== Részmegoldások a saját projektekből, újra felhasználásra. A projekteket jellemzően így is részekből kell összeállítani, itt néhány ilyen puzzle elem található. ===== Vegyesfelvágott ===== ==== Másodperc és perc funkciók felhívása ==== <code c> long milli_act, milli_old; int testCount, minCount; void setup() { milli_old = millis(); minCount = 0; testCount = 0; Serial.begin(9600); } void loop() { milli_act = millis(); if (abs(milli_act - milli_old) > 1000) { milli_old = milli_act; minCount++; secondTakt(); if (minCount > 58) { minCount = 0; minuteTakt(); } } } void secondTakt() { testCount++; Serial.println(testCount); } void minuteTakt() { testCount++; Serial.println("----Minute------"); } </code> hu/project/sajat_proj.txt 2022/04/21 15:04()