API追加ver

Fork of NeoStrip by Allen Wild

Files at this revision

API Documentation at this revision

Comitter:
poipoi
Date:
Tue Mar 01 06:17:48 2016 +0000
Parent:
1:f531a2be180d
Commit message:
Test

Changed in this revision

NeoStrip.cpp Show annotated file Show diff for this revision Revisions of this file
NeoStrip.h Show annotated file Show diff for this revision Revisions of this file
diff -r f531a2be180d -r 649f6dee76a6 NeoStrip.cpp
--- 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);
+}
+
diff -r f531a2be180d -r 649f6dee76a6 NeoStrip.h
--- a/NeoStrip.h	Wed May 21 02:28:43 2014 +0000
+++ b/NeoStrip.h	Tue Mar 01 06:17:48 2016 +0000
@@ -93,6 +93,8 @@
 		 * at the end.
 		 */
 		void write();
+		
+		void setPixels(int p, int n, uint8_t *p_buff);
 
 	protected:
 		NeoColor *strip;	// pixel data buffer modified by setPixel() and used by neo_out()