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.
Diff: ws2812B.hpp
- Revision:
- 4:874beb47b375
- Parent:
- 3:e09aafc9cabe
diff -r e09aafc9cabe -r 874beb47b375 ws2812B.hpp
--- a/ws2812B.hpp Mon Sep 26 02:05:50 2016 +0000
+++ b/ws2812B.hpp Mon Nov 21 09:28:49 2016 +0000
@@ -2,7 +2,7 @@
// SPI を使って WS2812B を点灯するためのクラス(ヘッダ)
// サポートするボード: Nucleo-F401RE, Nucleo-F446RE
//
-// 2016/09/26, Copyright (c) 2016 MIKAMI, Naoki
+// 2016/11/21, Copyright (c) 2016 MIKAMI, Naoki
//--------------------------------------------------------
#include "mbed.h"
@@ -16,7 +16,7 @@
namespace Mikami
{
- class WS2812B : public SPI
+ class WS2812B
{
public:
// コンストラクタ
@@ -32,6 +32,7 @@
void Clear(int k); // k 個の LED を消灯
private:
+ SPI spi_;
SPI_TypeDef *mySpi_;
void (WS2812B::*fp)(uint8_t);