diff projects/basic_analog_output/render.cpp @ 7:ab396a08e962

Merge
author Victor Zappi <victor.zappi@qmul.ac.uk>
date Tue, 11 Nov 2014 15:31:01 +0000
parents 09f03ac40fcc
children a6beeba3a648
line wrap: on
line diff
--- a/projects/basic_analog_output/render.cpp	Tue Nov 11 15:25:37 2014 +0000
+++ b/projects/basic_analog_output/render.cpp	Tue Nov 11 15:31:01 2014 +0000
@@ -62,7 +62,7 @@
 			if(out > MATRIX_MAX)
 				out = MATRIX_MAX;
 
-			matrixOut[n * 8 + channel] = (uint16_t)out;
+			analogWrite(channel, n, out);
 
 			// Advance by pi/4 (1/8 of a full rotation) for each channel
 			relativePhase += M_PI * 0.25;