{"id":1042,"date":"2013-09-03T19:20:05","date_gmt":"2013-09-03T19:20:05","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=1042"},"modified":"2024-10-28T12:51:15","modified_gmt":"2024-10-28T12:51:15","slug":"spi-pins","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/io-pins-raspbian\/spi-pins","title":{"rendered":"SPI Pins"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Enabling The SPI Port<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">Via the desktop GUI<\/h5>\n\n\n\n<p>In the desktop GUI select the Start button &gt; Preferences &gt; Raspberry Pi Configuration<\/p>\n\n\n\n<p>Select the interfaces tab and then select the relevant option.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Via the config file<\/h5>\n\n\n\n<p>Use the sudo raspi-config<\/p>\n\n\n\n<p>config tool:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config<\/code><\/pre>\n\n\n\n<p>Select \u2018Interface Options\u2019 and then select the relevant option.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Test the SPI Port<\/h4>\n\n\n\n<p>Test the SPI port is working by typing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nls \/dev\/spidev*\n<\/code><\/pre>\n\n\n\n<p>You should see the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\/dev\/spidev0.0  \/dev\/spidev0.1\n<\/code><\/pre>\n\n\n\n<p>There are 2&nbsp;spidev devices shown. &nbsp;The first number refers to the SPI peripheral which in both cases is 0 (the RPi only has 1&nbsp;SPI&nbsp;port), the second number represents the chip select pins&nbsp;CS0 and CS1 .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enabling The SPI Port Via the desktop GUI In the desktop GUI select the Start button &gt; Preferences &gt; Raspberry Pi Configuration Select the interfaces tab and then select the relevant option. Via the config file Use the sudo raspi-config config tool: Select \u2018Interface Options\u2019 and then select the relevant option. Test the SPI Port [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-1042","post","type-post","status-publish","format-standard","hentry","category-io-pins-raspbian"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=1042"}],"version-history":[{"count":6,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1042\/revisions"}],"predecessor-version":[{"id":3786,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1042\/revisions\/3786"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=1042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=1042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=1042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}