Diff: WS2812B.h
- Revision:
- 4:02e88df0ae2d
- Parent:
- 3:c0a82b9775e6
- Child:
- 5:62b6ac21c199
--- a/WS2812B.h Sun Jun 30 08:26:25 2019 +0000 +++ b/WS2812B.h Mon Jul 01 00:29:17 2019 +0000 @@ -37,9 +37,9 @@ void (WS2812B::*fp)(uint8_t); void SendByte(uint8_t x) { (this->*fp)(x); } - void Send3Bytes(uint8_t x0, uint8_t x1, uint8_t x2); - void T0HL() { Send3Bytes(0xFF, 0x00, 0x00); } // 0 を送る - void T1HL() { Send3Bytes(0xFF, 0xFF, 0x00); } // 1 を送る + void Send3Bytes(uint16_t x0, uint16_t x1, uint16_t x2); + void T0HL() { Send3Bytes(0b111111110, 0b0, 0b0); } // 0 を送る + void T1HL() { Send3Bytes(0b111111111, 0b111111111, 0b0); } // 1 を送る void SendByteNorm(uint8_t x); // データをそのまま送る void SendByteInv(uint8_t x); // データを反転して送る