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 wsDrive by
Diff: wsDrive.h
- Revision:
- 0:b3665f91bedc
- Child:
- 1:741864ea11d4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wsDrive.h Wed Nov 05 16:47:48 2014 +0000
@@ -0,0 +1,31 @@
+#ifndef __wsDrive_h__
+#define __wsDrive_h__
+
+#include "BurstSPI.h"
+
+
+typedef struct pixelInfo {
+ unsigned char G;
+ unsigned char R;
+ unsigned char B;
+} pixelInfo;
+
+
+class wsDrive : private BurstSPI
+{
+public:
+ wsDrive(PinName mosi, PinName miso, PinName clk);
+ void setData(pixelInfo *dataStart, uint16_t dataLen);
+ void sendData();
+
+private:
+
+ void sendByte(unsigned char value);
+ void sendPixel(pixelInfo *pixToSend);
+
+ pixelInfo *pixArray;
+ uint16_t pixelLen;
+
+};
+
+#endif
\ No newline at end of file
