reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Services/Actuators/ActuatorsController.cpp

Committer:
wyunreal
Date:
2015-01-03
Revision:
12:72e0c404017a
Parent:
10:372c882b5533

File content as of revision 12:72e0c404017a:

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