{"id":13581,"date":"2015-10-20T09:19:07","date_gmt":"2015-10-20T08:19:07","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=13581"},"modified":"2015-10-20T09:19:07","modified_gmt":"2015-10-20T08:19:07","slug":"extending-a-traffic-lights-project-on-the-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=13581","title":{"rendered":"Extending a traffic lights project on the Raspberry Pi"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/i0.wp.com\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png?resize=560%2C779\" alt=\"\" width=\"560\" height=\"779\" \/><\/p>\n<p>Giles Booth <a href=\"http:\/\/www.suppertime.co.uk\/blogmywiki\/2015\/10\/python1\/\" target=\"_blank\">previously<\/a>\u00a0started to construct a circuit and write code that would display a traffic lights sequence on LEDs connected to his Pi using <a href=\"https:\/\/www.recantha.co.uk\/blog\/?s=gpio+zero\" target=\"_blank\">GPIO Zero<\/a>. This time, he has added a momentary tactile switch to the circuit so that he can wait for the button press before &#8216;stopping traffic&#8217; to allow people to cross. It&#8217;s great to see someone build their circuit and programming up like this. <a href=\"http:\/\/www.suppertime.co.uk\/blogmywiki\/2015\/10\/raspberry-pi-traffic-light-project-part-2\/\" target=\"_blank\">Read about his continuing adventures here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Giles Booth previously\u00a0started to construct a circuit and write code that would display a traffic lights sequence on LEDs connected to his Pi using GPIO Zero. This time, he has added a momentary tactile switch to the circuit so that&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[50,51],"tags":[],"class_list":["post-13581","post","type-post","status-publish","format-standard","hentry","category-making","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Giles Booth previously\u00a0started to construct a circuit and write code that would display a traffic lights sequence on LEDs connected to his Pi using GPIO Zero. This time, he has added a momentary tactile switch to the circuit so that&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-20T08:19:07+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Extending a traffic lights project on the Raspberry Pi\",\"datePublished\":\"2015-10-20T08:19:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\"},\"wordCount\":85,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png\",\"articleSection\":[\"Making\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\",\"name\":\"Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png\",\"datePublished\":\"2015-10-20T08:19:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=13581\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage\",\"url\":\"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png\",\"contentUrl\":\"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=13581#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extending a traffic lights project on the Raspberry Pi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=13581","og_locale":"en_US","og_type":"article","og_title":"Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod","og_description":"Giles Booth previously\u00a0started to construct a circuit and write code that would display a traffic lights sequence on LEDs connected to his Pi using GPIO Zero. This time, he has added a momentary tactile switch to the circuit so that&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=13581","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2015-10-20T08:19:07+00:00","og_image":[{"url":"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Extending a traffic lights project on the Raspberry Pi","datePublished":"2015-10-20T08:19:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581"},"wordCount":85,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage"},"thumbnailUrl":"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png","articleSection":["Making","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13581#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581","url":"https:\/\/www.recantha.co.uk\/blog\/?p=13581","name":"Extending a traffic lights project on the Raspberry Pi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage"},"thumbnailUrl":"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png","datePublished":"2015-10-20T08:19:07+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=13581"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#primaryimage","url":"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png","contentUrl":"http:\/\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights-switch-736x1024.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=13581#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Extending a traffic lights project on the Raspberry Pi"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-3x3","jetpack-related-posts":[{"id":13575,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13575","url_meta":{"origin":13581,"position":0},"title":"Simple GPIO project using the Raspberry Pi and GPIO Zero","author":"Michael Horne","date":"19 October 2015","format":false,"excerpt":"Giles Booth wanted to get started with physical computing using the Pi. Luckily, Ben Nuttall had just announced GPIO Zero, the new GPIO library from the Foundation. So, Giles got hold of some simple electronic components and wrote a traffic light project using Zero. Read about his efforts here. Shameless\u2026","rel":"","context":"In &quot;Making&quot;","block_context":{"text":"Making","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=50"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.suppertime.co.uk\/blogmywiki\/wp-content\/uploads\/2015\/10\/traffic-lights.png?resize=700%2C400 2x"},"classes":[]},{"id":8543,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=8543","url_meta":{"origin":13581,"position":1},"title":"BerryClip+ for the #RaspberryPi review","author":"Michael Horne","date":"9 March 2014","format":false,"excerpt":"Matt Hawkins (aka The Raspberry Pi Spy) sent me one of his new GPIO add-on boards for the Pi called the BerryClip+. The BerryClip+ is a simple, half-sized add-on board for the Raspberry Pi that plugs straight onto the GPIO header. It contains 6 LEDs (2 red, 2 amber, 2\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.raspberrypi-spy.co.uk\/wp-content\/uploads\/2012\/11\/berryclip_2013_03_06.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":14359,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14359","url_meta":{"origin":13581,"position":2},"title":"CamJam EduKit 1 joins Raspberry Pi learning resources","author":"Michael Horne","date":"17 March 2016","format":false,"excerpt":"Pardon me while I get a little excited! :-) Ben Nuttall ran a GPIO Zero workshop at the Raspberry Pi Big Birthday Weekend. In the workshop, he used components from CamJam EduKit 1\u00a0(a cheap electronics components kit)\u00a0to teach the basics of the Python library and built up to programming a\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/github.com\/raspberrypilearning\/camjam-kit-1\/raw\/master\/images\/camjam1wiring.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":13925,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13925","url_meta":{"origin":13581,"position":3},"title":"Turn the Raspberry Pi SenseHAT into a spirit level","author":"Michael Horne","date":"20 December 2015","format":false,"excerpt":"Giles Booth has attached a SenseHAT to his Raspberry Pi and then written some simple Python script to generate a spirit level on the SenseHAT's matrix display. Some great work here showing the flexibility of this fantastic little Pi accessory. Read how to do it\u00a0here.","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/12\/spiritlevel.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/12\/spiritlevel.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/12\/spiritlevel.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2015\/12\/spiritlevel.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":17569,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17569","url_meta":{"origin":13581,"position":4},"title":"The Return of the Raspberry Pi Christmas Tree from The Pi Hut!","author":"Michael Horne","date":"31 August 2017","format":false,"excerpt":"Jamie over at The Pi Hut has just announced that the circuit board\u00a0Christmas Tree has gone on pre-order. This product comes in two flavours: a pre-soldered tree (for \u00a315) and a soldering kit (for \u00a312). The tree is three-dimensional, slotting together from push-out circuit board parts and features 25 LEDs\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/xmas_tree.jpg?fit=1000%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/xmas_tree.jpg?fit=1000%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/xmas_tree.jpg?fit=1000%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/xmas_tree.jpg?fit=1000%2C667&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":15078,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15078","url_meta":{"origin":13581,"position":5},"title":"GPIO Zero reference ruler for the Raspberry Pi &#8211; new Kickstarter","author":"Michael Horne","date":"19 July 2016","format":false,"excerpt":"Alex Eames, of RasPiO and RasPi.TV fame has just launched his latest Kickstarter. This one is for a rather nice 30cm\/12\"\u00a0ruler filled with GPIO Zero reference code, as pictured above. Alex previously did an RPi.GPIO reference ruler that was half the size so we know that the quality of this\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/07\/raspio_gpio_zero_ruler.png?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13581"}],"version-history":[{"count":1,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13581\/revisions"}],"predecessor-version":[{"id":13582,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13581\/revisions\/13582"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}