sd detect pin feature (#222)

* test sd detect pin
* sd detect support for f2 board
This commit is contained in:
DrZlo13
2020-11-11 09:17:53 +03:00
committed by GitHub
parent 748f7e4fc3
commit 49fdb28871
10 changed files with 46 additions and 5 deletions

View File

@@ -51,6 +51,13 @@ void fatfs_list(void* p) {
furi_log = get_default_log();
fuprintf(furi_log, "[fatfs_list] app start\n");
fuprintf(furi_log, "[fatfs_list] wait for sd insert\n");
while(!hal_gpio_read_sd_detect()) {
delay(100);
}
fuprintf(furi_log, "[fatfs_list] sd inserted\n");
FuriRecordSubscriber* fb_record =
furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);