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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-03-29T12:51:09+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=58&amp;t=20514&amp;mode</id>
<entry>
<author><name><![CDATA[andrews]]></name></author>
<updated>2018-03-29T12:51:09+01:00</updated>
<published>2018-03-29T12:51:09+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206213#p206213</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206213#p206213"/>
<title type="html"><![CDATA[Re: Jak dokonać konwersji z 8 bit skali szarości na RGB565]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206213#p206213"><![CDATA[
Ja bym spróbował mniej więcej tak:<br />[syntax=c]uint16_t grey_to_rgb565(uint8_t greyPixel)<br />{<br /><br />    uint16_t blue = (uint16_t)greyPixel &gt;&gt; 3;<br />    uint16_t green = ( (uint16_t)greyPixel &gt;&gt; 2 ) &lt;&lt; 5;<br />    uint16_t red = ( (uint16_t)greyPixel &gt;&gt; 3 ) &lt;&lt; 11;<br /><br />    return (uint16_t) (red | green | blue);<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14165">andrews</a> — 29 mar 2018, o 12:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2018-03-29T10:33:56+01:00</updated>
<published>2018-03-29T10:33:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206208#p206208</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206208#p206208"/>
<title type="html"><![CDATA[Re: Jak dokonać konwersji z 8 bit skali szarości na RGB565]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206208#p206208"><![CDATA[
spróbuj tak:<br /><br />GR = (R+G+B)/3<br /><br />R=GR<br />G=GR<br />B=GR<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 29 mar 2018, o 10:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StaryAnoda]]></name></author>
<updated>2018-03-29T09:45:12+01:00</updated>
<published>2018-03-29T09:45:12+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206202#p206202</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206202#p206202"/>
<title type="html"><![CDATA[Jak dokonać konwersji z 8 bit skali szarości na RGB565]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=20514&amp;p=206202#p206202"><![CDATA[
Hej <br /><br />Odbieram obraz czarno biały. Chciałbym go wyświetlić na wyświetlaczu który obsługuję standard RGB565. Czy może mi ktoś podpowiedzieć jak go wyświetlić również jako czarno biały obraz ?<br /><br />Może ma ktoś algorytm do tego typu operacji ?<br /><br />Pozdrawiam<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12916">StaryAnoda</a> — 29 mar 2018, o 09:45</p><hr />
]]></content>
</entry>
</feed>