From 5ad38bc3cb89f498b2b8cf5904598eda6059bc1a Mon Sep 17 00:00:00 2001 From: VladislavOstapov Date: Mon, 7 Oct 2024 23:55:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5?= =?UTF-8?q?=20=D0=BC=D0=B5=D0=BB=D0=BE=D1=87=D0=B8,=20=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D0=BF=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81=20=D1=83?= =?UTF-8?q?=D1=81=D0=B8=D0=BB=D0=B8=D1=82=D0=B5=D0=BB=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Adafruit_Si4713.cpp | 2 +- src/main.cpp | 7 +++---- src/web/web.cpp | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Adafruit_Si4713.cpp b/src/Adafruit_Si4713.cpp index 6933cbb..7ecd7a9 100644 --- a/src/Adafruit_Si4713.cpp +++ b/src/Adafruit_Si4713.cpp @@ -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 diff --git a/src/main.cpp b/src/main.cpp index d87f90c..a0a06d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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!"); @@ -84,4 +83,4 @@ void setup() { application(); // fuck(); } -void loop() { /* делаем ровно них*я */ } \ No newline at end of file +void loop() { /* делаем ровно них*я */ } diff --git a/src/web/web.cpp b/src/web/web.cpp index 460a1a3..a781b22 100644 --- a/src/web/web.cpp +++ b/src/web/web.cpp @@ -118,7 +118,7 @@ static void getHTML(HTTPRequest * req, HTTPResponse * res) { "\n" "\n" "
\n" - "

Lamps4 by Vlados31 & ESP32

\n" + "

Esp32 FM pirate

\n" "
\n" "
\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;