{"id":871,"date":"2015-06-09T11:31:27","date_gmt":"2015-06-09T11:31:27","guid":{"rendered":"http:\/\/www.horter.de\/blog\/?p=871"},"modified":"2023-01-13T15:36:55","modified_gmt":"2023-01-13T15:36:55","slug":"i2c-analog-input-am-pi-mit-c-einlesen","status":"publish","type":"post","link":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/","title":{"rendered":"I2C-Analog Input am PI mit C einlesen"},"content":{"rendered":"<p>Diese Programmzeilen wurden mir dankenswerterweise von einem Kunden geschickt. Das Programm <a href=\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2015\/06\/horter_adc5.c\">horter_adc5<\/a> liest alle 11 Byte und berechnet gleich die Spannung in V.<\/p>\n<pre class=\"python\" style=\"font-family: monospace;\"><span style=\"color: #004a43;\">#<\/span><span style=\"color: #004a43;\">include <\/span><span style=\"color: #800000;\">&lt;<\/span><span style=\"color: #40015a;\">unistd.h<\/span><span style=\"color: #800000;\">&gt;<\/span>\r\n<span style=\"color: #004a43;\">#<\/span><span style=\"color: #004a43;\">include <\/span><span style=\"color: #800000;\">&lt;<\/span><span style=\"color: #40015a;\">fcntl.h<\/span><span style=\"color: #800000;\">&gt;<\/span>\r\n<span style=\"color: #004a43;\">#<\/span><span style=\"color: #004a43;\">include <\/span><span style=\"color: #800000;\">&lt;<\/span><span style=\"color: #40015a;\">sys\/ioctl.h<\/span><span style=\"color: #800000;\">&gt;<\/span>\r\n<span style=\"color: #004a43;\">#<\/span><span style=\"color: #004a43;\">include <\/span><span style=\"color: #800000;\">&lt;<\/span><span style=\"color: #40015a;\">linux\/i2c-dev.h<\/span><span style=\"color: #800000;\">&gt;<\/span>\r\n<span style=\"color: #004a43;\">#<\/span><span style=\"color: #004a43;\">include <\/span><span style=\"color: #800000;\">&lt;<\/span><span style=\"color: #40015a;\">stdio.h<\/span><span style=\"color: #800000;\">&gt;<\/span>\r\n\r\n<span style=\"color: #800000; font-weight: bold;\">int<\/span> <span style=\"color: #400000;\">main<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #800000; font-weight: bold;\">void<\/span><span style=\"color: #808030;\">)<\/span>\r\n<span style=\"color: #800080;\">{<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">float<\/span> adc<span style=\"color: #808030;\">[<\/span><span style=\"color: #008c00;\">5<\/span><span style=\"color: #808030;\">]<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">int<\/span> r<span style=\"color: #808030;\">,<\/span> i<span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">char<\/span> buffer<span style=\"color: #808030;\">[<\/span><span style=\"color: #008c00;\">11<\/span><span style=\"color: #808030;\">]<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">int<\/span> fd <span style=\"color: #808030;\">=<\/span> open<span style=\"color: #808030;\">(<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #0000e6;\">\/dev\/i2c-2<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #808030;\">,<\/span> O_RDWR<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">if<\/span> <span style=\"color: #808030;\">(<\/span>fd <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #808030;\">)<\/span> <span style=\"color: #800080;\">{<\/span>\r\n\t\t<span style=\"color: #800000; font-weight: bold;\">return<\/span> <span style=\"color: #008c00;\">1<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800080;\">}<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">if<\/span> <span style=\"color: #808030;\">(<\/span>ioctl<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">,<\/span> I2C_SLAVE<span style=\"color: #808030;\">,<\/span> <span style=\"color: #008000;\">0x08<\/span><span style=\"color: #808030;\">)<\/span> <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #808030;\">)<\/span> <span style=\"color: #800080;\">{<\/span>\r\n\t\tclose<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t\t<span style=\"color: #800000; font-weight: bold;\">return<\/span> <span style=\"color: #008c00;\">2<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800080;\">}<\/span>\r\n\tr <span style=\"color: #808030;\">=<\/span> write<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">,<\/span> <span style=\"color: #808030;\">(<\/span><span style=\"color: #800000; font-weight: bold;\">char<\/span><span style=\"color: #808030;\">[<\/span><span style=\"color: #808030;\">]<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #ffffff; background: #dd0000; font-weight: bold; font-style: italic;\">{<\/span> <span style=\"color: #008c00;\">0<\/span> <span style=\"color: #ffffff; background: #dd0000; font-weight: bold; font-style: italic;\">}<\/span><span style=\"color: #808030;\">,<\/span> <span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">if<\/span> <span style=\"color: #808030;\">(<\/span>r <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #808030;\">)<\/span> <span style=\"color: #800080;\">{<\/span>\r\n\t\tclose<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t\t<span style=\"color: #800000; font-weight: bold;\">return<\/span> <span style=\"color: #008c00;\">3<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800080;\">}<\/span>\r\n\tr <span style=\"color: #808030;\">=<\/span> read<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">,<\/span> buffer<span style=\"color: #808030;\">,<\/span> <span style=\"color: #800000; font-weight: bold;\">sizeof<\/span><span style=\"color: #808030;\">(<\/span>buffer<span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\tclose<span style=\"color: #808030;\">(<\/span>fd<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #603000;\">printf<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #0000e6;\">read: <\/span><span style=\"color: #007997;\">%d<\/span><span style=\"color: #0f69ff;\">\\n<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #808030;\">,<\/span> r<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">if<\/span> <span style=\"color: #808030;\">(<\/span>r <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #808030;\">)<\/span> <span style=\"color: #800080;\">{<\/span>\r\n\t\t<span style=\"color: #800000; font-weight: bold;\">return<\/span> <span style=\"color: #008c00;\">4<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800080;\">}<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">for<\/span><span style=\"color: #808030;\">(<\/span>i <span style=\"color: #808030;\">=<\/span> <span style=\"color: #008c00;\">1<\/span><span style=\"color: #800080;\">;<\/span> i <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #800000; font-weight: bold;\">sizeof<\/span><span style=\"color: #808030;\">(<\/span>buffer<span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span> <span style=\"color: #808030;\">+<\/span><span style=\"color: #808030;\">+<\/span>i<span style=\"color: #808030;\">)<\/span>\r\n\t\t<span style=\"color: #603000;\">printf<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #007997;\">%02x<\/span> <span style=\"color: #800000;\">\"<\/span><span style=\"color: #808030;\">,<\/span> buffer<span style=\"color: #808030;\">[<\/span>i<span style=\"color: #808030;\">]<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #603000;\">putchar<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #0000e6;\">'\\n'<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #603000;\">putchar<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #0000e6;\">'\\n'<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">for<\/span><span style=\"color: #808030;\">(<\/span>i <span style=\"color: #808030;\">=<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #800080;\">;<\/span> i <span style=\"color: #808030;\">&lt;<\/span> <span style=\"color: #008c00;\">5<\/span><span style=\"color: #800080;\">;<\/span> <span style=\"color: #808030;\">+<\/span><span style=\"color: #808030;\">+<\/span>i<span style=\"color: #808030;\">)<\/span> <span style=\"color: #800080;\">{<\/span>\r\n\t\tadc<span style=\"color: #808030;\">[<\/span>i<span style=\"color: #808030;\">]<\/span> <span style=\"color: #808030;\">=<\/span> buffer<span style=\"color: #808030;\">[<\/span><span style=\"color: #808030;\">(<\/span>i<span style=\"color: #808030;\">*<\/span><span style=\"color: #008c00;\">2<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">+<\/span><span style=\"color: #008c00;\">2<\/span><span style=\"color: #808030;\">]<\/span><span style=\"color: #808030;\">*<\/span><span style=\"color: #008c00;\">256<\/span><span style=\"color: #808030;\">+<\/span>buffer<span style=\"color: #808030;\">[<\/span><span style=\"color: #808030;\">(<\/span>i<span style=\"color: #808030;\">*<\/span><span style=\"color: #008c00;\">2<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">+<\/span><span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">]<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t\t<span style=\"color: #603000;\">printf<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #0000e6;\">ADC<\/span><span style=\"color: #007997;\">%d<\/span><span style=\"color: #0000e6;\"> = <\/span><span style=\"color: #007997;\">%.3f<\/span><span style=\"color: #0000e6;\">V<\/span><span style=\"color: #0f69ff;\">\\n<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #808030;\">,<\/span> i<span style=\"color: #808030;\">,<\/span> adc<span style=\"color: #808030;\">[<\/span>i<span style=\"color: #808030;\">]<\/span><span style=\"color: #808030;\">*<\/span><span style=\"color: #008c00;\">10<\/span><span style=\"color: #808030;\">\/<\/span><span style=\"color: #008000;\">999.0234375<\/span> <span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t\t<span style=\"color: #696969;\">\/\/printf(\"ADC%d = %4d\\n\", i, buffer[(i*2)+2]*256+buffer[(i*2)+1] );<\/span>\r\n\t<span style=\"color: #800080;\">}<\/span>\r\n\t<span style=\"color: #603000;\">putchar<\/span><span style=\"color: #808030;\">(<\/span><span style=\"color: #0000e6;\">'\\n'<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #800080;\">;<\/span>\r\n\t<span style=\"color: #800000; font-weight: bold;\">return<\/span> <span style=\"color: #008c00;\">0<\/span><span style=\"color: #800080;\">;<\/span>\r\n<span style=\"color: #800080;\">}<\/span>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Diese Programmzeilen wurden mir dankenswerterweise von einem Kunden geschickt. Das Programm horter_adc5 liest alle 11 Byte und berechnet gleich die Spannung in V. #include &lt;unistd.h&gt; #include &lt;fcntl.h&gt; #include &lt;sys\/ioctl.h&gt; #include &lt;linux\/i2c-dev.h&gt; #include &lt;stdio.h&gt; int main(void) { float adc[5]; int r,&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\">mehr lesen<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[255],"tags":[],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog\" \/>\n<meta property=\"og:description\" content=\"Diese Programmzeilen wurden mir dankenswerterweise von einem Kunden geschickt. Das Programm horter_adc5 liest alle 11 Byte und berechnet gleich die Spannung in V. #include &lt;unistd.h&gt; #include &lt;fcntl.h&gt; #include &lt;sys\/ioctl.h&gt; #include &lt;linux\/i2c-dev.h&gt; #include &lt;stdio.h&gt; int main(void) { float adc[5]; int r,... mehr lesen\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\" \/>\n<meta property=\"og:site_name\" content=\"Horter &amp; Kalb Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-06-09T11:31:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-13T15:36:55+00:00\" \/>\n<meta name=\"author\" content=\"JH\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"JH\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\"},\"author\":{\"name\":\"JH\",\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2\"},\"headline\":\"I2C-Analog Input am PI mit C einlesen\",\"datePublished\":\"2015-06-09T11:31:27+00:00\",\"dateModified\":\"2023-01-13T15:36:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\"},\"wordCount\":31,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#organization\"},\"articleSection\":[\"Raspberry PI\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\",\"url\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\",\"name\":\"I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#website\"},\"datePublished\":\"2015-06-09T11:31:27+00:00\",\"dateModified\":\"2023-01-13T15:36:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start\",\"item\":\"https:\/\/www.horter.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I2C-Analog Input am PI mit C einlesen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.horter.de\/blog\/#website\",\"url\":\"https:\/\/www.horter.de\/blog\/\",\"name\":\"Horter & Kalb Blog\",\"description\":\"SPS, I2C und mehr\",\"publisher\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.horter.de\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.horter.de\/blog\/#organization\",\"name\":\"Horter & Kalb Blog\",\"url\":\"https:\/\/www.horter.de\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2026\/01\/hoka_Icon_400x400.png\",\"contentUrl\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2026\/01\/hoka_Icon_400x400.png\",\"width\":400,\"height\":400,\"caption\":\"Horter & Kalb Blog\"},\"image\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2\",\"name\":\"JH\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2015\/07\/jhfb.jpg\",\"contentUrl\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2015\/07\/jhfb.jpg\",\"caption\":\"JH\"},\"url\":\"https:\/\/www.horter.de\/blog\/author\/j-horter\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/","og_locale":"de_DE","og_type":"article","og_title":"I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog","og_description":"Diese Programmzeilen wurden mir dankenswerterweise von einem Kunden geschickt. Das Programm horter_adc5 liest alle 11 Byte und berechnet gleich die Spannung in V. #include &lt;unistd.h&gt; #include &lt;fcntl.h&gt; #include &lt;sys\/ioctl.h&gt; #include &lt;linux\/i2c-dev.h&gt; #include &lt;stdio.h&gt; int main(void) { float adc[5]; int r,... mehr lesen","og_url":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/","og_site_name":"Horter &amp; Kalb Blog","article_published_time":"2015-06-09T11:31:27+00:00","article_modified_time":"2023-01-13T15:36:55+00:00","author":"JH","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"JH","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#article","isPartOf":{"@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/"},"author":{"name":"JH","@id":"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2"},"headline":"I2C-Analog Input am PI mit C einlesen","datePublished":"2015-06-09T11:31:27+00:00","dateModified":"2023-01-13T15:36:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/"},"wordCount":31,"commentCount":0,"publisher":{"@id":"https:\/\/www.horter.de\/blog\/#organization"},"articleSection":["Raspberry PI"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/","url":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/","name":"I2C-Analog Input am PI mit C einlesen - Horter &amp; Kalb Blog","isPartOf":{"@id":"https:\/\/www.horter.de\/blog\/#website"},"datePublished":"2015-06-09T11:31:27+00:00","dateModified":"2023-01-13T15:36:55+00:00","breadcrumb":{"@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.horter.de\/blog\/i2c-analog-input-am-pi-mit-c-einlesen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Start","item":"https:\/\/www.horter.de\/blog\/"},{"@type":"ListItem","position":2,"name":"I2C-Analog Input am PI mit C einlesen"}]},{"@type":"WebSite","@id":"https:\/\/www.horter.de\/blog\/#website","url":"https:\/\/www.horter.de\/blog\/","name":"Horter & Kalb Blog","description":"SPS, I2C und mehr","publisher":{"@id":"https:\/\/www.horter.de\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.horter.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.horter.de\/blog\/#organization","name":"Horter & Kalb Blog","url":"https:\/\/www.horter.de\/blog\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.horter.de\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2026\/01\/hoka_Icon_400x400.png","contentUrl":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2026\/01\/hoka_Icon_400x400.png","width":400,"height":400,"caption":"Horter & Kalb Blog"},"image":{"@id":"https:\/\/www.horter.de\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2","name":"JH","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.horter.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2015\/07\/jhfb.jpg","contentUrl":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2015\/07\/jhfb.jpg","caption":"JH"},"url":"https:\/\/www.horter.de\/blog\/author\/j-horter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/comments?post=871"}],"version-history":[{"count":11,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts\/871\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/media?parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/categories?post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/tags?post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}