Recep_spi_lib

Dependencies:   mbed RFM69

Files at this revision

API Documentation at this revision

Comitter:
SamirIss
Date:
Mon Nov 04 08:27:01 2019 +0000
Commit message:
Recept spi with lib

Changed in this revision

RFM69.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r a8a44ece474d RFM69.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RFM69.lib	Mon Nov 04 08:27:01 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/geekylou/code/RFM69/#cedfa200eaeb
diff -r 000000000000 -r a8a44ece474d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 04 08:27:01 2019 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "RFM69.h"
+DigitalOut myled(LED1);
+RFM69 ant(A6,A5,A4,D7,D8);    //PinName mosi, PinName miso, PinName sclk, PinName slaveSelectPin, PinName interrupt
+Serial pc(D1,D0);
+int main() {
+    while(1) 
+    {
+        ant.setFrequency(43);
+        ant.readAllRegs();
+        uint8_t test = ant.readReg(0x00);
+        pc.printf("com : 0x%02x\n", test);
+        wait(0.4);
+    }
+}
diff -r 000000000000 -r a8a44ece474d mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 04 08:27:01 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file