Samir Issaad
/
Recep_spi_lib
Recep_spi_lib
Revision 0:a8a44ece474d, committed 2019-11-04
- Comitter:
- SamirIss
- Date:
- Mon Nov 04 08:27:01 2019 +0000
- Commit message:
- Recept spi with lib
Changed in this revision
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