Skip to content

Commit

Permalink
Update relay stick
Browse files Browse the repository at this point in the history
  • Loading branch information
wero1414 committed Feb 25, 2020
1 parent 7dce550 commit a66637d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Fw/LoRa_PHY/Relay_stick/Relay_stick.ino
Expand Up @@ -16,23 +16,13 @@ void transmit(int a,int b, int c){
//SerialUSB.println("Dato enviado");
}

/*
void transmit(){
LoRa.beginPacket();
LoRa.write(digitalRead(0));
LoRa.write(digitalRead(1));
LoRa.write(digitalRead(2));
LoRa.endPacket();
SerialUSB.println("Dato enviado");
}
*/

void setup() {
Serial.begin(115200);
while(!Serial);


LoRa.setPins(10, 9, 2);
//LoRa.setPins(17, 16, 4); //SAMD21
LoRa.setPins(SS, RFM_RST, RFM_DIO0);
if (!LoRa.begin(915E6)) {
Serial.println("Fallo en Radio");
while (1);
Expand Down

0 comments on commit a66637d

Please sign in to comment.