{"id":3029,"date":"2020-02-28T01:43:44","date_gmt":"2020-02-27T16:43:44","guid":{"rendered":"https:\/\/programresource.net\/?p=3029"},"modified":"2020-02-29T09:21:00","modified_gmt":"2020-02-29T00:21:00","slug":"show-only-board-settings-you-want-in-arduino-ide-menu","status":"publish","type":"post","link":"https:\/\/programresource.net\/en\/2020\/02\/28\/3029.html","title":{"rendered":"Show only board \/ settings you want in Arduino IDE menu"},"content":{"rendered":"\n<p>Arduino IDE supports huge amount of devices for developing. However, when you install ESP32 and ESP8266 board package, menu list will be horrible.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist-445x1024.jpg\" alt=\"\" class=\"wp-image-3016\" width=\"177\" height=\"407\" srcset=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist-445x1024.jpg 445w, https:\/\/programresource.net\/images\/2020\/02\/boardlist-130x300.jpg 130w, https:\/\/programresource.net\/images\/2020\/02\/boardlist-667x1536.jpg 667w, https:\/\/programresource.net\/images\/2020\/02\/boardlist.jpg 690w\" sizes=\"(max-width: 177px) 100vw, 177px\" \/><\/a><\/figure>\n\n\n\n<p>It is annoying when you reselect ESP8266 board and see all Upload Speed, memory size, etc falls back to default.<\/p>\n\n\n\n<p>Board information are stored in boards.txt file. You can edit this file to hide items you don&#8217;t want to see.<\/p>\n\n\n\n<p>Default boards.txt for Arduino is stored under <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\n<\/pre><\/div>\n\n\n<p>ESP type files are<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nC:\\Users\\username\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.2\nC:\\Users\\username\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\1.0.4\nC:\\Users\\username\\Documents\\Arduino\\hardware\\espressif\\esp32\n<\/pre><\/div>\n\n\n<p>or something similar. File is in text format, and you see line like below.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\n##############################################################\nesp8285.name=Generic ESP8285 Module\nesp8285.build.board=ESP8266_ESP01\nesp8285.upload.tool=esptool\nesp8285.upload.maximum_data_size=81920\n\n<\/pre><\/div>\n\n\n<p>To hide specific board, comment out all line with #, or add line with board id + &#8220;.hide = true&#8221; option.<\/p>\n\n\n\n<p>For example, esp8285 will be<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\nesp8285.hide=true\n<\/pre><\/div>\n\n\n<p>However, it takes time to edit and it gets reset when you update board package.<\/p>\n\n\n\n<p>So, I&#8217;ve made simple tool to set which item to show (for Windows). <strong>Please use at your own risk.<\/strong><\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardinfoselector.zip\">boardinfoselector.zip<\/a><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardinfoselector.zip\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<p>Run software, drag and drop boards.txt file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist2.jpg\"><img decoding=\"async\" src=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist2.jpg\" alt=\"\" class=\"wp-image-3020\" srcset=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist2.jpg 857w, https:\/\/programresource.net\/images\/2020\/02\/boardlist2-300x224.jpg 300w, https:\/\/programresource.net\/images\/2020\/02\/boardlist2-768x573.jpg 768w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/a><\/figure>\n\n\n\n<p>Board and related items will be loaded. Check \/ Uncheck items you want in menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist3.jpg\"><img decoding=\"async\" src=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist3.jpg\" alt=\"\" class=\"wp-image-3022\" srcset=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist3.jpg 511w, https:\/\/programresource.net\/images\/2020\/02\/boardlist3-300x290.jpg 300w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/a><\/figure>\n\n\n\n<p>You can&#8217;t directly edit boards.txt for arduino in programfiles; copy to desktop, edit, and put back.<\/p>\n\n\n\n<p>Restart Arduino IDE and you&#8217;ll get nice and clean board lists.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist6.jpg\"><img decoding=\"async\" src=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist6.jpg\" alt=\"\" class=\"wp-image-3024\" srcset=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist6.jpg 744w, https:\/\/programresource.net\/images\/2020\/02\/boardlist6-277x300.jpg 277w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/figure>\n\n\n\n<p>It seems like default items is selected from first one in menu, so if you want to change default item in menu to be selected, edit boards.txt and change order.<\/p>\n\n\n\n<p>If you bring 921600 baud rate for Upload Speed in ESP8266 upper than other item, 921600 will be selected as default when you select ESP8266 board.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist7.jpg\"><img decoding=\"async\" src=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist7.jpg\" alt=\"\" class=\"wp-image-3026\" srcset=\"https:\/\/programresource.net\/images\/2020\/02\/boardlist7.jpg 511w, https:\/\/programresource.net\/images\/2020\/02\/boardlist7-300x94.jpg 300w\" sizes=\"(max-width: 511px) 100vw, 511px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino IDE supports huge amount of devices for developing. However, when you install ESP32 and ESP8266 board package, menu list will be horrible. It is annoying when you reselect ESP8266 board and see all Upload Speed, memory size, etc falls back to default. Board information are stored in boards.txt file. You can edit this file to hide items you don&#8217;t want to see. Default boards.txt for Arduino is stored under ESP type files are or something similar. File is in text format, and you see line like below. To hide specific board, comment out all line with #, or add line with board id + &#8220;.hide = true&#8221; option. For &#8230;<\/p>\n","protected":false},"author":2,"featured_media":3023,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[866,868],"tags":[601,924,740,686,926],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/programresource.net\/images\/2020\/02\/boardlist3.jpg","jetpack_shortlink":"https:\/\/wp.me\/p3pJyQ-MR","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/3029"}],"collection":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/comments?post=3029"}],"version-history":[{"count":2,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/3029\/revisions"}],"predecessor-version":[{"id":3032,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/posts\/3029\/revisions\/3032"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media\/3023"}],"wp:attachment":[{"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/media?parent=3029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/categories?post=3029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programresource.net\/en\/wp-json\/wp\/v2\/tags?post=3029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}