File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed
Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ The device can signal its current status through a flashing blue LED when it is
104104
105105<img src =" documentation/Photos/placa.jpg " >
106106
107+ <img src =" documentation/Photos/placa_sensores.jpg " >
108+
107109## Acknowledgements
108110
109111I 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.
Original file line number Diff line number Diff line change 6161#define PA_OUTPUT_RFO_PIN 0
6262#define PA_OUTPUT_PA_BOOST_PIN 1
6363
64- int begin (long frequency );
64+ int SX1216_Inicialize (long frequency );
6565uint8_t readRegister (uint8_t address );
6666void sleep ();
6767void setFrequency (long frequency );
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ void SYSTEM_Initialize(){
2323 TMR2_Initialize ();
2424 INTERRUPT_GlobalInterruptEnable ();
2525 INTERRUPT_PeripheralInterruptEnable ();
26+ setSystemStatus (WARNING );
2627 statusLed_Inicialize ();
2728 ADC_Initialize ();
2829 I2C_Initialize ();
@@ -33,11 +34,7 @@ void SYSTEM_Initialize(){
3334 max44009Setup ();
3435 SHT30Setup ();
3536 ds18b20Setup ();
36- while (!begin (915000000 )){
37- __delay_ms (500 );
38- setSystemStatus (WARNING );
39- }
40- setSystemStatus (NORMAL );
37+ SX1216_Inicialize (915000000 );
4138}
4239
4340void SLEEP_Inicialize (){
Original file line number Diff line number Diff line change 33#include "sx1276.h"
44#include "spi.h"
55
6- int begin (long frequency ){
6+ int SX1216_Inicialize (long frequency ){
77 RST_PIN = 0 ;
88 RST = 0 ;
99 __delay_ms (10 );
You can’t perform that action at this time.
0 commit comments