Diff: WS2812B.cpp
- Revision:
- 4:02e88df0ae2d
- Parent:
- 3:c0a82b9775e6
- Child:
- 5:62b6ac21c199
--- a/WS2812B.cpp Sun Jun 30 08:26:25 2019 +0000 +++ b/WS2812B.cpp Mon Jul 01 00:29:17 2019 +0000 @@ -12,7 +12,7 @@ : spi_(pin, NC, NC), mySpi_((SPI_TypeDef *)pinmap_peripheral(pin, PinMap_SPI_MOSI)) { - spi_.format(8, 0); + spi_.format(9, 0); // クロックを 23 MHz 以下で最大の値に設定 // F401RE: 21.0 MHz // F446RE: 22.5 MHz @@ -84,7 +84,7 @@ Reset(); } -void WS2812B::Send3Bytes(uint8_t x0, uint8_t x1, uint8_t x2) +void WS2812B::Send3Bytes(uint16_t x0, uint16_t x1, uint16_t x2) { SendByte(x0); SendByte(x1);