<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: fbtft]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=fbtft</link>
<description></description>
<pubDate>Sun, 20 Sep 2015 09:37:18 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[TFT01-2.2S]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?tft01_2_2s</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: fbtft</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#2_2_tft_lcd_tft01_2_2sp">Dobrica Pavlinušić's random unstructured stuff (2.2 TFT LCD: TFT01-2.2SP)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] 2.2 TFT LCD: TFT01-=2.2SP} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#raspberrypi">Dobrica Pavlinušić's random unstructured stuff (RaspberryPi)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RaspberryPi} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="2_2_tft_lcd_tft01_2_2sp">2.2 TFT LCD: TFT01-2.2SP</h1>
<p>
<a target="_blank" title="(external link)" href="http://www.elecfreaks.com/estore/2-2-tft-lcd-tft01-2-2sp.html">http://www.elecfreaks.com/estore/2-2-tft-lcd-tft01-2-2sp.html</a><br />
<a target="_blank" title="(external link)" href="http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S">http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S</a></p>
<p>
ILI9341 (or ILI9340 according to tftfb)</p>
<span class="nlw_phrase"><img alt="pinout-2.2SP.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/pinout-2.2SP.jpg?action=attachments_download;page_name=tft01_2_2s;id=20150712150641-0-5174" /><!-- wiki: {image: pinout-=2.2SP.jpg} --></span><br /><br /><h1 id="raspberrypi"><a href="https://saturn.ffzg.hr/rot13/index.cgi?raspberrypi" title="(93 months)  file mount-rpi-image.sh toc tag_list raspberrypi Interestring projects TODO test them out and write...">RaspberryPi</a></h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/notro/fbtft/wiki">https://github.com/notro/fbtft/wiki</a><br />
<a target="_blank" title="(external link)" href="https://hackaday.io/project/6157/instructions">https://hackaday.io/project/6157/instructions</a><br />
<a target="_blank" title="(external link)" href="https://www.raspberrypi.org/forums/viewtopic.php?p=768868#p768868">https://www.raspberrypi.org/forums/viewtopic.php?p=768868#p768868</a></p>
<ul>
<li>VCC to 3.3 volt (pin 17)</li>
<li>GND to GND (pin 20)</li>
<li>CS to CE0 (pin 24)</li>
<li>RESET to GPIO 25 (pin 22)</li>
<li>D/C to GPIO 24 (pin 18)</li>
<li>SDI/MOSI to MOSI (pin 19)</li>
<li>SCK to SCLk (pin 23)</li>
<li>LED to GPIO18 (pin 12)</li>
<li>SDO/MISO to MISO (pin 21)</li>
</ul>
<pre>
# enable spi in raspi-config

pi@jpi1 ~ $ grep spi /boot/config.txt 
dtparam=spi=on


sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update

sudo reboot


pi@jpi1 ~ $ sudo modprobe fbtft_device name=adafruit22a verbose=1

pi@jpi1 ~ $ dmesg | tail -8
[  173.796933] fbtft_device: Deleting spi0.0
[  173.797590] spi spi0.0: setting up native-CS0 as GPIO 8
[  173.797807] fbtft_device:  GPIOS used by 'adafruit22a':
[  173.797833] fbtft_device:    'reset' = GPIO25
[  173.797851] fbtft_device:    'dc' = GPIO24
[  173.797864] fbtft_device:    'led' = GPIO18
[  173.838265] fb_ili9340: module is from the staging directory, the quality is unknown, you have been warned.
[  174.220426] graphics fb1: fb_ili9340 frame buffer, 240x320, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi0.0 at 32 MHz

pi@jpi1 ~ $ fbset -fb /dev/fb1

mode &quot;240x320&quot;
    geometry 240 320 240 320 16
    timings 0 0 0 0 0 0 0
    nonstd 1
    rgba 5/11,6/5,5/0,0/0
endmode

pi@jpi1 ~ $ cat /dev/urandom &gt; /dev/fb1 
cat: write error: No space left on device



# test
cd /usr/share/X11/xorg.conf.d/
sudo mv 99-fbturbo.conf ~/
FRAMEBUFFER=/dev/fb1 startx


</pre>
</div>
<hr/><div>Attachments: pinout-2.2SP.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>fbtft</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?tft01_2_2s</guid>
<pubDate>Sun, 20 Sep 2015 09:37:18 -0000</pubDate>
</item>
</channel>
</rss>