{"id":3077,"date":"2026-06-09T08:00:00","date_gmt":"2026-06-09T06:00:00","guid":{"rendered":"https:\/\/www.fuhselab.de\/?p=3077"},"modified":"2026-05-05T08:36:05","modified_gmt":"2026-05-05T06:36:05","slug":"arduino-siebensegmentanzeige-2","status":"publish","type":"post","link":"https:\/\/www.fuhselab.de\/index.php\/2026\/06\/09\/arduino-siebensegmentanzeige-2\/","title":{"rendered":"Arduino Siebensegmentanzeige 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Projekt 19 bringt uns mit dem Arduino zum zweiten Projekt mit einer Siebensegmentanzeige\u2026<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Programmierung:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#define DATA 6\t\t\/\/Pin 14 am Schieberegister\n#define LATCH 8\t\t\/\/Pin 12 am Schieberegister\n#define CLOCK 10\t\/\/Pin 11 am Schieberegister\n\nvoid setup()\n{\npinMode(LATCH, OUTPUT);\npinMode(CLOCK, OUTPUT);\npinMode(DATA, OUTPUT);\n}\n\nint digits&#91;] =\n{252, 96, 218, 242, 102, 182, 190, 224, 254, 246, 238, 62, 156, 122, 158, 142};\n\nvoid displayNumber(int n)\n{\nint left, right=0;\nif (n&lt; 10)\n{\ndigitalWrite(LATCH, LOW);\nshiftOut(DATA, CLOCK, LSBFIRST, digits&#91;n]);\nshiftOut(DATA, CLOCK, LSBFIRST, 0);\ndigitalWrite(LATCH, HIGH);\n}\n\nelse if (n>= 10)\n{\nright = n % 10;\nleft = n \/ 10;\ndigitalWrite(LATCH, LOW);\nshiftOut(DATA, CLOCK, LSBFIRST, digits&#91;right]);\nshiftOut(DATA, CLOCK, LSBFIRST, digits&#91;left]);\ndigitalWrite(LATCH, HIGH);\n}\n}\n\nvoid loop()\n{\nint i;\nfor (i = 0; i&lt;100; i++)\n{\ndisplayNumber(i);\ndelay(100);\n}\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Projekt 19 bringt uns mit dem Arduino zum zweiten Projekt mit einer Siebensegmentanzeige\u2026<\/p>\n","protected":false},"author":1,"featured_media":48,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[22],"class_list":["post-3077","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-arduino-gruppe-peine"],"_links":{"self":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/comments?post=3077"}],"version-history":[{"count":1,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3077\/revisions"}],"predecessor-version":[{"id":3078,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/posts\/3077\/revisions\/3078"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media\/48"}],"wp:attachment":[{"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/media?parent=3077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/categories?post=3077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fuhselab.de\/index.php\/wp-json\/wp\/v2\/tags?post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}