Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Si4703 mbed millis
main.cpp
- Committer:
- vodavprasku
- Date:
- 2015-12-24
- Revision:
- 0:11630d0d8271
- Child:
- 1:ebbd4cc237bc
File content as of revision 0:11630d0d8271:
#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); } }