{"id":166,"date":"2011-10-16T17:13:33","date_gmt":"2011-10-16T15:13:33","guid":{"rendered":"http:\/\/blog.herrwolff.org\/?p=166"},"modified":"2011-10-26T12:17:47","modified_gmt":"2011-10-26T10:17:47","slug":"adruino-ide-und-programmaufbau","status":"publish","type":"post","link":"http:\/\/blog.herrwolff.org\/?p=166","title":{"rendered":"Adruino &#8212; IDE und Programmaufbau"},"content":{"rendered":"<p>[seriesposts name=&#8220;Arduino&#8220;, orderby=&#8220;user_order&#8220;]<\/p>\n<h1> Die IDE &#8212; <a href=\"http:\/\/www.arduino.cc\/en\/Main\/Software\" title=\"Download the Arduino Software\" target=\"_blank\">Arduino 0022<\/a> <\/h1>\n<p>Die Arduino IDE ist als Open Source Software (wie alles von Arduino) verf\u00fcgbar und in Java implementiert. Deshalb ist sie f\u00fcr alle g\u00e4ngigen Betriebsysteme auf der Arduino Homepage (<a href=\"http:\/\/files.arduino.cc\/downloads\/arduino-0022.zip\" target=\"_blank\">Windows 7<\/a>, <a href=\"http:\/\/files.arduino.cc\/downloads\/arduino-0022.dmg\" target=\"_blank\">Mac OS X<\/a> und <a href=\"http:\/\/files.arduino.cc\/downloads\/arduino-0022.tgz\" target=\"_blank\">Linux (32bit)<\/a>) verf\u00fcgbar.<\/p>\n<p>Die Installation ist recht einfach und eine <a href=\"http:\/\/arduino.cc\/en\/Guide\/HomePage\" title=\"Installation: Step-by-step instructions for setting up the Arduino software and connecting it to an Arduino Uno, Mega2560, Duemilanove, Mega, or Diecimila.\">Installationsanleitung<\/a> (englisch) ist auf der Arduino-Homepage verf\u00fcgbar. Ich m\u00f6chte deshalb hier nicht weiter auf die Installation eingehen.<\/p>\n<h1> Der Programmaufbau<\/h1>\n<p>Die Programmiersprache des Arduino-Entwicklungs-Board ist C, wobei externe Bibliotheken in C++ implementiert sein d\u00fcrfen. Innerhalb der IDE kommt der gcc-arv-Kompiler zum Einsatz.<\/p>\n<p><strong>Programmstruktur<\/strong><br \/>\nEin einfaches Arduino-Programm besteht aus zwei Methoden, der <em>setup()<\/em>&#8211;Methode und der <em>loop()<\/em>&#8211;Methode. <\/p>\n<p>Die <em>setup()<\/em>&#8211;Methode beinhaltet Programm-Code der einmal ausgef\u00fchrt wird. Dagegen<br \/>\nwird der Programm-Code der <em>loop()<\/em>&#8211;Methode immer wieder ausgef\u00fchrt.<\/p>\n<pre>\r\nvoid setup() {\r\n  \/\/ Setup-Code wird einmal ausgef\u00fchrt\r\n\r\n}\r\n\r\nvoid loop() {\r\n  \/\/ Haupt-Code wird immer wieder ausgef\u00fchrt\r\n  \r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[seriesposts name=&#8220;Arduino&#8220;, orderby=&#8220;user_order&#8220;] Die IDE &#8212; Arduino 0022 Die Arduino IDE ist als Open Source Software (wie alles von Arduino) verf\u00fcgbar und in Java implementiert. Deshalb ist sie f\u00fcr alle g\u00e4ngigen Betriebsysteme auf der Arduino Homepage (Windows 7, Mac OS X und Linux (32bit)) verf\u00fcgbar. Die Installation ist recht einfach und eine Installationsanleitung (englisch) ist &hellip; <a href=\"http:\/\/blog.herrwolff.org\/?p=166\" class=\"more-link\"><span class=\"screen-reader-text\">Adruino &#8212; IDE und Programmaufbau<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":"","jetpack_publicize_message":""},"categories":[26],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1ZaWF-2G","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/posts\/166"}],"collection":[{"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":18,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":289,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions\/289"}],"wp:attachment":[{"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.herrwolff.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}