reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Revision:
10:372c882b5533
diff -r 8f1dce5f85fe -r 372c882b5533 Services/Actuators/ActuatorsController.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Services/Actuators/ActuatorsController.cpp	Sun Mar 02 18:15:47 2014 +0000
@@ -0,0 +1,10 @@
+#include "ActuatorsController.h"
+
+ActuatorsController::ActuatorsController(SPI* spiHandler){
+    char ioPortAddress = 0x40;
+    ioPort = new MCP23S17(spiHandler, p20, ioPortAddress);
+    
+    // all 16 bits as output
+    ioPort->direction(PORT_A, 0x00);
+    ioPort->direction(PORT_B, 0x00);
+}