#include "cpidjinn.hpp"
void blink(PinNumber pin, int count, int duration, Logger* logger){
+ printf("blink pin: %d count: %d duration: %d\n", pin, count, duration);
GPIOProcessor proc(logger);
for (int ix = 0; ix < count; ix++){
proc.writeToGPIO(pin, psHigh);
* @param state <i>psLow</i> or <i>psHigh</i>
*/
void GPIOTimer::switchState(PinState state){
- m_logger->sayf(LOG_DEBUG, "%d: %c", m_pin, psHigh ? 'H' : 'L');
+ m_logger->sayf(LOG_DEBUG, "pin %d: %c", m_pin, psHigh ? 'H' : 'L');
m_processor->writeToGPIO(m_pin, state);
}
/**