Pan arduino program run in two parts p p a

Info icon This preview shows pages 2–4. Sign up to view the full content.

View Full Document Right Arrow Icon
<p>An Arduino program run in two parts: </p> <p class='vspace'></p><ul><li>void <a class='wikilink' href='Setup.html'>setup</a>() </li><li>void <a class='wikilink' href='Loop.html'>loop</a>() </li></ul><p class='vspace'></p><p>setup() is preparation, and loop() is execution. In the setup section, always at the top of y </p> <p class='vspace'></p><ul><li><a class='wikilink' href='VariableDeclaration.html'>Variable Declaration</a> </li><li><a class='wikilink' href='FunctionDeclaration.html'>Function Declaration</a> <ul><li><a class='wikilink' href='Void.html'>void</a> </li></ul></li></ul><p class='vspace'></p><h4>Control Structures</h4> <ul><li><a class='wikilink' href='If.html'>if</a> </li><li><a class='wikilink' href='Else.html'>if...else</a> </li><li><a class='wikilink' href='For.html'>for</a> </li><li><a class='wikilink' href='SwitchCase.html'>switch case</a> </li><li><a class='wikilink' href='While.html'>while</a> </li><li><a class='wikilink' href='DoWhile.html'>do... while</a> </li><li><a class='wikilink' href='Break.html'>break</a> </li><li><a class='wikilink' href='Continue.html'>continue</a> </li><li><a class='wikilink' href='Return.html'>return</a> </li></ul><p class='vspace'></p><h4>Further Syntax</h4> <ul><li><a class='wikilink' href='SemiColon.html'> </li><li><a class='wikilink' href='Braces.html'>{}</a> (curly braces) </li><li><a class='wikilink' href='Comments.html'>//</a> (single line comment) </li><li><a class='wikilink' href='Comments.html'>/* */</a> (multi-line comment) </li></ul><p class='vspace'></p><h4>Arithmetic Operators</h4> <ul><li><a class='wikilink' href='Arithmetic.html'>plus</a> (addition) </li><li><a class='wikilink' href='Arithmetic.html'>-</a> (subtraction) </li><li><a class='wikilink' href='Arithmetic.html'>*</a> (multiplication) </li><li><a class='wikilink' href='Arithmetic.html'>/</a> (division) </li><li><a class='wikilink' href='Modulo.html'>%</a> (modulo) </li></ul><p class='vspace'></p><h4>Comparison Operators</h4> <ul><li><a class='wikilink' href='If.html'>==</a> (equal to) </li><li><a class='wikilink' href='If.html'>!=</a> (not equal to) </li><li><a class='wikilink' href='If.html'>&lt </li><li><a class='wikilink' href='If.html'>&gt </li><li><a class='wikilink' href='If.html'>&lt </li><li><a class='wikilink' href='If.html'>&gt
Image of page 2

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Sheet1 Page 3 </li></ul><p class='vspace'></p><h4>Boolean Operators</h4> <ul><li><a class='wikilink' href='Boolean.html'>&amp </li><li><a class='wikilink' href='Boolean.html'>||</a> (or) </li><li><a class='wikilink' href='Boolean.html'>!</a> (not) </li></ul><p class='vspace'></p><h4>Compound Operators</h4> <ul><li><a class='wikilink' href='Increment.html'>++</a> (increment) </li><li><a class='wikilink' href='Increment.html'>--</a> (decrement) </li><li><a class='wikilink' href='IncrementCompound.html'>+=</a> (compound addition)
Image of page 3
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern