Skip to content

Commit

Permalink
Removed unused LED library (#21)
Browse files Browse the repository at this point in the history
* Replace travis ci with github action (#13)

* Replace travis ci with github action

* Fixed boards to board

* Fixed indentation error

* Update build.yml

* Retrive pressure sensor data from MPX5100

* Some code that gives back PSI

* Update build.yml

* Update README.md

* some test

* Should fix merge conflict

* Moved offset to adc driver

* Removed unused delay lib

* Removed LED lib

* Remove LED include from main
  • Loading branch information
k105la authored Jun 9, 2020
1 parent 1022a5f commit 5b4ac3b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
3 changes: 1 addition & 2 deletions board/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ SRC=main.c
ADC_LIB=adc/adc.c
USART_LIB=usart/usart.c
MPX_LIB=mpx5100/mpx5100.c
LED_LIB=led/led.c

all:
${CC} ${CFLAGS} ${SRC} ${ADC_LIB} ${USART_LIB} ${MPX_LIB} ${LED_LIB} -o firmware/${TARGET}.bin -std=c99
${CC} ${CFLAGS} ${SRC} ${ADC_LIB} ${USART_LIB} ${MPX_LIB} -o firmware/${TARGET}.bin -std=c99
${OBJCOPY} -j .text -j .data -O ihex firmware/${TARGET}.bin firmware/${TARGET}.hex

flash:
Expand Down
7 changes: 0 additions & 7 deletions board/driver/led.h

This file was deleted.

18 changes: 0 additions & 18 deletions board/led/led.c

This file was deleted.

2 changes: 0 additions & 2 deletions board/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "driver/usart.h"
#include "driver/led.h"
#include "driver/adc.h"

static FILE mystdout = FDEV_SETUP_STREAM(print, NULL, _FDEV_SETUP_RW);
Expand All @@ -13,6 +12,5 @@ int main(void) {
ADCSRA |= (1 << ADSC); // Start ADC conversion
// TODO: Must subtract ADCH from offset.
printf("PSI: %.2f\n", (ADCH / 255.0) * 14.5);
delay_ms(150);
}
}

0 comments on commit 5b4ac3b

Please sign in to comment.