Melódie - 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.

19 November 2025

  • curprev 14:3714:37, 19 November 2025 Palo talk contribs 1,250 bytes +683 No edit summary
  • curprev 14:2914:29, 19 November 2025 Palo talk contribs 567 bytes +567 Created page with "<syntaxhighlight lang="C++"> void setup() { Serial.begin(9600); pinMode(4, OUTPUT); } char *tony = "CDEF"; int frek[] = {523, 587, 659, 698}; int pocet_tonov = 4; void zahraj(char nota, int dlzka) { for (int i = 0; i < pocet_tonov; i++) { if (tony[i] == nota) tone(4, frek[i], 350*dlzka); } delay(350 * dlzka); } void loop() { char kohutik[] = "CDEFFFFEDEEEEDCDDDDEDCCC"; int dlzky[] = {1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1,1,1,2,2,1,1}; int n = 24;..."