Arduino: Bare Minimum

From OnnoWiki
Revision as of 10:36, 7 February 2022 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sumber: https://www.arduino.cc/en/Tutorial/BareMinimum


Penampakan program Arduino yang paling minimal adalah sebagai berikut,


Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}


Secara umum ada bagian

  • setup untuk menginisialisasi peralatan.
  • loop, program sebenarnya yang akan loop terus menerus.


Referensi