Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

SimpleSDAudio

2 Byte hinzugefügt, 20:44, 11. Apr. 2013
/* init() */
==== init() ====
<pre>boolean init(uint8_t soundMode);</pre>
Call this to initialze initialize the library and set sound mode. Thisfunction will also aquire acquire the needed buffer (if not
already set manually using setWorkBuffer), initialize SD card
and sets up all used pins.
* SSDA_MODE_AUTOWORKER - Add this flag and you don't need to call worker for playback
The function return true if successfullsuccessful, false if an erroroccuredoccurred. You can use getLastError() to retrieve the error code.
Typical reasons for errors are wrong SD card connection or
too low RAM (1k heap required) for internal buffer available.
1.954
Bearbeitungen