Skip to content

Commit

Permalink
some adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel36 committed Nov 25, 2019
1 parent 23829bd commit 55f1a7b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ The device can signal its current status through a flashing blue LED when it is

<img src="documentation/Photos/placa.jpg">

<img src="documentation/Photos/placa_sensores.jpg">

## Acknowledgements

I would like to thank all the professors I've had since elementary school, this project is the result of a combination of everything you taught me.
Expand Down
Binary file added documentation/Photos/placa_sensores.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion inc/Peripheral Drivers/sx1276.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#define PA_OUTPUT_RFO_PIN 0
#define PA_OUTPUT_PA_BOOST_PIN 1

int begin(long frequency);
int SX1216_Inicialize(long frequency);
uint8_t readRegister(uint8_t address);
void sleep();
void setFrequency(long frequency);
Expand Down
7 changes: 2 additions & 5 deletions src/MCU Drivers/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ void SYSTEM_Initialize(){
TMR2_Initialize();
INTERRUPT_GlobalInterruptEnable();
INTERRUPT_PeripheralInterruptEnable();
setSystemStatus(WARNING);
statusLed_Inicialize();
ADC_Initialize();
I2C_Initialize();
Expand All @@ -33,11 +34,7 @@ void SYSTEM_Initialize(){
max44009Setup();
SHT30Setup();
ds18b20Setup();
while(!begin(915000000)){
__delay_ms(500);
setSystemStatus(WARNING);
}
setSystemStatus(NORMAL);
SX1216_Inicialize(915000000);
}

void SLEEP_Inicialize(){
Expand Down
2 changes: 1 addition & 1 deletion src/Peripheral Drivers/sx1276.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "sx1276.h"
#include "spi.h"

int begin(long frequency){
int SX1216_Inicialize(long frequency){
RST_PIN = 0;
RST = 0;
__delay_ms(10);
Expand Down

0 comments on commit 55f1a7b

Please sign in to comment.