Dependencies:   mbed

Revision:
1:d708bb0cdffc
Parent:
0:ee517f090192
--- a/main.cpp	Mon Jul 14 11:24:54 2014 +0000
+++ b/main.cpp	Tue Jul 15 09:17:35 2014 +0000
@@ -17,7 +17,7 @@
 //set all values as FF for checking on spectrum analyzer
 #include "beacon.h"
 Serial pc(USBTX, USBRX);           // tx, rx
-SPI spi(p5, p6, p7);               // mosi, miso, sclk
+SPI spi(p11, p12, p13);               // mosi, miso, sclk
 DigitalOut cs_bar(p8);                 //slave select or chip select
 //InterruptIn button(p9);
 //#define TIMES 16      
@@ -45,7 +45,7 @@
     cs_bar = 1;
     return val;
 }
-        
+//main(){      
 void beacon_func() {
     
     //button.rise(&interrupt_func);         //interrupt enabled ( rising edge of pin 9)
@@ -172,7 +172,7 @@
     }
     //wait for packet sent bit to fire
     while((readreg(0x28) & 0x08) != 0x08);
-    //pc.printf("packet sent!!! \n");    
+    pc.printf("packet sent!!! \n");    
     
     //Switch back to Standby Mode
     writereg(0x01,0x04);