reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Committer:
wyunreal
Date:
Sat Jan 03 17:50:52 2015 +0000
Revision:
12:72e0c404017a
Parent:
10:372c882b5533
draft of file request handler;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wyunreal 10:372c882b5533 1 #include "ActuatorsController.h"
wyunreal 10:372c882b5533 2
wyunreal 10:372c882b5533 3 ActuatorsController::ActuatorsController(SPI* spiHandler){
wyunreal 10:372c882b5533 4 char ioPortAddress = 0x40;
wyunreal 10:372c882b5533 5 ioPort = new MCP23S17(spiHandler, p20, ioPortAddress);
wyunreal 10:372c882b5533 6
wyunreal 10:372c882b5533 7 // all 16 bits as output
wyunreal 10:372c882b5533 8 ioPort->direction(PORT_A, 0x00);
wyunreal 10:372c882b5533 9 ioPort->direction(PORT_B, 0x00);
wyunreal 10:372c882b5533 10 }