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.
Fork of SD600A by
Diff: SD600A.h
- Revision:
- 11:97ef14b4c4de
- Parent:
- 10:d2dd5c752f7b
- Child:
- 16:910bf46f2ce4
diff -r d2dd5c752f7b -r 97ef14b4c4de SD600A.h
--- a/SD600A.h Wed Oct 10 03:57:16 2012 +0000
+++ b/SD600A.h Wed Oct 10 05:41:32 2012 +0000
@@ -16,7 +16,8 @@
#ifndef MBED_SD600A_H
#define MBED_SD600A_H
-#define DELAY_PERIOD (1)
+//#define DELAY_PERIOD (1)
+#define IDLE_INTERVAL (10)
class SD600A : public LedStrip {
@@ -33,7 +34,6 @@
virtual void setPixelColor(uint16_t n, uint32_t c);
virtual uint16_t numPixels(void);
virtual uint32_t Color(uint8_t, uint8_t, uint8_t);
- Mutex threadlock;
DigitalOut dat;
DigitalOut clk;
@@ -41,7 +41,8 @@
void write(uint8_t byte);
uint8_t *pixels; // Holds LED color values
uint16_t numLEDs; // Number of RGB LEDs in strand
- Thread idlethread;
+ Ticker idletoggle;
+ void idle_function(void); // toggles the clock to keep PWM working.
void
writeguard(void);
