si4703

Dependencies:   Si4703 mbed millis

Revision:
0:11630d0d8271
Child:
1:ebbd4cc237bc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 24 14:46:49 2015 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+#include "SparkFun-Si4703.h"
+#include "SSD1306.h"
+
+
+Serial pc(USBTX, USBRX); // tx, rx
+Si4703_Breakout radio(I2C_SDA, I2C_SCL, PTA1, &pc);
+
+int current_frequency;
+char txt[] =  "TEST";
+char fm[5];
+char rds[10];
+
+int main() {
+    init();
+    cls();
+   
+    locate(0, 0);
+    OLED_ShowStr(0, 0, txt, 1);
+    OLED_ShowStr(0, 1, "Ahoj", 1);
+    
+    radio.powerOn();
+
+    
+    
+    
+    while(1){
+    current_frequency = radio.seekUp();
+    sprintf(fm, "%d", current_frequency);
+    OLED_ShowStr(0, 2, fm, 1);
+    wait_ms(500);
+    }
+}