Arduino 1 - sériový port B

From DT^2
Revision as of 12:09, 29 July 2019 by Palo (talk | contribs) (Created page with "<syntaxhighlight lang="C++"> void setup() { Serial.begin(9600); } void loop() { Serial.println("Ahoj deti na DTDT!"); int vysledok; vysledok = scitaj(4, 6); Serial....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("Ahoj deti na DTDT!");
  int vysledok;
  vysledok = scitaj(4, 6);
  Serial.print("vysledok=");
  Serial.println(vysledok);
}

int scitaj(int a, int b)
{
  int c = a + b;
  return c;
}