35 lines
1.4 KiB
Plaintext

<!--{ "title": "Why always SPI CS on pin 10?" } -->
<h1>#title#</h1>
<p>
Thank you, Ladyada, for <a href="https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2">this great display</a>.
</p>
<p>
But why is TFT CS on pin 10?
</p>
<p>
<a href="http://a385e5.files.wordpress.com/2016/03/bildschirmfoto-2016-03-03-um-21-48-49.png" rel="attachment wp-att-711"><img src="http://a385e5.files.wordpress.com/2016/03/bildschirmfoto-2016-03-03-um-21-48-49.png" alt="Bildschirmfoto 2016-03-03 um 21.48.49" width="722" height="449" class="alignnone size-full wp-image-711" /></a>
</p>
<p>
Pin 10 is also the SPI CS for the Ethernet shield. Why not, for instance, pin 6:
</p>
<p>
<a href="http://a385e5.files.wordpress.com/2016/03/img_1211-e1457038834523.jpg" rel="attachment wp-att-712"><img src="http://a385e-5.de/wp-content/uploads/IMG_1211-e1457038834523-1024x768.jpg" alt="IMG_1211" width="474" height="356" class="alignnone size-large wp-image-712" /></a>
</p>
<p>
Carefully lift pin 9 of the level shifter and connect it using a thin wire with pin 6 of the Arduino connector.
</p>
<p>
And voila, both the display and the ethernet shield is working:
</p>
<p>
<a href="http://a385e5.files.wordpress.com/2016/03/img_1212-e1457039094609.jpg" rel="attachment wp-att-713"><img src="http://a385e-5.de/wp-content/uploads/IMG_1212-e1457039094609-1024x768.jpg" alt="IMG_1212" width="474" height="356" class="alignnone size-large wp-image-713" /></a>
</p>