Example controlling galvanomirrors (X and Y) using the spi DAC MCP4922 and the new platform FRDM_K64F

Dependencies:   mbed

Revision:
4:1428775752f7
Parent:
3:89f592efbe84
diff -r 89f592efbe84 -r 1428775752f7 laserProjectorHardware/laserProjectorHardware.h
--- a/laserProjectorHardware/laserProjectorHardware.h	Wed Jun 04 09:47:04 2014 +0000
+++ b/laserProjectorHardware/laserProjectorHardware.h	Wed Dec 10 07:22:41 2014 +0000
@@ -5,7 +5,7 @@
 #include "mbed.h"
 
 
-//SPI library (for ADC MCP4922 chip) uses the following pins, but we don't have to set them and inputs or outputs 
+//SPI library (for DAC MCP4922 chip) uses the following pins, but we don't have to set them and inputs or outputs 
 // (this is done when the library is initialized, which is done by pre-instantiation:
 #define SCK_PIN   D13 //SPI Clock
 #define MISO_PIN  D12 //SPI input (data comming from DAC, here not connected) 
@@ -66,8 +66,9 @@
     void setRGBPower(unsigned char color); // we will use the 3 LSB bits to set each color
     
     // More complex functions: 
-    void showLimitsMirrors( int times );
+    void showLimitsMirrors( int seconds );
     void drawCircle(int X, int Y, int R, int numPoints);
+    void drawCircle(int X, int Y, int R, int numPoints, int seconds);
     
 private: