diff --git a/Makefile b/Makefile index ed47c54..41683d8 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ all: run prepare: src/main.o src/pin_handler.o -parser: src/parser.o - @$(CC) $(CFLAGS) -o $@ $^ +parser: src/parser.o student.ino + @$(CC) $(CFLAGS) -o $@ src/parser.o @./parser ./student.ino -run: parser $(OBJ_RUN) +run: parser $(OBJ_RUN) student.ino @$(CC) -o main $(OBJ_RUN) @./main diff --git a/src/student.c b/src/student.c index 270f6f4..12aca27 100644 --- a/src/student.c +++ b/src/student.c @@ -16,22 +16,16 @@ void student(char *sequence, size_t *pointer) { size_t row = 0; size_t col = 0; - //set_pin(13, 1, &row, &col, sequence, pointer); // sets the digital pin 13 on - // //set_pin(13, 0, &row, &col, sequence, pointer); // sets the digital pin 13 off - // //for (size_t i = 0; i < 5; i++) - //{ - // set_pin(13, 1, &row, &col, sequence, pointer); - //} + // 1 + set_pin(C1, 1, &row, &col, sequence, pointer); + set_pin(L1, 1, &row, &col, sequence, pointer); + - // 1 - set_pin(C1, 1, &row, &col, sequence, pointer); - set_pin(L1, 1, &row, &col, sequence, pointer); - set_pin(C1, 0, &row, &col, sequence, pointer); - set_pin(L1, 0, &row, &col, sequence, pointer); - - // # - set_pin(C3, 1, &row, &col, sequence, pointer); - set_pin(L4, 1, &row, &col, sequence, pointer); - + set_pin(C1, 0, &row, &col, sequence, pointer); + set_pin(L1, 0, &row, &col, sequence, pointer); + + // # + set_pin(C3, 1, &row, &col, sequence, pointer); + set_pin(L4, 1, &row, &col, sequence, pointer); }