Skip to content

m5stack用のsdカードプログラムをまとめただけ

Notifications You must be signed in to change notification settings

Kyaramel/ikako_M5_SD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

サンプルコード

#include <Arduino.h>
#include <ikakoM5SD.h>
#include <M5Stack.h>

ikakoM5SD sd(&SD);

void setup()
{
    M5.begin(true, false);
    sd.setup();
    sd.create_dir("/hoge");
    sd.write_file("/hoge/hoge.txt", "hoge\n");
    sd.append_file("/hoge/hoge.txt", "hoge hoge hoge hoge\n");
    Serial.printf("type:%d  size:%d  ", sd.get_card_type(), sd.get_card_size());
    Serial.println("");
}

void loop()
{

}

About

m5stack用のsdカードプログラムをまとめただけ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages