rx

Dependencies:   mbed RFM69

Files at this revision

API Documentation at this revision

Comitter:
marcbassecourt
Date:
Mon Nov 04 10:27:39 2019 +0000
Parent:
0:a8a44ece474d
Commit message:
Code RX spi lib

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 04 08:27:01 2019 +0000
+++ b/main.cpp	Mon Nov 04 10:27:39 2019 +0000
@@ -6,7 +6,8 @@
 int main() {
     while(1) 
     {
-        ant.setFrequency(43);
+        ant.initialize(43,1);
+        ant.setHighPower(true);
         ant.readAllRegs();
         uint8_t test = ant.readReg(0x00);
         pc.printf("com : 0x%02x\n", test);