work in progress

Dependencies:   FastAnalogIn FastIO USBDevice mbed FastPWM SimpleDMA

Fork of Pinscape_Controller by Mike R

Revision:
14:df700b22ca08
Parent:
2:c174f9ee414a
Child:
17:ab3cec0c8bf4
--- a/TSL1410R/tsl1410r.h	Sat Sep 13 23:47:32 2014 +0000
+++ b/TSL1410R/tsl1410r.h	Fri Sep 26 20:51:02 2014 +0000
@@ -34,7 +34,11 @@
     // If the caller has other work to tend to that takes longer than the
     // desired maximum integration time, it can call clear() to clock out
     // the current pixels and start a fresh integration cycle.
-    void read(uint16_t *pix, int n);
+    void read(uint16_t *pix, int n) { read(pix, n, 0, 0, 0); }
+    
+    // Read with interval callback.  We'll call the callback the given
+    // number of times per read cycle.
+    void read(uint16_t *pix, int n, void (*cb)(void *ctx), void *cbctx, int cbcnt);
 
     // Clock through all pixels to clear the array.  Pulses SI at the
     // beginning of the operation, which starts a new integration cycle.