reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Services/Actuators/ActuatorsController.cpp

Committer:
wyunreal
Date:
2014-03-02
Revision:
10:372c882b5533

File content as of revision 10:372c882b5533:

#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);
}