API追加ver
Fork of NeoStrip by
Diff: NeoStrip.cpp
- Revision:
- 2:649f6dee76a6
- Parent:
- 1:f531a2be180d
--- a/NeoStrip.cpp Wed May 21 02:28:43 2014 +0000 +++ b/NeoStrip.cpp Tue Mar 01 06:17:48 2016 +0000 @@ -91,3 +91,7 @@ } +void NeoStrip::setPixels(int p, int n, uint8_t *p_buff) { + memcpy((uint8_t *)((uint8_t *)strip + (p * 3)), p_buff, n * 3); +} +