TEA5767 FM Radio Library for Arduino
Author:  Simon Monk
Contact: evilgeniusauthor@gmail.com

Navigation


Current version

1.0 2013-07-12: Initial Release


History

1.0 2013-07-12: Initial Release


Description

This very simple library allows you to set the frequency of a TEA5767 FM Radio module. These modules use I2C and are available on eBay for just a few dollars each.

This library also served the purpose of acting as an example of how to write a library in my book: Programming Arduino Next Steps.


Download, install and import

Download here: Attach:TEA5767Radio.zip

Put the TEA5767Radio folder in "Documents/Arduino/libraries/".

The library includes an example.


Creation

TEA5767Radio()

or

TEA5767Radio(int I2cAddress)


Function

void setFrequency(float frequency) Sets the frequency in MHz.


Example

  1.  
  2. #include <Wire.h>
  3. #include <TEA5767Radio.h>
  4.  
  5. TEA5767Radio radio = TEA5767Radio();
  6.  
  7. void setup()
  8. {
  9.   Wire.begin();
  10.   radio.setFrequency(93.0); // pick your own frequency
  11. }
  12.  
  13. void loop()
  14. {
  15. }


Information about this page

Part of AlphaBeta Libraries.
Last Modified: July 12, 2013, at 05:48 AM
By: simon.monk

Share