<?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=8&amp;t=12593&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-08-10T13:36:38+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=12593&amp;mode</id>
<entry>
<author><name><![CDATA[4MaticPL]]></name></author>
<updated>2015-08-10T13:36:38+01:00</updated>
<published>2015-08-10T13:36:38+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136931#p136931</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136931#p136931"/>
<title type="html"><![CDATA[Re: i2c i sprawdzanie czy dane urządzenie istnieje]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136931#p136931"><![CDATA[
Dziękuje za odpowiedzi <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2175">4MaticPL</a> — 10 sie 2015, o 13:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matw]]></name></author>
<updated>2015-08-10T11:32:26+01:00</updated>
<published>2015-08-10T11:32:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136918#p136918</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136918#p136918"/>
<title type="html"><![CDATA[Re: i2c i sprawdzanie czy dane urządzenie istnieje]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136918#p136918"><![CDATA[
Albo zobacz tutaj: <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic9839.html#p110357" >topic9839.html#p110357</a><!-- l --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2394">matw</a> — 10 sie 2015, o 11:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[majster]]></name></author>
<updated>2015-08-10T11:30:40+01:00</updated>
<published>2015-08-10T11:30:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136917#p136917</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136917#p136917"/>
<title type="html"><![CDATA[Re: i2c i sprawdzanie czy dane urządzenie istnieje]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136917#p136917"><![CDATA[
Masz BB? Z tamtad wez i2c<br /><br />Namazane ze smarta.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1628">majster</a> — 10 sie 2015, o 11:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[4MaticPL]]></name></author>
<updated>2015-08-10T11:22:08+01:00</updated>
<published>2015-08-10T11:22:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136916#p136916</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136916#p136916"/>
<title type="html"><![CDATA[i2c i sprawdzanie czy dane urządzenie istnieje]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12593&amp;p=136916#p136916"><![CDATA[
Witam<br />Da się sprawdzić czy urządzenie o danym adresie jest podłączone do magistrali czy nie?<br /><br />Mam taką bibliotekę od mirka z poradnika o oledach ale żadna funkcja nie zwraca żadnych wartości<br />[syntax=c]//**********************************************************************<br />//*************************** MAGISTRALA I2C ***************************<br />static void i2cSetBitrate(uint16_t bitrateKHz) {<br />uint8_t bitrate_div;<br /><br />bitrate_div = ((F_CPU/1000l)/bitrateKHz);<br />if(bitrate_div &gt;= 16)<br />bitrate_div = (bitrate_div-16)/2;<br /><br />TWBR = bitrate_div;<br />}<br /><br />static void TWI_start(void) {<br />TWCR = (1&lt;&lt;TWINT)|(1&lt;&lt;TWEN)|(1&lt;&lt;TWSTA);<br />while (!(TWCR&amp;(1&lt;&lt;TWINT)));<br />}<br /><br />static void TWI_stop(void) {<br />TWCR = (1&lt;&lt;TWINT)|(1&lt;&lt;TWEN)|(1&lt;&lt;TWSTO);<br />while ( (TWCR&amp;(1&lt;&lt;TWSTO)) );<br />}<br /><br />static void TWI_write(uint8_t bajt) {<br />TWDR = bajt;<br />TWCR = (1&lt;&lt;TWINT)|(1&lt;&lt;TWEN);<br />while ( !(TWCR&amp;(1&lt;&lt;TWINT)));<br />}<br /><br />static void TWI_write_buf( uint8_t SLA, uint8_t adr, uint16_t len, uint8_t *buf ) {<br /><br />TWI_start();<br />TWI_write(SLA);<br />TWI_write(adr);<br />while (len--) TWI_write(*buf++);<br />TWI_stop();<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2175">4MaticPL</a> — 10 sie 2015, o 11:22</p><hr />
]]></content>
</entry>
</feed>