<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=58&amp;t=12765&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-08-27T06:13:15+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=58&amp;t=12765&amp;mode</id>
<entry>
<author><name><![CDATA[tomek11b]]></name></author>
<updated>2015-08-27T05:18:13+01:00</updated>
<published>2015-08-27T05:18:13+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138433#p138433</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138433#p138433"/>
<title type="html"><![CDATA[Re: PetitFS- funkcja dtostrf]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138433#p138433"><![CDATA[
Problem rozwiązany, dziękuje <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=5132">tomek11b</a> — 27 sie 2015, o 05:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[atmel]]></name></author>
<updated>2015-08-26T19:35:58+01:00</updated>
<published>2015-08-26T19:35:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138400#p138400</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138400#p138400"/>
<title type="html"><![CDATA[Re: PetitFS- funkcja dtostrf]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138400#p138400"><![CDATA[
Nie wiadomo jakiego typu są zmienne &quot;czas&quot;, &quot;t1&quot; i &quot;t2&quot;, ale np. dla typu &quot;float&quot; i dwóch miejsc po przecinku można zapisać:<br /><br />[syntax=c]sprintf(rekord,&quot;%.2f;%.2f;%.2f;\r\n&quot;,czas, t1, t2);[/syntax]<br />Przy czym musisz pamiętać o odpowiednich ustawieniach linkera (<!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html" >http://mirekk36.blogspot.com/2013/04/ec ... float.html</a><!-- m -->).<br /><br />%s zapisuje do bufora łańcuch znaków...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1183">atmel</a> — 26 sie 2015, o 19:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tomek11b]]></name></author>
<updated>2015-08-27T06:13:15+01:00</updated>
<published>2015-08-26T19:18:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138395#p138395</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138395#p138395"/>
<title type="html"><![CDATA[PetitFS- funkcja dtostrf]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12765&amp;p=138395#p138395"><![CDATA[
Czesc, chciałbym zapisać swój pomiar na karcie SD, jednak nie bardzo wiem jak pogodzić funkcje &quot;dtostrf&quot; z zapisem z lekcji 17 PetitFS z Greenbooka. Chciałbym zapisac wartość1 typu float z znalezionego tutaj na forum fragmentu kodu. <br />W lekcji 17 używana jest funkcja sprintf:<br />[syntax=c]if( ts++ == 3 ) {<br />ts=0;<br />PORTD &amp;= ~(1&lt;&lt;PD7);<br />memset(rekord,0,sizeof(rekord));<br />sprintf(rekord,&quot;%s;%s;%s;\r\n&quot;,czas, t1, t2);<br />res = mk_pf_file_append(&amp;fs, &quot;loger.txt&quot;, rekord);<br />PORTD |= (1&lt;&lt;PD7);<br />}<br />int0_flag=0;[/syntax]<br /><br />Jak to z sobą ożenić? <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=5132">tomek11b</a> — 26 sie 2015, o 19:18</p><hr />
]]></content>
</entry>
</feed>