Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
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);
}
            
    