# Micropython Machine Module and SD cards

**URL:** <https://forum.core-electronics.com.au/t/micropython-machine-module-and-sd-cards/20060>\
**Category:** Support\
**Created:** [27 May 2024 03:01 UTC](https://forum.core-electronics.com.au/t/micropython-machine-module-and-sd-cards/20060 "2024-05-27T03:01:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Samuel](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/samuel/32/11763_2.png) [@Samuel](https://forum.core-electronics.com.au/u/Samuel)\
**Post date:** [27 May 2024 06:16 UTC](https://forum.core-electronics.com.au/t/micropython-machine-module-and-sd-cards/20060/2 "2024-05-27T06:16:38Z")

</div>

Hey Pixmusix,

From what I can tell from the code used in this link they are using a big if/else statement to determine what board is being used before they import the required library.

> [@Pixmusix](#):
>
> I’ve been following this [gitlab page](https://git.emacinc.com/micropython-public/micropython-i2s-examples/-/blob/emac-support/examples/easy_wav_player.py)

Looking at the documentation for SD card use in MicroPython I think this library call method is incorrect. I think it should be

`import os`  
`import machine`  
`import sdcard`

With ‘sdcard’ being called in lowercase and as a separate library.

The documentation at the below link made sense to me, hopefully you can make use of it:

> <https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/storage/sdcard/sdcard.py>

Hopefully this helps you out!  
Sam

---

_[View the full topic](https://forum.core-electronics.com.au/t/micropython-machine-module-and-sd-cards/20060)._
