Jonne Valola / PokittoLib Featured

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
Revision:
66:6281a40d73e6
Parent:
46:e7e438368e16
diff -r deed4aa606fb -r 6281a40d73e6 POKITTO_CORE/PokittoSound.h
--- 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);