#include <Wire.h>
const unsigned int AM[]=
{
0x02,0x0007, // 100kh, RLmute dis
0x03,0x0000, // FMtune0, 00Mhz
0x04,0xe080, // SoftMute dis, Mute dis
0x05,0x1800, // stereo, DE50
0x0f,0x881f, // standby0, vol 11111
0x16,0x8002, // AM, AMAFC en
//0x17,0x8252, // AMtune1, 594kh
//0x17,0x82b5, // AMtune1, 693kh
0x17,0x83ba, // AMtune1, 954kh
//0x17,0x846e, // AMtune1, 1134kh
//0x17,0x9cf2, // SW tune1, 7410kh
0xff,0xffff,
};
void setup() {
// put your setup code here, to run once:
Wire.begin();
int i=0;
while (AM[i] !=0xff) {
Wire.beginTransmission(0x35); // slave address 0x35
Wire.write(AM[i]); // Register i
Wire.write(highByte(AM[i+1])); // Register i H
Wire.write(lowByte(AM[i+1])); // Register i L
Wire.endTransmission(); //
i+=2;
delay(100);
}
}
void loop() {
// put your main code here, to run repeatedly:
}