MAX326xxFTHR LoRa PingPong

Dependencies:   BufferedSerial SX1276GenericLib max32630fthr USBDeviceHT

Files at this revision

API Documentation at this revision

Comitter:
walterluu
Date:
Wed Dec 29 06:56:13 2021 +0000
Parent:
20:c57404b94a1d
Commit message:
MAX326xxFTHR LoRa PingPong

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
max32630fthr.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jun 04 21:05:02 2018 +0000
+++ b/main.cpp	Wed Dec 29 06:56:13 2021 +0000
@@ -12,13 +12,29 @@
 
 DigitalOut myled(LED);
 
+//    I2C i2c(P3_4, P3_5); // SDA, SCL
+
+// Hardware serial port over DAPLink
+    Serial daplink(P2_1, P2_0);
+
+// Virtual serial port over USB
+//    USBSerial microUSB;
+DigitalOut bLED(LED3);
+DigitalOut rLED(LED1);
+
 
 int main() {
-#ifdef HELTEC_STM32L4
-    DigitalOut vext(POWER_VEXT);
-    vext = POWER_VEXT_ON;
-#endif    
-
+//#ifdef HELTEC_STM32L4
+//    DigitalOut vext(POWER_VEXT);
+//    vext = POWER_VEXT_ON;
+//#endif    
+    
+    //bLED = !bLED;
+//    wait(5);
+//    printf("Hello world! \n");
+//    wait(5);
+//    daplink.printf("Hello world! \n");
+//    bLED = !bLED;
 
     /*
      * inits the Serial or USBSerial when available (230400 baud).
@@ -26,9 +42,17 @@
      * blinking LED means USBSerial detected, waiting for a connect.
      * It waits up to 30 seconds for a USB terminal connections 
      */
-    InitSerial(30*1000, &myled);
-    dprintf("Welcome to the SX1276GenericLib");
-  
-    dprintf("Starting a simple LoRa PingPong");
-    SX1276PingPong();
+//    InitSerial(30*1000, &myled);
+    
+    
+//    rLED = !rLED;
+    
+//    dprintf("Welcome to the SX1276GenericLib");
+    printf("Welcome to the SX1276GenericLib");
+    wait(3);
+//    dprintf("Starting a simple LoRa PingPong");
+    printf("Starting a simple LoRa PingPong");
+    wait(3);
+    bLED = 1;
+//    SX1276PingPong();
 }
--- a/max32630fthr.lib	Mon Jun 04 21:05:02 2018 +0000
+++ b/max32630fthr.lib	Wed Dec 29 06:56:13 2021 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/dev_alexander/code/max32630fthr/#32c43af04e8e
+https://os.mbed.com/teams/MaximIntegrated/code/max32630fthr/#02d6b69121e5
--- a/mbed-os.lib	Mon Jun 04 21:05:02 2018 +0000
+++ b/mbed-os.lib	Wed Dec 29 06:56:13 2021 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#c26126ee5951b70703989c844c4d0bc8f498049b
+https://github.com/ARMmbed/mbed-os/#3ab72c71b75cb9cb91160a54fba22ec43b036ed2