reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ActuatorsController.cpp Source File

ActuatorsController.cpp

00001 #include "ActuatorsController.h"
00002 
00003 ActuatorsController::ActuatorsController(SPI* spiHandler){
00004     char ioPortAddress = 0x40;
00005     ioPort = new MCP23S17(spiHandler, p20, ioPortAddress);
00006     
00007     // all 16 bits as output
00008     ioPort->direction(PORT_A, 0x00);
00009     ioPort->direction(PORT_B, 0x00);
00010 }