{"id":55,"date":"2013-10-24T16:02:58","date_gmt":"2013-10-24T16:02:58","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=55"},"modified":"2015-07-17T15:19:12","modified_gmt":"2015-07-17T15:19:12","slug":"constants","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/memory\/constants","title":{"rendered":"Constants"},"content":{"rendered":"<h4>\nCreating A &nbsp;Constant<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nconst int ledPin = 13;\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nStoring constants in Program Memory instead of RAM<br \/>\n<\/h4>\n<p>\nYou need to use the PROGMEM modifier &#8211; <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/PROGMEM\">see here<\/a>.\n<\/p>\n<p>\nReading the values also requies&nbsp;special handling by using pgm_read_byte_near() or&nbsp; pgm_read_word_near()\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating A &nbsp;Constant const int ledPin = 13; &nbsp; Storing constants in Program Memory instead of RAM You need to use the PROGMEM modifier &#8211; see here. Reading the values also requies&nbsp;special handling by using pgm_read_byte_near() or&nbsp; pgm_read_word_near() &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":4,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/55\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}