Return to SDK Examples for Microchip Studio
#include "ClearCore.h"
#define CcioPort ConnectorCOM0
#define OutputPin CcioMgr.PinByIndex(CLEARCORE_PIN_CCIOA0)
int main() {
CcioPort.Mode(Connector::CCIO);
CcioPort.PortOpen();
OutputPin->Mode(Connector::OUTPUT_DIGITAL);
while (true) {
OutputPin->OutputPulsesStart(100, 100);
OutputPin->OutputPulsesStop(true);
OutputPin->OutputPulsesStart(250, 50, 20);
OutputPin->OutputPulsesStop(true);
OutputPin->OutputPulsesStart(300, 500, 5, true);
}
}