Poplašné zariadenie - streda 2526: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 November 2025

  • curprev 14:3614:36, 12 November 2025 Palo talk contribs 573 bytes +573 Created page with " K arduinu je pripojený dotykový alebo infračervený senzor a kým je aktivovaný sa ozýva siréna poplašného zariadenia. Program: <syntaxhighlight lang="C++"> void setup() { Serial.begin(9600); pinMode(4, OUTPUT); } void loop() { int s = digitalRead(2); Serial.prinln(s); delay(500); if (s == 1) { for (int i = 0; i <= 255; i++) { digitalWrite(4, 1); delay(1); digitalWrite(4, 0); delay(1); } } } </syntaxhighlight>..."