mirror of
https://github.com/m5stack/M5Stack_MicroPython.git
synced 2026-05-20 10:14:44 -07:00
update i2s module
This commit is contained in:
@@ -49,6 +49,7 @@ extern const mp_obj_type_t machine_neopixel_type;
|
||||
extern const mp_obj_type_t machine_dht_type;
|
||||
extern const mp_obj_type_t machine_onewire_type;
|
||||
extern const mp_obj_type_t machine_ds18x20_type;
|
||||
extern const mp_obj_type_t machine_i2s_type;
|
||||
|
||||
extern nvs_handle mpy_nvs_handle;
|
||||
|
||||
|
||||
@@ -635,7 +635,8 @@ STATIC void checkBoot_py()
|
||||
fd = fopen(VFS_NATIVE_MOUNT_POINT"/boot.py", "wb");
|
||||
if (fd != NULL) {
|
||||
char buf[128] = {'\0'};
|
||||
sprintf(buf, "# This file is executed on every boot (including wake-boot from deepsleep)\nimport sys\nsys.path[1] = '/flash/lib'\n");
|
||||
// sprintf(buf, "# This file is executed on every boot (including wake-boot from deepsleep)\nimport sys\nsys.path[1] = '/flash/lib'\n");
|
||||
sprintf(buf, "import inisetup\n");
|
||||
int len = strlen(buf);
|
||||
int res = fwrite(buf, 1, len, fd);
|
||||
if (res != len) {
|
||||
|
||||
Reference in New Issue
Block a user