<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[forum.rcl-radio.ru &mdash; Прошивка STM32]]></title>
	<link rel="self" href="http://forum.rcl-radio.ru/extern.php?action=feed&amp;tid=105&amp;type=atom" />
	<updated>2024-04-06T19:18:37Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.rcl-radio.ru/viewtopic.php?id=105</id>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10059#p10059" />
			<content type="html"><![CDATA[<p>Хорошо, спасибо что помогли !!!</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-06T19:18:37Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10059#p10059</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10058#p10058" />
			<content type="html"><![CDATA[<p>Проект старый, я даже не помню что да как там работает.</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-06T15:34:20Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10058#p10058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10057#p10057" />
			<content type="html"><![CDATA[<p>А в этом модуле ещё есть режим TF - карты, его можно добавить в меню ?</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-06T15:31:33Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10057#p10057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10056#p10056" />
			<content type="html"><![CDATA[<p>str.substring(a+0,a+16);</p><p>0 - это начало строки<br />16 - конец строки</p><div class="quotebox"><blockquote><p>в начале печатается MF+ ,/ затем название папки и /</p></blockquote></div><p>укажите начало строки с номера буквы начала названия трека, а конец строки с номера когда название трека заканчивается</p><p>MF+/LEERIT~1&nbsp; &nbsp;/02-STO~1MP3</p><p>str.substring(a+15,a+26);</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-06T03:47:33Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10056#p10056</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10055#p10055" />
			<content type="html"><![CDATA[<p>Текст появился, спасибо за Ваш труд, но есть один нюанс в начале печатается MF+ ,/ затем название папки и /название трека уже не помещается . Можно ли сделать бегущую строку ( скроллинг ) потому что при переключении на следующий трек на экране ничего не меняется так как название папки одно и тоже а название&nbsp; трека не&nbsp; умещается. Заранее благодарен !!!</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-05T17:09:10Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10055#p10055</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10053#p10053" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code> #include &lt;Arduino.h&gt;
#include &lt;U8x8lib.h&gt;

U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);           
//U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); 



int a,usb,trek,trek_time,trek_all,trek_off,blu_sos,vol;
String str, text_name;
unsigned long times,times0;
bool pp,w=1,w0;

 a = str.indexOf(&quot;MF+&quot;);if(a&gt;=0){text_name = str.substring(a+0,a+16);}// название трека
  u8x8.setCursor(0,7);u8x8.print(text_name);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-05T09:47:43Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10053#p10053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10051#p10051" />
			<content type="html"><![CDATA[<p>Если делать так :&nbsp; #include &lt;Arduino.h&gt;<br />#include &lt;U8x8lib.h&gt;</p><p>U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* reset=*/ U8X8_PIN_NONE);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />//U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);&nbsp; </p><p>String str;</p><p>int a,usb,trek,trek_time,trek_all,trek_off,blu_sos,vol,String str, text_name;<br />unsigned long times,times0;<br />bool pp,w=1,w0;</p><p>и так :&nbsp; a = str.indexOf(&quot;MF+&quot;);if(a&gt;=0){text_name = str.substring(a+0,a+16);}// название трека<br />&nbsp; u8x8.setCursor(0,7);u8x8.print(text_name);</p><p>то Arduino IDE ругается :&nbsp; Не используется: C:\Users\ттт\Documents\Arduino\libraries\SPI<br />exit status 1<br />expected initializer before &#039;str&#039;</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-04T18:54:58Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10051#p10051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10050#p10050" />
			<content type="html"><![CDATA[<p>создание переменной String text_name лучше перенести в</p><p>String str, text_name;</p><br /><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = str.indexOf(&quot;TS+02&quot;);if(a&gt;=0){blu_sos=2;} // блютус воспроизводиться<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = str.indexOf(&quot;QA+&quot;);if(a&gt;=0){vol = str.substring(a+3,a+5).toInt();}//vol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = str.indexOf(&quot;MF+&quot;);if(a&gt;=0){text_name = str.substring(a+0,a+16);}// название трека<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u8x8.setCursor(0,7);u8x8.print(text_name);</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-04T15:51:30Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10050#p10050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10049#p10049" />
			<content type="html"><![CDATA[<p>M1+00000002<br />M2+00000008<br />MT+00000190<br />MK+00000000<br />MF+/LEERIT~1&nbsp; &nbsp;/02-STO~1MP3</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-04T15:12:23Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10049#p10049</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10048#p10048" />
			<content type="html"><![CDATA[<p>Опубликуйте вывод монитора порта</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-03T23:58:22Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10048#p10048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10047#p10047" />
			<content type="html"><![CDATA[<p>Сделал так : a = str.indexOf(&quot;TS+02&quot;);if(a&gt;=0){blu_sos=2;} // блютус воспроизводиться<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = str.indexOf(&quot;QA+&quot;);if(a&gt;=0){vol = str.substring(a+3,a+5).toInt();}//vol<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a = str.indexOf(&quot;MF+&quot;);if(a&gt;=0){String text_name = str.substring(a+0,a+16);}// название трека<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; u8x8.setCursor(0,7);u8x8.print(text_name);u8x8.print(&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;);</p><p>на экране пусто, только при переключении трека загорается внизу на долю секунды (0) и всё.<br />Видимо нужно что-то ещё добавить или я не прав. В мониторе порта есть информация о треке.</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-03T18:07:31Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10047#p10047</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10046#p10046" />
			<content type="html"><![CDATA[<p>Пример:</p><p>a = str.indexOf(&quot;AT+MF&quot;);</p><p>Указываете начало текста а+0<br />Конец текста а+16 </p><p>String text_name = str.substring(a+0,a+16);</p><p>text_name - текст выводите на дисплей</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-03T01:38:59Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10046#p10046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10045#p10045" />
			<content type="html"><![CDATA[<p>У меня все названия на английском поэтому мне кириллица и не нужна. Тогда можно сделать на английском ?</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-02T18:54:06Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10045#p10045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10043#p10043" />
			<content type="html"><![CDATA[<p>Можно, но я не стал это делать, потому что текст часто транслируется на кириллице. Поэтому в скетче нужно подключать русский шрифт и выводить его на дисплей, а это не так просто, тем более он сменяется периодически анг. текстом. Нужно определять анг или русский текст, подставлять нужный шрифт.</p>]]></content>
			<author>
				<name><![CDATA[liman324]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2</uri>
			</author>
			<updated>2024-04-02T15:51:41Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10043#p10043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Прошивка STM32]]></title>
			<link rel="alternate" href="http://forum.rcl-radio.ru/viewtopic.php?pid=10042#p10042" />
			<content type="html"><![CDATA[<p>Не совсем понятно можно вывести на экран&nbsp; название композиции или нет ?</p>]]></content>
			<author>
				<name><![CDATA[vadim_ilin]]></name>
				<uri>http://forum.rcl-radio.ru/profile.php?id=2245</uri>
			</author>
			<updated>2024-04-02T15:39:16Z</updated>
			<id>http://forum.rcl-radio.ru/viewtopic.php?pid=10042#p10042</id>
		</entry>
</feed>
