Exemplo n.º 1
0
void loop(void)
{
	heartbeat();

	if (Serial.available())
		avrisp();
}
Exemplo n.º 2
0
AVRISPState_t ESP8266AVRISP::serve() {
    switch (update()) {
        case AVRISP_STATE_IDLE:
            // should not be called when idle, error?
            break;
        case AVRISP_STATE_PENDING: {
            _state = AVRISP_STATE_ACTIVE;
        // fallthrough
        }
        case AVRISP_STATE_ACTIVE: {
            while (_client.available()) {
                avrisp();
            }
            return update();
        }
    }
    return _state;
}
Exemplo n.º 3
0
void loop(void) {
    if (Serial.available()) {
        avrisp();
    }
}