{"action":"created","issue":{"url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19","repository_url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series","labels_url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19/comments","events_url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19/events","html_url":"https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19","id":292983402,"number":19,"title":"MicroSD Example Code that works with WiFi LoRa","user":{"login":"bahamutzero","id":52906,"avatar_url":"https://avatars3.githubusercontent.com/u/52906?v=4","gravatar_id":"","url":"https://api.github.com/users/bahamutzero","html_url":"https://github.com/bahamutzero","followers_url":"https://api.github.com/users/bahamutzero/followers","following_url":"https://api.github.com/users/bahamutzero/following{/other_user}","gists_url":"https://api.github.com/users/bahamutzero/gists{/gist_id}","starred_url":"https://api.github.com/users/bahamutzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahamutzero/subscriptions","organizations_url":"https://api.github.com/users/bahamutzero/orgs","repos_url":"https://api.github.com/users/bahamutzero/repos","events_url":"https://api.github.com/users/bahamutzero/events{/privacy}","received_events_url":"https://api.github.com/users/bahamutzero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-31T00:00:17Z","updated_at":"2018-02-13T04:32:55Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI have been scratching my head trying to get the Heltec LoRa WiFi ESP32 board to talk to a MicroSD card properly using the Arduino IDE. I am using a breakout board I have used with a 32u4 & 328p and verified those can write to the SD card. I've also tried a few other breakout boards and cards to rule those out as well as a few different heltec lora esp32 boards (I own about a half dozen of them now). I have tried both your example code (which appears to use the same chip select pin as the onboard LoRa SPI), have tried passing a different CS in SD.begin, have tried using the \"mySD\" library for the ESP32 where you can specify all lines (MOSI, MISO, SCK and CS) in SD.begin.... all to no avail. When I've tried scoping the MOSI, MISO, SCK & CS line it seems like the ESP32 is attempting to communicate with the MicroSD MUCH faster than it does with the onboard LoRa chip. Do you have a working example for using MicroSD with this LoRa board? I noticed that you use a few unconventional pins compared to the standard ESP32 pinout on the LoRa board. I am curious if that might be causing any potential issues. For instance to get another hardware UART working I had to modify...\r\n\r\nDocuments\\Arduino\\hardware\\espressif\\esp32\\cores\\esp32\\HardwareSerial.cpp\r\n\r\n    if(_uart_nr == 1 && rxPin < 0 && txPin < 0) {\r\n        rxPin = 13;\r\n        txPin = 21;\r\n    }\r\n\r\n...in order to get a functional second hardware serial line I needed. I really want to use this board as the centerpiece of a project I am working on but this is unfortunately quite the hangup at the moment."},"comment":{"url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/comments/365148103","html_url":"https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19#issuecomment-365148103","issue_url":"https://api.github.com/repos/Heltec-Aaron-Lee/WiFi_Kit_series/issues/19","id":365148103,"user":{"login":"Ldsrc2008","id":2297151,"avatar_url":"https://avatars2.githubusercontent.com/u/2297151?v=4","gravatar_id":"","url":"https://api.github.com/users/Ldsrc2008","html_url":"https://github.com/Ldsrc2008","followers_url":"https://api.github.com/users/Ldsrc2008/followers","following_url":"https://api.github.com/users/Ldsrc2008/following{/other_user}","gists_url":"https://api.github.com/users/Ldsrc2008/gists{/gist_id}","starred_url":"https://api.github.com/users/Ldsrc2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ldsrc2008/subscriptions","organizations_url":"https://api.github.com/users/Ldsrc2008/orgs","repos_url":"https://api.github.com/users/Ldsrc2008/repos","events_url":"https://api.github.com/users/Ldsrc2008/events{/privacy}","received_events_url":"https://api.github.com/users/Ldsrc2008/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T04:32:55Z","updated_at":"2018-02-13T04:32:55Z","author_association":"NONE","body":"I have a heltec lira oled board,I tried to add a micro sd card with the spi interface,and 21 as ss for sd, not yet liading lira code,tried to pull up the cc is lira,but the sd init always fail, any suggestion to make sd card work together with lira on spi of heltec board?"}}
{"actor":{"display_login":"Ldsrc2008"}}