{"id":1295,"date":"2023-05-31T16:01:04","date_gmt":"2023-05-31T15:01:04","guid":{"rendered":"https:\/\/ibex.tech\/embedded\/?p=1295"},"modified":"2024-07-18T15:39:28","modified_gmt":"2024-07-18T14:39:28","slug":"i2c-using-mcc","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/pic12\/xc8-compiler-pic12\/i2c-xc8-compiler-pic12\/i2c-using-mcc","title":{"rendered":"I2C (using MCC)"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Example usage<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \"mcc_generated_files\/examples\/i2c_master_example.h\"\n\n\/\/WRITE BYTES\n\tuint8_t Data&#91;2] = {1,2}\n\tI2C_WriteNBytes(MCP3425_I2C_DEVICE_ADDRESS, &amp;Data&#91;0], 2);\n\n\/\/READ BYTES\n\tuint8_t Data&#91;3];\n\tI2C_ReadNBytes(MCP3425_I2C_DEVICE_ADDRESS, &amp;Data&#91;0], 3);\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Example usage<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104,129],"tags":[],"class_list":["post-1295","post","type-post","status-publish","format-standard","hentry","category-i2c-xc8-compiler-pic12","category-pic12-peripherals"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"predecessor-version":[{"id":1557,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/1295\/revisions\/1557"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}