Skip to content

Commit

Permalink
move SerialCommand to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
adumont committed Feb 26, 2021
1 parent f87b316 commit c548e88
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions programmer/programmer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ int data_pin_mode = 1234; // dummy value

#define WRITE_EN 14

#include "SerialCommand.h"
#include "src/SerialCommand.h"

SerialCommand sCmd; // The demo SerialCommand object
SerialCommand sCmd;

void pulse(int pin) {
digitalWrite(pin, LOW);
Expand Down Expand Up @@ -250,20 +250,3 @@ void read_cmd() {
void unrecognized_cmd(const char *command) {
Serial.println("What?");
}

// https://code.google.com/archive/p/arduino-xmodem/wikis/Usage.wiki

int recvChar(int msDelay) {
int cnt = 0;
while(cnt < msDelay) {
if(Serial.available() > 0)
return Serial.read();
delay(1);
cnt++;
}
return -1;
}

void sendChar(char sym) {
Serial.write(sym);
}
File renamed without changes.
File renamed without changes.

0 comments on commit c548e88

Please sign in to comment.