{"id":10,"date":"2013-07-16T15:45:18","date_gmt":"2013-07-16T14:45:18","guid":{"rendered":"http:\/\/www.sarbyn.com\/tech\/?p=10"},"modified":"2015-04-27T14:34:56","modified_gmt":"2015-04-27T13:34:56","slug":"liquidcrystal_i2c_for_ardupi","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2013\/07\/16\/liquidcrystal_i2c_for_ardupi\/","title":{"rendered":"LiquidCrystal_i2c for ArduPi"},"content":{"rendered":"<p>I bought on ebay a simple LCD screen with an i2c controller. My purpose is to add a simple output screen to my project TermoPi (a smart thermostat for my home). I found a ready-to-use CPP library called LiquidCrystal_I2C that helps the developer to connect the LCD screen to an Arduino board. I want to use my raspberry Pi with the <a href=\"http:\/\/www.coocking-hacks.com\">coocking-hacks.com<\/a> &#8220;Raspberry to arduino shields&#8221; , a connection board that export the arduino input-output pins, using the arduino conventions. A developer can use the Arduino coding style and libraries with his RaspberryPi, using <a href=\"http:\/\/www.cooking-hacks.com\/index.php\/documentation\/tutorials\/raspberry-pi-to-arduino-shields-connection-bridge\">ArduPi CPP library and coocking-hacks shield<\/a>. But the original LiquidCrystal_I2C library is not compatible with ArduPi compatibility library: this library is similiar to arduino SDK&#8230;but it&#8217;s not arduino SDK:<\/p>\n<ul>\n<li><span style=\"line-height: 14px;\">LiquidCrystal_I2C refers to Arduino &#8220;print.cpp&#8221; functions, not available on ArduPI<\/span><\/li>\n<li>ArduPi Wire CPP class implements a different Wire.endTrasmission() function, that close and release the I2C comunication pins (it seems a bug)<\/li>\n<\/ul>\n<p>After some little changes, LiquidCrystal_I2C is ready to use on RaspberryPi with ArduPI library. You can download the library sources from my <del>Bitbuchet<\/del>\u00a0GitHub repository:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/github.com\/sarbyn\/liquidcrystal_i2c-for-ardupi\">https:\/\/github.com\/sarbyn\/liquidcrystal_i2c-for-ardupi<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I bought on ebay a simple LCD screen with an i2c controller. My purpose is to add a simple output screen to my project TermoPi (a smart thermostat for my home). I found a ready-to-use CPP library called LiquidCrystal_I2C that helps the developer to connect the LCD screen to an Arduino board. I want to <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2013\/07\/16\/liquidcrystal_i2c_for_ardupi\/\">&hellip;&nbsp;<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":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[6],"tags":[34,36,35,37,32],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-libraries","tag-ardupi","tag-i2c","tag-lcd","tag-library","tag-raspberry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-a","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":9,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions\/231"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}