reef monitor
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
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 }
Generated on Thu Jul 28 2022 23:53:25 by 1.7.2