{"id":5690,"date":"2020-05-31T11:46:48","date_gmt":"2020-05-31T11:46:48","guid":{"rendered":"https:\/\/www.fambach.net\/?p=5690"},"modified":"2026-10-04T20:42:00","modified_gmt":"2026-10-04T20:42:00","slug":"mysd-anpassung-der-arduino-bibliothek","status":"publish","type":"post","link":"https:\/\/www.fambach.net\/en\/mysd-anpassung-der-arduino-bibliothek\/","title":{"rendered":"MySD adjustment of the Arduino library"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Contents\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.fambach.net\/en\/mysd-anpassung-der-arduino-bibliothek\/#Bibliothek\" >Library<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.fambach.net\/en\/mysd-anpassung-der-arduino-bibliothek\/#Quellen\" >Sources<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">F\u00fcr einige ESP-Projekte, die mit SD-Karten arbeiten, gibt es eine Anpassung der Standard-Arduino-SD-Bibliothek. Die Klasse nennt sich meist MySD und erm\u00f6glicht es, andere Pins f\u00fcr die SPI-Schnittstelle anzugeben. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Leider habe ich im Netz nur Kopien dieser Anpassungen gefunden, weshalb ich kurzerhand die Standardbibliothek geforkt und die \u00c4nderungen aus den Kopien eingebaut habe.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"bibliothek\"><span class=\"ez-toc-section\" id=\"Bibliothek\"><\/span>Library<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"ub-content-link ub-content-link--ok ub-content-link--status-after\"><a href=\"https:\/\/github.com\/sfambach\/MySD\" class=\"ub-content-link__anchor\">https:\/\/github.com\/sfambach\/MySD<\/a><span class=\"ub-status ub-status--ok\" title=\"Link status: OK\"><span class=\"ub-status__icon\" aria-hidden=\"true\">\u25cf<\/span><span class=\"screen-reader-text\">Link status: OK<\/span><\/span><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"quellen\"><span class=\"ez-toc-section\" id=\"Quellen\"><\/span>Sources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"ub-content-link ub-content-link--ok ub-content-link--status-after\"><a href=\"https:\/\/github.com\/arduino-libraries\/SD\" class=\"ub-content-link__anchor\">https:\/\/github.com\/arduino-libraries\/SD<\/a><span class=\"ub-status ub-status--ok\" title=\"Link status: OK\"><span class=\"ub-status__icon\" aria-hidden=\"true\">\u25cf<\/span><span class=\"screen-reader-text\">Link status: OK<\/span><\/span><\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"ub-content-link ub-content-link--ok ub-content-link--status-after\"><a href=\"https:\/\/github.com\/cmmakerclub\/ttgo-ts-v1.2-board\/blob\/master\/include\/mySD.h\" class=\"ub-content-link__anchor\">https:\/\/github.com\/cmmakerclub\/ttgo-ts-v1.2-board\/blob\/master\/include\/mySD.h<\/a><span class=\"ub-status ub-status--ok\" title=\"Link status: OK\"><span class=\"ub-status__icon\" aria-hidden=\"true\">\u25cf<\/span><span class=\"screen-reader-text\">Link status: OK<\/span><\/span><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>For some ESP projects that work with SD cards, there is an adaptation of the standard Arduino SD library. The classes are usually called MySD and allow other pins to be specified for the SPI interface. <\/p>\n<a href=\"https:\/\/www.fambach.net\/en\/mysd-anpassung-der-arduino-bibliothek\/\" class=\"read-more-link\">Carry on reading <span class=\"screen-reader-text\">\"MySD Anpassung der Arduino Bibliothek\"<\/span> <span class=\"meta-nav\">\u2192<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[304,335,188,168],"tags":[318,316,141,317],"class_list":["post-5690","post","type-post","status-publish","format-standard","hentry","category-eigenentwicklungen","category-esp-bibliotheken","category-esp-32","category-sonstige","tag-filesystem","tag-mysd","tag-sd","tag-sd-card-reader","penguin-post","penguin-post-not-sticky"],"modified_by":"sfambach","_links":{"self":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/comments?post=5690"}],"version-history":[{"count":3,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5690\/revisions"}],"predecessor-version":[{"id":18044,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5690\/revisions\/18044"}],"wp:attachment":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media?parent=5690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/categories?post=5690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/tags?post=5690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}