поправил некоторые мелочи, адаптировал для работы с усилителем

This commit is contained in:
VladislavOstapov 2024-10-07 23:55:47 +03:00
parent f4d0a0ba0c
commit 5ad38bc3cb
3 changed files with 6 additions and 7 deletions

View File

@ -330,7 +330,7 @@ void Adafruit_Si4713::powerUp() {
// configuration! see page 254
setProperty(SI4713_PROP_REFCLK_FREQ, 32768); // crystal is 32.768
setProperty(SI4713_PROP_TX_PREEMPHASIS, 0); // 74uS pre-emph (USA std)
setProperty(SI4713_PROP_TX_ACOMP_GAIN, 10); // max gain?
setProperty(SI4713_PROP_TX_ACOMP_GAIN, 15); // max gain?
// setProperty(SI4713_PROP_TX_ACOMP_ENABLE, 0x02); // turn on limiter, but no
// dynamic ranging
setProperty(SI4713_PROP_TX_ACOMP_ENABLE, 0x0); // turn on limiter and AGC

View File

@ -57,10 +57,10 @@ void do_i2c_scan() {
*/
Serial.print("\nSet TX power");
radio->setTXpower(115, 55); // dBuV, 88-115 max, cap надо задать 0 и посмотреть сколько будет
radio->setTXpower(114, 0); // dBuV, 88-115 max, cap надо задать 0 и посмотреть сколько будет
Serial.print("\nTuning into freq");
radio->tuneFM(10740); // 100.0 mhz
radio->tuneFM(9600); // 96.00 mhz
// This will tell you the status in case you want to read it from the chip
radio->readTuneStatus();
@ -70,7 +70,6 @@ void do_i2c_scan() {
// begin the RDS/RDBS transmission
radio->beginRDS();
radio->setRDSstation((char*)"FUCK YOU!1!");
radio->setRDSbuffer( (char*)"Fisting is 300 bucks");
Serial.println("RDS on!");

View File

@ -118,7 +118,7 @@ static void getHTML(HTTPRequest * req, HTTPResponse * res) {
"</head>\n"
"<body>\n"
"<div class=\"main\">\n"
" <header><h1>Lamps4 by Vlados31 & ESP32</h1></header>\n"
" <header><h1>Esp32 FM pirate</h1></header>\n"
" <div class=\"content\">\n"
" <div id=\"form-content\">\n"
"\n"
@ -240,7 +240,7 @@ static void getFavicon(HTTPRequest * req, HTTPResponse * res) {
res->write(favicon_data, sizeof(favicon_data));
}
uint32_t output_frq = 8750;
uint32_t output_frq = 9600;
std::string output_rds = "FUCK YOU!1!";
bool output_enable = false;