<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[forum.rcl-radio.ru &mdash; Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
		<link>http://forum.rcl-radio.ru/viewtopic.php?id=96</link>
		<atom:link href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=96&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)».]]></description>
		<lastBuildDate>Fri, 04 Feb 2022 04:30:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=5376#p5376</link>
			<description><![CDATA[<p>#define VOL_PLUSE 0x807F0AF5 // укажите свой код кнопки<br />#define VOL_MINUS 0x807F8A75<br />#define TREB_PLUSE 0x0000<br />#define TREB_MINUS 0x0000<br />#define BASS_PLUSE 0x0000<br />#define BASS_MINUS 0x0000<br />#define MENU 0x0000<br />#define MUTE 0x0000<br />#define IN_PLUSE 0x0000<br />#define IN_MINUS 0x0000</p><br /><br /><p>#include &lt;Wire.h&gt;<br />#include &lt;SPI.h&gt;<br />#include &lt;EEPROM.h&gt;<br />#include &lt;PT2314.h&gt;<br />#include &lt;Adafruit_GFX.h&gt;<br />#include &lt;ILI9488.h&gt;<br />#include &quot;SPI.h&quot;<br />#include &quot;Adafruit_GFX.h&quot;<br />//#include &lt;Adafruit_ILI9341.h&gt;<br />#include &lt;Encoder.h&gt;<br />#include &lt;boarddefs.h&gt;<br />#include &lt;IRremote.h&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // <a href="http://rcl-radio.ru/wp-content/uploads/2019/06/IRremote.zip">http://rcl-radio.ru/wp-content/uploads/ … remote.zip</a><br />#include &lt;Fonts/FreeMonoBoldOblique9pt7b.h&gt;<br />PT2314 pt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Выход ИМС SDA и SCL подключаются к аналоговым входам платы Arduino А4 и А5<br />IRrecv irrecv(6); // указываем вывод модуля IR приемника<br />decode_results ir;<br />#define TFT_DC 9<br />#define TFT_CS 10<br />//Encoder myEnc(6, 7);// DT, CLK<br />ILI9488 tft = ILI9488(TFT_CS, TFT_DC);// Подключения дисплея RESET-8 DC-9 CS-10 CDI(MOSI)-11 SDO(MISO)-12 SCLK-13<br />//ILI9341 tft = ILI9341(TFT_CS, TFT_DC);// Подключения дисплея RESET-8 DC-9 CS-10 CDI(MOSI)-11 SDO(MISO)-12 SCLK-13<br />//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);<br />int menu, pluse, minus, mute = 1;<br />int i, i2, vol = 50, set, treb, bass, in, gain, gain1, gain2, gain3, gain4, lf, rf, att_loun;<br />byte eeprom;<br />int&nbsp; w = 1, w1 = 1, w2 = 1, w3 = 1, w4 = 1, w5 = 1, w6 = 1;//w-vol w1-tre w2-bas w3-in w4-lf w5-rf w6-loun<br />unsigned long time, times, t;<br />byte gr1, gr2;</p><p>void setup() {<br />&nbsp; Serial.begin(9600);<br />&nbsp; irrecv.enableIRIn();<br />&nbsp; pinMode(8, OUTPUT);<br />&nbsp; digitalWrite(8, HIGH);<br />&nbsp; tft.begin(); Serial.begin(9600);<br />&nbsp; tft.setRotation(1); tft.setTextSize(1); tft.fillScreen(0x39E9); tft.setTextColor(ILI9488_WHITE); tft.setFont(&amp;FreeMonoBoldOblique9pt7b);<br /> //tft.setRotation(1); tft.setTextSize(1); tft.fillScreen(0x39E9); tft.setTextColor(ILI9341_WHITE); tft.setFont(&amp;FreeMonoBoldOblique9pt7b);<br />&nbsp; pinMode(2, INPUT); /// set<br />&nbsp; pinMode(3, INPUT); /// menu<br />&nbsp; pinMode(4, INPUT); /// +<br />&nbsp; pinMode(5, INPUT); /// -<br />&nbsp; // pinMode(A0, INPUT); // МЕНЮ КНОПКА SW энкодера<br />&nbsp; vol = EEPROM.read(0); treb = EEPROM.read(1) - 15; bass = EEPROM.read(2) - 15; in = EEPROM.read(3);<br />&nbsp; gain1 = EEPROM.read(4); gain2 = EEPROM.read(5); gain3 = EEPROM.read(6); gain4 = EEPROM.read(7); gain = EEPROM.read(8);<br />&nbsp; lf = EEPROM.read(9); rf = EEPROM.read(10);<br />&nbsp; att_loun = EEPROM.read(11);<br />&nbsp; audio();<br />}</p><p>void loop() {<br />&nbsp; /// IR<br />&nbsp; if ( irrecv.decode( &amp;ir )) {<br />&nbsp; &nbsp; Serial.print(&quot;0x&quot;);&nbsp; // IR приемник - чтение, в мониторе порта отображаются коды кнопок<br />&nbsp; &nbsp; Serial.println( ir.value, HEX);<br />&nbsp; &nbsp; irrecv.resume();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; }<br />&nbsp; if (ir.value == 0) {<br />&nbsp; &nbsp; gr1 = 0;&nbsp; // запрет нажатий не активных кнопок пульта<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; }</p><p>&nbsp; times = millis();<br />&nbsp; tft.setTextColor(ILI9488_WHITE);<br />//tft.setTextColor(ILI9341_WHITE);<br />&nbsp; pluse = digitalRead(4); minus = digitalRead(5);<br />&nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; tft.setCursor(170, 15); tft.print(&quot;Audio Sistem&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // название системы<br />&nbsp; ////////////////////////////////////////////////////////////////////////////////////////////<br />&nbsp; if (menu == 0) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.setCursor(5, 42); tft.print(&quot;VOLUME&quot;);<br />&nbsp; if (menu == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.setCursor(5, 67); tft.print(&quot;TREBLE&quot;);</p><p>&nbsp; if (menu == 2) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.setCursor(5, 92); tft.print(&quot;BASS&quot;);</p><p>&nbsp; // разделительные линии<br />&nbsp; tft.drawFastHLine(5, 105, 470, 0xcdcd); tft.drawFastHLine(5, 163, 470, 0xcdcd); tft.drawFastHLine(5, 192, 470, 0xcdcd); //tft.drawFastHLine(5, 140, 470, 0xcdcd);</p><br /><br /><br /><p>&nbsp; if (digitalRead(3) == HIGH||ir.value == MENU) {<br />&nbsp; &nbsp; menu++;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; eeprom = 1;<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; if (menu &gt; 2) {<br />&nbsp; &nbsp; &nbsp; menu = 0;<br />&nbsp; &nbsp; &nbsp; set = 0;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (digitalRead(2) == HIGH) {<br />&nbsp; &nbsp; set++;<br />&nbsp; &nbsp; eeprom = 1;<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; menu = 100;<br />&nbsp; &nbsp; if (set &gt; 5) {<br />&nbsp; &nbsp; &nbsp; set = 0;<br />&nbsp; &nbsp; &nbsp; menu = 0;<br />&nbsp; &nbsp; }<br />&nbsp; }</p><p>&nbsp; if ((pluse == HIGH &amp;&amp; minus == HIGH)||ir.value == MUTE) {<br />&nbsp; &nbsp; mute++;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; w = 1;<br />&nbsp; &nbsp; if (mute &gt; 1) {<br />&nbsp; &nbsp; &nbsp; mute = 0;<br />&nbsp; &nbsp; }<br />&nbsp; }</p><p>&nbsp; if (ir.value == VOL_PLUSE) {<br />&nbsp; &nbsp; vol++;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 1;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w = 1;<br />&nbsp; &nbsp; if (vol &gt; 55) {<br />&nbsp; &nbsp; &nbsp; vol = 55;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr1 == 1) {<br />&nbsp; &nbsp; vol++;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w = 1;<br />&nbsp; &nbsp; if (vol &gt; 55) {<br />&nbsp; &nbsp; &nbsp; vol = 55;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == VOL_MINUS) {<br />&nbsp; &nbsp; vol--;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; gr2 = 1;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w = 1;<br />&nbsp; &nbsp; if (vol &lt; 0) {<br />&nbsp; &nbsp; &nbsp; vol = 0;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr2 == 1) {<br />&nbsp; &nbsp; vol--;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w = 1;<br />&nbsp; &nbsp; if (vol &lt; 0) {<br />&nbsp; &nbsp; &nbsp; vol = 0;<br />&nbsp; &nbsp; }<br />&nbsp; }</p><br /><br /><br /><p>&nbsp; if (pluse == HIGH &amp;&amp; menu == 0) {<br />&nbsp; &nbsp; vol++;<br />&nbsp; &nbsp; eeprom = 1;<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; if (vol &gt; 55) {<br />&nbsp; &nbsp; &nbsp; vol = 55;<br />&nbsp; &nbsp; } w = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; menu == 0) {</p><p>&nbsp; &nbsp; vol--;<br />&nbsp; &nbsp; eeprom = 1;<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; if (vol &lt; 0) {<br />&nbsp; &nbsp; &nbsp; vol = 0;<br />&nbsp; &nbsp; } w = 1;<br />&nbsp; }</p><p>&nbsp; if (ir.value == TREB_PLUSE) {<br />&nbsp; &nbsp; treb++;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 1;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w1 = 1;<br />&nbsp; &nbsp; if (treb &gt; 7) {<br />&nbsp; &nbsp; &nbsp; treb = 7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr1 == 1) {<br />&nbsp; &nbsp; treb++;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w1 = 1;<br />&nbsp; &nbsp; if (treb &gt; 7) {<br />&nbsp; &nbsp; &nbsp; treb = 7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == TREB_MINUS) {<br />&nbsp; &nbsp; treb--;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; gr2 = 1;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w1 = 1;<br />&nbsp; &nbsp; if (treb &lt; -7) {<br />&nbsp; &nbsp; &nbsp; treb = -7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr2 == 1) {<br />&nbsp; &nbsp; treb--;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w1 = 1;<br />&nbsp; &nbsp; if (treb &lt; -7) {<br />&nbsp; &nbsp; &nbsp; treb = -7;<br />&nbsp; &nbsp; }<br />&nbsp; }</p><br /><p>&nbsp; if (pluse == HIGH &amp;&amp; menu == 1) {<br />&nbsp; &nbsp; treb++;<br />&nbsp; &nbsp; if (treb &gt; 7) {<br />&nbsp; &nbsp; &nbsp; treb = 7;<br />&nbsp; &nbsp; } w1 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; menu == 1) {<br />&nbsp; &nbsp; treb--;<br />&nbsp; &nbsp; if (treb &lt; -7) {<br />&nbsp; &nbsp; &nbsp; treb = -7;<br />&nbsp; &nbsp; } w1 = 1;<br />&nbsp; }</p><br /><p>&nbsp; if (ir.value == BASS_PLUSE) {<br />&nbsp; &nbsp; bass++;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 1;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w2 = 1;<br />&nbsp; &nbsp; if (bass &gt; 7) {<br />&nbsp; &nbsp; &nbsp; bass = 7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr1 == 1) {<br />&nbsp; &nbsp; bass++;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w2 = 1;<br />&nbsp; &nbsp; if (bass &gt; 7) {<br />&nbsp; &nbsp; &nbsp; bass = 7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == BASS_MINUS) {<br />&nbsp; &nbsp; bass--;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; gr2 = 1;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w2 = 1;<br />&nbsp; &nbsp; if (bass &lt; -7) {<br />&nbsp; &nbsp; &nbsp; bass = -7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == 0xFFFFFFFF and gr2 == 1) {<br />&nbsp; &nbsp; bass--;&nbsp; // кнопка &gt;&gt;&gt;&gt;&gt;&gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w2 = 1;<br />&nbsp; &nbsp; if (bass &lt; -7) {<br />&nbsp; &nbsp; &nbsp; bass = -7;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; <br />&nbsp; if (pluse == HIGH &amp;&amp; menu == 2) {<br />&nbsp; &nbsp; bass++;<br />&nbsp; &nbsp; if (bass &gt; 7) {<br />&nbsp; &nbsp; &nbsp; bass = 7;<br />&nbsp; &nbsp; } w2 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; menu == 2) {<br />&nbsp; &nbsp; bass--;<br />&nbsp; &nbsp; if (bass &lt; -7) {<br />&nbsp; &nbsp; &nbsp; bass = -7;<br />&nbsp; &nbsp; } w2 = 1;<br />&nbsp; }</p><p>&nbsp; if (w == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 58; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; if (i2 &lt; vol) {} else {<br />&nbsp; &nbsp; &nbsp; &nbsp; i2 = vol;<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 31, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 31, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 31, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 33, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 33, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 33, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 35, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 35, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 35, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 37, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 37, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 37, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 39, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 39, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 39, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 41, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 41, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 41, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; if (mute == 1) {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 43, 10, 0x000F);<br />&nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 5.5 + 78, 43, 10, 0x0f800);<br />&nbsp; &nbsp; &nbsp; } tft.drawFastHLine(i * 5.5 + 80, 43, 10, 0xcdcd);<br />&nbsp; &nbsp; } w = 0; tft.setTextColor(0x07FF); tft.fillRect(413, 30, 42, 15, 0x39E9); tft.setCursor(413, 42); tft.print(-55 + vol); tft.setCursor(442, 42); tft.print(&quot; dB&quot;);</p><p>&nbsp; &nbsp; if ( menu == 0 &amp;&amp; w == 0 ) {<br />&nbsp; &nbsp; &nbsp; tft.setTextSize(2); tft.fillRect(250, 245, 180, 30, 0x39E9); tft.setCursor(250, 270); tft.setTextColor(0x1D74); tft.print(&quot;Vol:&quot;); tft.setCursor(360, 270); tft.print(-55 + vol); tft.setCursor(410, 270); tft.print(&quot; dB&quot;);<br />&nbsp; &nbsp; }<br />&nbsp; }</p><p>&nbsp; if (w1 == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 80; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; i2 = treb * 5 + 40;<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 56, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 56, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 56, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 58, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 58, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 58, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 60, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 60, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 60, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 62, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 62, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 62, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 64, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 64, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 64, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 66, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 66, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 66, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 68, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 68, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 68, 10, 0xcdcd);<br />&nbsp; &nbsp; } w1 = 0; tft.setTextSize(1); tft.setTextColor(0x07FF); tft.fillRect(413, 55, 40, 15, 0x39E9); tft.setCursor(413, 67); tft.print(treb); tft.setCursor(442, 67); tft.print(&quot; dB&quot;); w1 = 0;</p><p>&nbsp; &nbsp; if ( menu == 1 &amp;&amp; w1 == 0 ) {<br />&nbsp; &nbsp; &nbsp; tft.setTextSize(2); tft.fillRect(250, 245, 180, 30, 0x39E9); tft.setTextColor(0x1D74); tft.setCursor(250, 270); tft.print(&quot;Tre:&quot;);tft.setCursor(360, 270); tft.print(treb);<br />&nbsp; &nbsp; }<br />&nbsp; }</p><p>&nbsp; if (w2 == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 80; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; i2 = bass * 5 + 40;<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 81, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 81, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 81, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 83, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 83, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 83, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 85, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 85, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 85, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 87, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 87, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 87, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 89, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 89, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 89, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 91, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 91, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 91, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i * 4 + 80, 93, 10, 0xcdcd); tft.drawFastHLine(i2 * 4 + 80, 93, 10, 0x000F); tft.drawFastHLine(i * 4 + 80, 93, 10, 0xcdcd);<br />&nbsp; &nbsp; } w2 = 0; tft.setTextSize(1); tft.setTextColor(0x07FF); tft.fillRect(413, 80, 40, 15, 0x39E9); tft.setCursor(413, 92); tft.print(bass); tft.setCursor(442, 92); tft.print(&quot; dB&quot;); w2 = 0;</p><p>&nbsp; &nbsp; if ( menu == 2 &amp;&amp; w2 == 0 ) {<br />&nbsp; &nbsp; &nbsp; tft.setTextSize(2); tft.fillRect(250, 245, 180, 30, 0x39E9); tft.setCursor(250, 270);tft.setTextColor(0x1D74); tft.print(&quot;Bas:&quot;); tft.setCursor(360, 270); tft.print(bass);<br />&nbsp; &nbsp; }</p><br /><br /><p>&nbsp; }<br />&nbsp; ///////////////////////////////////////////////////////////input + gain//////////////////////////////////////////////////////////////////////////////////////////<br />&nbsp; tft.setTextSize(1);</p><p>&nbsp; &nbsp;if (ir.value == IN_PLUSE) {<br />&nbsp; &nbsp; in++;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 1;<br />&nbsp; &nbsp; gr2 = 0;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; &nbsp; if (in &gt; 4) {<br />&nbsp; &nbsp; &nbsp; in = 4;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; if (ir.value == IN_MINUS) {<br />&nbsp; &nbsp; in--;&nbsp; // кнопка &gt;<br />&nbsp; &nbsp; gr1 = 0;<br />&nbsp; &nbsp; gr2 = 1;<br />&nbsp; &nbsp; cl1();<br />&nbsp; &nbsp; time = millis();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; &nbsp; if (in &lt; 1) {<br />&nbsp; &nbsp; &nbsp; in = 1;<br />&nbsp; &nbsp; }<br />&nbsp; }<br />&nbsp; <br />&nbsp; if (pluse == HIGH &amp;&amp; set == 1) {<br />&nbsp; &nbsp; in++;<br />&nbsp; &nbsp; if (in &gt; 4) {<br />&nbsp; &nbsp; &nbsp; in = 4;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; set == 1) {<br />&nbsp; &nbsp; in--;<br />&nbsp; &nbsp; if (in &lt; 1) {<br />&nbsp; &nbsp; &nbsp; in = 1;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; }<br />&nbsp; tft.setCursor(5, 127); if (set == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;INPUT: &quot;);<br />&nbsp; tft.setCursor(110, 127); if (in == 1 &amp;&amp; set == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else if (in == 1 &amp;&amp; set != 1) {<br />&nbsp; &nbsp; tft.setTextColor(0x07FF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;IN 1&quot;);<br />&nbsp; tft.setCursor(210, 127); if (in == 2 &amp;&amp; set == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else if (in == 2 &amp;&amp; set != 1) {<br />&nbsp; &nbsp; tft.setTextColor(0x07FF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;IN 2&quot;);<br />&nbsp; tft.setCursor(310, 127); if (in == 3 &amp;&amp; set == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else if (in == 3 &amp;&amp; set != 1) {<br />&nbsp; &nbsp; tft.setTextColor(0x07FF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;IN 3&quot;);<br />&nbsp; tft.setCursor(410, 127); if (in == 4 &amp;&amp; set == 1) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else if (in == 4 &amp;&amp; set != 1) {<br />&nbsp; &nbsp; tft.setTextColor(0x07FF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;IN 4&quot;);<br />&nbsp; tft.setCursor(5, 152);<br />&nbsp; if (set == 2) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; }<br />&nbsp; if (in == 1) {<br />&nbsp; &nbsp; gain = gain1;<br />&nbsp; &nbsp; tft.print(&quot;GAIN IN 1&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Чуствительность входа<br />&nbsp; }<br />&nbsp; if (in == 2) {<br />&nbsp; &nbsp; gain = gain2;<br />&nbsp; &nbsp; tft.print(&quot;GAIN IN 2&quot;);<br />&nbsp; }<br />&nbsp; if (in == 3) {<br />&nbsp; &nbsp; gain = gain3;<br />&nbsp; &nbsp; tft.print(&quot;GAIN IN 3&quot;);<br />&nbsp; }<br />&nbsp; if (in == 4) {<br />&nbsp; &nbsp; gain = gain4;<br />&nbsp; &nbsp; tft.print(&quot;GAIN IN 4&quot;);<br />&nbsp; }<br />&nbsp; if (pluse == HIGH &amp;&amp; set == 2) {<br />&nbsp; &nbsp; gain++;<br />&nbsp; &nbsp; if (gain &gt; 15) {<br />&nbsp; &nbsp; &nbsp; gain = 15;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; set == 2) {<br />&nbsp; &nbsp; gain--;<br />&nbsp; &nbsp; if (gain &lt; 0) {<br />&nbsp; &nbsp; &nbsp; gain = 0;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w3 = 1;<br />&nbsp; }<br />&nbsp; if (in == 1) {<br />&nbsp; &nbsp; gain1 = gain;<br />&nbsp; } if (in == 2) {<br />&nbsp; &nbsp; gain2 = gain;<br />&nbsp; } if (in == 3) {<br />&nbsp; &nbsp; gain3 = gain;<br />&nbsp; }<br />&nbsp; if (in == 4) {<br />&nbsp; &nbsp; gain4 = gain;<br />&nbsp; }<br />&nbsp; if (w3 == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 15; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; if (i2 &lt; gain) {} else {<br />&nbsp; &nbsp; &nbsp; &nbsp; i2 = gain;<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 141, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 141, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 143, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 143, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 145, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 145, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 147, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 147, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 149, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 149, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 151, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 151, 10, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 * 4 + 120, 153, 10, 0x000F); tft.drawFastHLine(i * 4 + 122, 153, 10, 0xcdcd);<br />&nbsp; &nbsp; } w3 = 0; tft.fillRect(93, 140, 15, 15, 0x39E9);<br />&nbsp; }<br />&nbsp; /////////////////////////////баланс////////////////////////////////////////////////////////////<br />&nbsp; tft.setCursor(210, 152); if (set == 3) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;LF &quot;);<br />&nbsp; tft.setCursor(310, 152); if (set == 4) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;RF &quot;);</p><p>&nbsp; if (pluse == HIGH &amp;&amp; set == 3) {<br />&nbsp; &nbsp; lf++;<br />&nbsp; &nbsp; if (lf &gt; 30) {<br />&nbsp; &nbsp; &nbsp; lf = 30;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w4 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; set == 3) {<br />&nbsp; &nbsp; lf--;<br />&nbsp; &nbsp; if (lf &lt; 0) {<br />&nbsp; &nbsp; &nbsp; lf = 0;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w4 = 1;<br />&nbsp; }<br />&nbsp; if (w4 == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 30; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; if (i2 &lt; lf) {} else {<br />&nbsp; &nbsp; &nbsp; &nbsp; i2 = lf;<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 141, 1, 0x000F); tft.drawFastHLine(i + 246, 141, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 143, 1, 0x000F); tft.drawFastHLine(i + 246, 143, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 145, 1, 0x000F); tft.drawFastHLine(i + 246, 145, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 147, 1, 0x000F); tft.drawFastHLine(i + 246, 147, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 149, 1, 0x000F); tft.drawFastHLine(i + 246, 149, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 151, 1, 0x000F); tft.drawFastHLine(i + 246, 151, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 245, 153, 1, 0x000F); tft.drawFastHLine(i + 246, 153, 1, 0xcdcd);<br />&nbsp; &nbsp; } w4 = 0;<br />&nbsp; }</p><p>&nbsp; if (pluse == HIGH &amp;&amp; set == 4) {<br />&nbsp; &nbsp; rf++;<br />&nbsp; &nbsp; if (rf &gt; 30) {<br />&nbsp; &nbsp; &nbsp; rf = 30;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w5 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; set == 4) {<br />&nbsp; &nbsp; rf--;<br />&nbsp; &nbsp; if (rf &lt; 0) {<br />&nbsp; &nbsp; &nbsp; rf = 0;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w5 = 1;<br />&nbsp; }<br />&nbsp; if (w5 == 1) {<br />&nbsp; &nbsp; audio();<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 30; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; if (i2 &lt; rf) {} else {<br />&nbsp; &nbsp; &nbsp; &nbsp; i2 = rf;<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 141, 1, 0x000F); tft.drawFastHLine(i + 346, 141, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 143, 1, 0x000F); tft.drawFastHLine(i + 346, 143, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 145, 1, 0x000F); tft.drawFastHLine(i + 346, 145, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 147, 1, 0x000F); tft.drawFastHLine(i + 346, 147, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 149, 1, 0x000F); tft.drawFastHLine(i + 346, 149, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 151, 1, 0x000F); tft.drawFastHLine(i + 346, 151, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 345, 153, 1, 0x000F); tft.drawFastHLine(i + 346, 153, 1, 0xcdcd);<br />&nbsp; &nbsp; } w5 = 0;<br />&nbsp; }<br />&nbsp; ///////////////////////////////////////тонокомпенсация//////////////////////////////////////////////////////////////////<br />&nbsp; tft.setCursor(5, 182); if (set == 5) {<br />&nbsp; &nbsp; tft.setTextColor(0xFFFF);<br />&nbsp; } else {<br />&nbsp; &nbsp; tft.setTextColor(0xcdcd);<br />&nbsp; } tft.print(&quot;LOUDNESS: &quot;);</p><p>&nbsp; if (pluse == HIGH &amp;&amp; set == 5) {<br />&nbsp; &nbsp; att_loun++;<br />&nbsp; &nbsp; if (att_loun &gt; 14) {<br />&nbsp; &nbsp; &nbsp; att_loun = 14;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w6 = 1;<br />&nbsp; }<br />&nbsp; if (minus == HIGH &amp;&amp; set == 5) {<br />&nbsp; &nbsp; att_loun--;<br />&nbsp; &nbsp; if (att_loun &lt; 0) {<br />&nbsp; &nbsp; &nbsp; att_loun = 0;<br />&nbsp; &nbsp; } audio();<br />&nbsp; &nbsp; w6 = 1;<br />&nbsp; }<br />&nbsp; if (w6 == 1) {<br />&nbsp; &nbsp; for (i = 0, i2 = 0; i &lt;= 14; i++, i2++) {<br />&nbsp; &nbsp; &nbsp; if (i2 &lt; att_loun) {} else {<br />&nbsp; &nbsp; &nbsp; &nbsp; i2 = att_loun;<br />&nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 170, 1, 0xf800); tft.drawFastHLine(i + 116, 170, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 172, 1, 0xf800); tft.drawFastHLine(i + 116, 172, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 174, 1, 0xf800); tft.drawFastHLine(i + 116, 174, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 176, 1, 0xf800); tft.drawFastHLine(i + 116, 176, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 178, 1, 0xf800); tft.drawFastHLine(i + 116, 178, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 180, 1, 0xf800); tft.drawFastHLine(i + 116, 180, 1, 0xcdcd);<br />&nbsp; &nbsp; &nbsp; tft.drawFastHLine(i2 + 115, 182, 1, 0xf800); tft.drawFastHLine(i + 116, 182, 1, 0xcdcd);<br />&nbsp; &nbsp; } w6 = 0;<br />&nbsp; }<br />&nbsp; if (millis() - time &gt; 1000 &amp;&amp; eeprom == 1) {<br />&nbsp; &nbsp; EEPROM.update(0, vol); EEPROM.update(1, treb + 15); EEPROM.update(2, bass + 15); EEPROM.update(3, in);<br />&nbsp; &nbsp; EEPROM.update(4, gain1); EEPROM.update(5, gain2); EEPROM.update(6, gain3); EEPROM.update(7, gain4);<br />&nbsp; &nbsp; EEPROM.update(8, gain); EEPROM.update(9, lf); EEPROM.update(10, rf); EEPROM.update(11, att_loun);</p><p>&nbsp; &nbsp; eeprom = 0;<br />&nbsp; }<br />&nbsp; times = millis() - times;<br />&nbsp; Serial.println(times);<br />}&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //loop<br />void audio() {<br />&nbsp; pt.setVolume(vol); // int 0...55 === -70...0 dB step 1.25 dB (Уровень громкости Лк+Пк)<br />&nbsp; pt.setAttL(lf); // int 0...23 === 0...-30 db step 1.25 dB &gt; int 31 === mute on (регулировка баланса по Лк практически до 0)<br />&nbsp; pt.setAttR(rf); // int 0...23 === 0...-30 dB step 1.25 dB &gt; int 31 === mute on (регулировка баланса по Пк практически до 0)<br />&nbsp; pt.setSwitch(in, att_loun, gain);<br />&nbsp; // input&nbsp; &nbsp; &nbsp; int 0..2 === IN 1...3 (выбор стереовхода 4)<br />&nbsp; // loudness&nbsp; &nbsp;int 0...1 === 1-on 0-off (тонокомпесация)<br />&nbsp; // input gain int 0...3 === 0...11.25dB step 3.75 dB(регулировка предусиления по входам)<br />&nbsp; pt.setBass(bass);&nbsp; &nbsp;// int -7...+7 === -14...+14 dB step 2 dB (регулировка низких частот)<br />&nbsp; pt.setTreble(treb); // int -7...+7 === -14...+14 dB step 2 dB (регулировка верхних частот)<br />}</p><p>void cl1() {<br />&nbsp; ir.value = 0;<br />&nbsp; delay(300);<br />}</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Fri, 04 Feb 2022 04:30:11 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=5376#p5376</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=5375#p5375</link>
			<description><![CDATA[<p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2022/02/633039682fe0f76d1d1c66f2b68e2b46.jpg" alt="http://forum.rcl-radio.ru/uploads/images/2022/02/633039682fe0f76d1d1c66f2b68e2b46.jpg" /></span></p><p>как уменьшить по горизонтали<br /><a href="http://wiki.amperka.ru/продукты:tft-lcd-240x320">http://wiki.amperka.ru/продукты:tft-lcd-240x320</a></p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Fri, 04 Feb 2022 04:02:33 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=5375#p5375</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4887#p4887</link>
			<description><![CDATA[<div class="quotebox"><cite>sanj76a пишет:</cite><blockquote><p><span class="postimg"><img src="http://forum.rcl-radio.ru/uploads/images/2021/11/1c7e3e6868b4b8f186a7b60439ed2df6.jpg" alt="http://forum.rcl-radio.ru/uploads/images/2021/11/1c7e3e6868b4b8f186a7b60439ed2df6.jpg" /></span></p></blockquote></div><p>Могли бы вы адаптировать скетч под этот LCD и под PT2313 или TDA7318 или TDA7313 на ваш выбор. </p><p>От anton7558 никакого толку</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Wed, 01 Dec 2021 04:35:43 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4887#p4887</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4846#p4846</link>
			<description><![CDATA[<p>Сам проект описан в первом посте, все протестировано. anton7558 адаптировал проект под свои нужды, Вы можете написать ему личное сообщение, возможно он Вам вышлет последнюю версия своего скетча.</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Fri, 19 Nov 2021 12:55:45 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4846#p4846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4845#p4845</link>
			<description><![CDATA[<p>Ясно, значит тема затухла и продолжения не будет? Я хотел развить. Было б интересно с таким LCD сделать УНЧ, а то все время LCD1602, уже приелся и надоел</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Fri, 19 Nov 2021 12:52:26 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4845#p4845</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4842#p4842</link>
			<description><![CDATA[<p>Я вносил только небольшие правки в проект, скетч дописывал и тестировал anton7558</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Fri, 19 Nov 2021 12:40:03 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4842#p4842</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4835#p4835</link>
			<description><![CDATA[<p>Результат теста я не помню, пользователь удалил переписку</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Thu, 18 Nov 2021 06:34:41 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4835#p4835</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4834#p4834</link>
			<description><![CDATA[<div class="quotebox"><cite>sanj76a пишет:</cite><blockquote><p>От&nbsp; 07.27 это ваш последний скетч? Тестировался? В ближайшее время попробую протэстить</p></blockquote></div><p>Тестировался или нет?</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Thu, 18 Nov 2021 06:02:36 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4834#p4834</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4832#p4832</link>
			<description><![CDATA[<p>Скетч переделан по просьбе пользователя на другой аудиопроцессор, пользователь удалил свои сообщения</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Thu, 18 Nov 2021 05:42:25 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4832#p4832</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4831#p4831</link>
			<description><![CDATA[<p>Не понял, статья под TDA7419, а откуда взялся<br />в скетче PT2314</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Thu, 18 Nov 2021 05:32:11 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4831#p4831</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4830#p4830</link>
			<description><![CDATA[<p>От 7.27 это ваш последний скетч? Тестировался? В ближайшее время попробую протэстить</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Thu, 18 Nov 2021 05:15:03 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4830#p4830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4829#p4829</link>
			<description><![CDATA[<p>нет</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Thu, 18 Nov 2021 05:06:57 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4829#p4829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4828#p4828</link>
			<description><![CDATA[<p>У вас есть скетч от anton7558?</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Thu, 18 Nov 2021 05:03:27 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4828#p4828</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4827#p4827</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Такой будет работать?</p></blockquote></div><p>Да, будет.</p>]]></description>
			<author><![CDATA[null@example.com (liman324)]]></author>
			<pubDate>Thu, 18 Nov 2021 00:20:59 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4827#p4827</guid>
		</item>
		<item>
			<title><![CDATA[Re: Аудиопроцессор TDA7419 + LCD TFT 2,4 (SPFD5408)]]></title>
			<link>http://forum.rcl-radio.ru/viewtopic.php?pid=4825#p4825</link>
			<description><![CDATA[<p>Такой будет работать?</p>]]></description>
			<author><![CDATA[null@example.com (sanj76a)]]></author>
			<pubDate>Mon, 15 Nov 2021 04:27:18 +0000</pubDate>
			<guid>http://forum.rcl-radio.ru/viewtopic.php?pid=4825#p4825</guid>
		</item>
	</channel>
</rss>
