Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_CORE/PokittoSound.h
- Revision:
- 66:6281a40d73e6
- Parent:
- 46:e7e438368e16
--- a/POKITTO_CORE/PokittoSound.h Sat Mar 23 19:22:35 2019 +0000
+++ b/POKITTO_CORE/PokittoSound.h Sat Mar 23 20:03:34 2019 +0000
@@ -104,6 +104,13 @@
static uint16_t volumeMax;
public:
+ static const uint8_t *sfxDataPtr;
+ static const uint8_t *sfxEndPtr;
+ static void playSFX( const uint8_t *sfx, uint32_t length ){
+ sfxDataPtr = sfx;
+ sfxEndPtr = sfx + length;
+ };
+
static void begin();
// Headphonemode
@@ -113,6 +120,9 @@
static void volumeUp();
static void volumeDown();
+ // Synth using samples support
+ static void loadSampleToOsc(uint8_t os, uint8_t* sampdata, uint32_t sampsize);
+
// Original functions
static void updateStream();
static void playTone(uint8_t os, int frq, uint8_t amp, uint8_t wav,uint8_t arpmode);