{"id":1220,"date":"2016-04-26T16:02:43","date_gmt":"2016-04-26T16:02:43","guid":{"rendered":"http:\/\/www.horter.de\/blog\/?p=1220"},"modified":"2023-01-14T18:31:50","modified_gmt":"2023-01-14T18:31:50","slug":"i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry","status":"publish","type":"post","link":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/","title":{"rendered":"I2C-Digital-Input-Modul mit Python und TkInter"},"content":{"rendered":"<h3>Eing\u00e4nge vom I2HE-Modul\u00a0einlesen<\/h3>\n<p>Das Programmbeispiel liest alle 20ms das Byte von der Eingangskarte ein, und schreibt den Wert in ein Label.<\/p>\n<div id=\"attachment_1230\" style=\"width: 140px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/pythontkinter_digin\/\" rel=\"attachment wp-att-1230\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1230\" class=\"size-full wp-image-1230\" src=\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\" alt=\"I2C-Input Modul einlesen und im Label anzeigen\" width=\"130\" height=\"59\" \/><\/a><p id=\"caption-attachment-1230\" class=\"wp-caption-text\">I2C-Input Modul einlesen und im Label anzeigen<\/p><\/div>\n<p>&nbsp;<\/p>\n<h3>Module importieren und Globale Variable definieren<\/h3>\n<p>im Hauptprogramm werden einige\u00a0 Module\u00a0importiert.<\/p>\n<p>Au\u00dferdem braucht jede Eingabekarte eine globale Variable\u00a0die wir einfach mal in1 f\u00fcr die erste Input-karte nennen<\/p>\n<blockquote><p><span style=\"color: #800000; font-weight: bold;\">import<\/span> tkinter <span style=\"color: #800000; font-weight: bold;\">as<\/span> tk<br \/>\n<span style=\"color: #800000; font-weight: bold;\">import<\/span> smbus<\/p>\n<p>mainWin <span style=\"color: #808030;\">=<\/span> tk<span style=\"color: #808030;\">.<\/span>Tk<span style=\"color: #808030;\">(<\/span><span style=\"color: #808030;\">)<\/span><br \/>\nmainWin<span style=\"color: #808030;\">.<\/span>title<span style=\"color: #808030;\">(<\/span><span style=\"color: #0000e6;\">&#8218;Digital Input&#8216;<\/span><span style=\"color: #808030;\">)<\/span><\/p>\n<p>bus <span style=\"color: #808030;\">=<\/span> smbus<span style=\"color: #808030;\">.<\/span>SMBus<span style=\"color: #808030;\">(<\/span><span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">)<\/span><\/p>\n<p>in1 <span style=\"color: #808030;\">=<\/span> <span style=\"color: #008c00;\">0<\/span><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>Falls der Import vom SM-Bus nicht funktioniert muss dieser erst noch auf dem Raspberry-Pi installiert werden. Diese Anleitung hilft dabei recht gut. <a href=\"https:\/\/pypi.python.org\/pypi\/smbus-cffi\" target=\"_blank\" rel=\"noopener\">https:\/\/pypi.python.org\/pypi\/smbus-cffi<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Programmcode<\/h3>\n<pre><span style=\"color: #800000; font-weight: bold;\">import<\/span> tkinter <span style=\"color: #800000; font-weight: bold;\">as<\/span> tk\r\n<span style=\"color: #800000; font-weight: bold;\">import<\/span> smbus\r\n\r\nmainWin <span style=\"color: #808030;\">=<\/span> tk<span style=\"color: #808030;\">.<\/span>Tk<span style=\"color: #808030;\">(<\/span><span style=\"color: #808030;\">)<\/span>\r\nmainWin<span style=\"color: #808030;\">.<\/span>title<span style=\"color: #808030;\">(<\/span><span style=\"color: #0000e6;\">'Digital Input'<\/span><span style=\"color: #808030;\">)<\/span>\r\n\r\nbus <span style=\"color: #808030;\">=<\/span> smbus<span style=\"color: #808030;\">.<\/span>SMBus<span style=\"color: #808030;\">(<\/span><span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">)<\/span>\r\n\r\nin1 <span style=\"color: #808030;\">=<\/span> <span style=\"color: #008c00;\">0<\/span>\r\n\r\n<span style=\"color: #800000; font-weight: bold;\">def<\/span> wert<span style=\"color: #808030;\">(<\/span>label<span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">:<\/span>\r\n    <span style=\"color: #800000; font-weight: bold;\">def<\/span> read<span style=\"color: #808030;\">(<\/span><span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">:<\/span>\r\n        <span style=\"color: #800000; font-weight: bold;\">global<\/span> in1\r\n        var<span style=\"color: #808030;\">=<\/span>bus<span style=\"color: #808030;\">.<\/span>read_byte_data<span style=\"color: #808030;\">(<\/span><span style=\"color: #008c00;\">0x38<\/span><span style=\"color: #808030;\">,<\/span><span style=\"color: #008c00;\">255<\/span><span style=\"color: #808030;\">)  <span style=\"color: #808080;\">#Wert von der Digital-Input-Karte lesen<\/span><\/span>\r\n        in1 <span style=\"color: #808030;\">=<\/span> <span style=\"color: #008c00;\">255<\/span><span style=\"color: #44aadd;\">-<\/span>var                     <span style=\"color: #808080;\">#Wert invertieren<\/span>\r\n        label<span style=\"color: #808030;\">.<\/span>config<span style=\"color: #808030;\">(<\/span>text<span style=\"color: #808030;\">=<\/span><span style=\"color: #400000;\">str<\/span><span style=\"color: #808030;\">(<\/span>in1<span style=\"color: #808030;\">)<\/span><span style=\"color: #808030;\">)       <span style=\"color: #808080;\">#Wert in Label schreiben<\/span><\/span>\r\n        label<span style=\"color: #808030;\">.<\/span>after<span style=\"color: #808030;\">(<\/span><span style=\"color: #008c00;\">20<\/span><span style=\"color: #808030;\">,<\/span> read<span style=\"color: #808030;\">)             <span style=\"color: #808080;\">#Funktion in 20ms erneut aufrufen<\/span><\/span>\r\n    read<span style=\"color: #808030;\">(<\/span><span style=\"color: #808030;\">)<\/span>\r\n\r\nlabel <span style=\"color: #808030;\">=<\/span> tk<span style=\"color: #808030;\">.<\/span>Label<span style=\"color: #808030;\">(<\/span>mainWin<span style=\"color: #808030;\">,<\/span> width<span style=\"color: #808030;\">=<\/span><span style=\"color: #008c00;\">15<\/span><span style=\"color: #808030;\">)<\/span>\r\nlabel<span style=\"color: #808030;\">.<\/span>grid<span style=\"color: #808030;\">(<\/span>row<span style=\"color: #808030;\">=<\/span><span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">,<\/span>column<span style=\"color: #808030;\">=<\/span><span style=\"color: #008c00;\">1<\/span><span style=\"color: #808030;\">)<\/span>\r\n\r\nwert<span style=\"color: #808030;\">(<\/span>label<span style=\"color: #808030;\">)<\/span>\r\n\r\nmainWin<span style=\"color: #808030;\">.<\/span>mainloop<span style=\"color: #808030;\">(<\/span><span style=\"color: #808030;\">)<\/span>\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eing\u00e4nge vom I2HE-Modul\u00a0einlesen Das Programmbeispiel liest alle 20ms das Byte von der Eingangskarte ein, und schreibt den Wert in ein Label. &nbsp; Module importieren und Globale Variable definieren im Hauptprogramm werden einige\u00a0 Module\u00a0importiert. Au\u00dferdem braucht jede Eingabekarte eine globale Variable\u00a0die&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\">mehr lesen<\/a><\/p>\n","protected":false},"author":3,"featured_media":1230,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[254],"tags":[162,69,67,80,164,163],"class_list":["post-1220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-24v-signale-lesen","tag-digital-input","tag-eingabe","tag-eingang","tag-schalter","tag-taster"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I2C-Digital-Input-Modul mit Python und TkInter - 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-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I2C-Digital-Input-Modul mit Python und TkInter - Horter &amp; Kalb Blog\" \/>\n<meta property=\"og:description\" content=\"Eing\u00e4nge vom I2HE-Modul\u00a0einlesen Das Programmbeispiel liest alle 20ms das Byte von der Eingangskarte ein, und schreibt den Wert in ein Label. &nbsp; Module importieren und Globale Variable definieren im Hauptprogramm werden einige\u00a0 Module\u00a0importiert. Au\u00dferdem braucht jede Eingabekarte eine globale Variable\u00a0die... mehr lesen\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\" \/>\n<meta property=\"og:site_name\" content=\"Horter &amp; Kalb Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-26T16:02:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-14T18:31:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"130\" \/>\n\t<meta property=\"og:image:height\" content=\"59\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\"},\"author\":{\"name\":\"JH\",\"@id\":\"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2\"},\"headline\":\"I2C-Digital-Input-Modul mit Python und TkInter\",\"datePublished\":\"2016-04-26T16:02:43+00:00\",\"dateModified\":\"2023-01-14T18:31:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\"},\"wordCount\":126,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\",\"keywords\":[\"24V Signale lesen\",\"digital input\",\"Eingabe\",\"Eingang\",\"Schalter\",\"Taster\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\",\"url\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\",\"name\":\"I2C-Digital-Input-Modul mit Python und TkInter - Horter &amp; Kalb Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.horter.de\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\",\"datePublished\":\"2016-04-26T16:02:43+00:00\",\"dateModified\":\"2023-01-14T18:31:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage\",\"url\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\",\"contentUrl\":\"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg\",\"width\":130,\"height\":59,\"caption\":\"I2C-Input Modul einlesen und im Label anzeigen\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Start\",\"item\":\"https:\/\/www.horter.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I2C-Digital-Input-Modul mit Python und TkInter\"}]},{\"@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-Digital-Input-Modul mit Python und TkInter - 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-digital-input-modul-mit-python-und-tkinter-am-raspberry\/","og_locale":"de_DE","og_type":"article","og_title":"I2C-Digital-Input-Modul mit Python und TkInter - Horter &amp; Kalb Blog","og_description":"Eing\u00e4nge vom I2HE-Modul\u00a0einlesen Das Programmbeispiel liest alle 20ms das Byte von der Eingangskarte ein, und schreibt den Wert in ein Label. &nbsp; Module importieren und Globale Variable definieren im Hauptprogramm werden einige\u00a0 Module\u00a0importiert. Au\u00dferdem braucht jede Eingabekarte eine globale Variable\u00a0die... mehr lesen","og_url":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/","og_site_name":"Horter &amp; Kalb Blog","article_published_time":"2016-04-26T16:02:43+00:00","article_modified_time":"2023-01-14T18:31:50+00:00","og_image":[{"width":130,"height":59,"url":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg","type":"image\/jpeg"}],"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-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#article","isPartOf":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/"},"author":{"name":"JH","@id":"https:\/\/www.horter.de\/blog\/#\/schema\/person\/a8a4c3c5d3167dce7c7d31df6088b5d2"},"headline":"I2C-Digital-Input-Modul mit Python und TkInter","datePublished":"2016-04-26T16:02:43+00:00","dateModified":"2023-01-14T18:31:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/"},"wordCount":126,"commentCount":2,"publisher":{"@id":"https:\/\/www.horter.de\/blog\/#organization"},"image":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage"},"thumbnailUrl":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg","keywords":["24V Signale lesen","digital input","Eingabe","Eingang","Schalter","Taster"],"articleSection":["Python"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/","url":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/","name":"I2C-Digital-Input-Modul mit Python und TkInter - Horter &amp; Kalb Blog","isPartOf":{"@id":"https:\/\/www.horter.de\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage"},"image":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage"},"thumbnailUrl":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg","datePublished":"2016-04-26T16:02:43+00:00","dateModified":"2023-01-14T18:31:50+00:00","breadcrumb":{"@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#primaryimage","url":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg","contentUrl":"https:\/\/www.horter.de\/blog\/wp-content\/uploads\/2016\/04\/PythonTkInter_DigIn.jpg","width":130,"height":59,"caption":"I2C-Input Modul einlesen und im Label anzeigen"},{"@type":"BreadcrumbList","@id":"https:\/\/www.horter.de\/blog\/i2c-digital-input-modul-mit-python-und-tkinter-am-raspberry\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Start","item":"https:\/\/www.horter.de\/blog\/"},{"@type":"ListItem","position":2,"name":"I2C-Digital-Input-Modul mit Python und TkInter"}]},{"@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\/1220","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=1220"}],"version-history":[{"count":13,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":28286,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions\/28286"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/media\/1230"}],"wp:attachment":[{"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.horter.de\/blog\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}