{"id":16775,"date":"2017-04-19T14:05:06","date_gmt":"2017-04-19T13:05:06","guid":{"rendered":"http:\/\/www.recantha.co.uk\/blog\/?p=16775"},"modified":"2017-04-19T14:05:58","modified_gmt":"2017-04-19T13:05:58","slug":"play-battleships-on-your-sensehat-with-your-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=16775","title":{"rendered":"Play Battleships on your SenseHAT with your Raspberry Pi"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16776\" src=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?resize=475%2C475&#038;ssl=1\" alt=\"\" width=\"475\" height=\"475\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?w=475&amp;ssl=1 475w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?resize=260%2C260&amp;ssl=1 260w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?resize=160%2C160&amp;ssl=1 160w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/a><\/p>\n<p>Dan Aldred has posted <a href=\"https:\/\/github.com\/TeCoEd\/SenseHAT_Battleships\" target=\"_blank\">the code for a SenseHAT-based version<\/a> of the classic game\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Battleship_(game)\" target=\"_blank\"><em>Battleships<\/em>.<\/a>\u00a0Here&#8217;s how he describes it:<\/p>\n<blockquote><p>The program creates a random layout of boats, ammo and water. Use the joystick to select a location and then press Enter to fire a Torpedo.<\/p>\n<p>If you miss you will here a splash of water, if you hit then you will hear the explosion. Else you may find an ammo dump. Each square is then coloured, blue for water, red for a ship and yellow for ammo. You will be updated n the number of ships left to destroy.<\/p>\n<p>When you have used all your Torpedoes up or you have destroyed all the ships, then game ends and you are updated with your score. You can select to play again and a new random layout is created, or leave the game.<\/p><\/blockquote>\n<p>Great idea from Dan! You can <a href=\"https:\/\/github.com\/TeCoEd\/SenseHAT_Battleships\" target=\"_blank\">download the\u00a0Python 3 code here<\/a> and see a video of it in action below:<\/p>\n<p><iframe loading=\"lazy\" title=\"Battleships on the Raspberry Pi SenseHAT\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/SoIWA1JHCac?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dan Aldred has posted the code for a SenseHAT-based version of the classic game\u00a0Battleships.\u00a0Here&#8217;s how he describes it: The program creates a random layout of boats, ammo and water. Use the joystick to select a location and then press Enter&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":16776,"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":[21,20,39],"tags":[342,183],"class_list":["post-16775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games","category-gpio-boards","category-programming","tag-battleships","tag-sensehat"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Play Battleships on your SenseHAT with your 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=16775\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Play Battleships on your SenseHAT with your Raspberry Pi - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Dan Aldred has posted the code for a SenseHAT-based version of the classic game\u00a0Battleships.\u00a0Here&#8217;s how he describes it: The program creates a random layout of boats, ammo and water. Use the joystick to select a location and then press Enter&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\" \/>\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=\"2017-04-19T13:05:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-19T13:05:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i2.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"475\" \/>\n\t<meta property=\"og:image:height\" content=\"475\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\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=16775#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Play Battleships on your SenseHAT with your Raspberry Pi\",\"datePublished\":\"2017-04-19T13:05:06+00:00\",\"dateModified\":\"2017-04-19T13:05:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1\",\"keywords\":[\"battleships\",\"sensehat\"],\"articleSection\":[\"Games\",\"GPIO boards\",\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\",\"name\":\"Play Battleships on your SenseHAT with your Raspberry Pi - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1\",\"datePublished\":\"2017-04-19T13:05:06+00:00\",\"dateModified\":\"2017-04-19T13:05:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=16775\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=16775#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Play Battleships on your SenseHAT with your 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":"Play Battleships on your SenseHAT with your 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=16775","og_locale":"en_US","og_type":"article","og_title":"Play Battleships on your SenseHAT with your Raspberry Pi - Raspberry Pi Pod","og_description":"Dan Aldred has posted the code for a SenseHAT-based version of the classic game\u00a0Battleships.\u00a0Here&#8217;s how he describes it: The program creates a random layout of boats, ammo and water. Use the joystick to select a location and then press Enter&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=16775","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2017-04-19T13:05:06+00:00","article_modified_time":"2017-04-19T13:05:58+00:00","og_image":[{"width":475,"height":475,"url":"https:\/\/i2.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","type":"image\/jpeg"}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Play Battleships on your SenseHAT with your Raspberry Pi","datePublished":"2017-04-19T13:05:06+00:00","dateModified":"2017-04-19T13:05:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","keywords":["battleships","sensehat"],"articleSection":["Games","GPIO boards","Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=16775#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775","url":"https:\/\/www.recantha.co.uk\/blog\/?p=16775","name":"Play Battleships on your SenseHAT with your Raspberry Pi - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","datePublished":"2017-04-19T13:05:06+00:00","dateModified":"2017-04-19T13:05:58+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=16775"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#primaryimage","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","width":475,"height":475},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=16775#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Play Battleships on your SenseHAT with your 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":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/battleships.jpg?fit=475%2C475&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-4mz","jetpack-related-posts":[{"id":16732,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16732","url_meta":{"origin":16775,"position":0},"title":"SenseHAT emulator gets an update &#8211; adds movement sensors, 3D model","author":"Michael Horne","date":"10 April 2017","format":false,"excerpt":"Last year, Raspberry Pi teamed up with Trinket to launch a SenseHAT emulator. This emulator, which works in your browser, has now been updated. They've added the ability to mimic the movement sensors on-board a real SenseHAT.\u00a0They've also added a 3D model of the Pi\/HAT hardware so you can drag\u2026","rel":"","context":"In &quot;Emulation&quot;","block_context":{"text":"Emulation","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=18"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/sensehatemulator.png?fit=1150%2C531&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/sensehatemulator.png?fit=1150%2C531&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/sensehatemulator.png?fit=1150%2C531&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/sensehatemulator.png?fit=1150%2C531&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/sensehatemulator.png?fit=1150%2C531&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":16413,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16413","url_meta":{"origin":16775,"position":1},"title":"Collect the Dots game using the SenseHAT and Scratch on a Raspberry Pi","author":"Michael Horne","date":"16 February 2017","format":false,"excerpt":"Albert Hickey is a big fan of\u00a0using the SenseHAT on the Raspberry Pi and also of using Scratch, the visual programming language. So, he decided to use both with this simple game. You're presented with a blue dot (which is you) and a red dot. By using either the SenseHAT\u2026","rel":"","context":"In &quot;Games&quot;","block_context":{"text":"Games","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=21"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/02\/collect_the_dots.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/02\/collect_the_dots.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/02\/collect_the_dots.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/02\/collect_the_dots.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/02\/collect_the_dots.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":17510,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17510","url_meta":{"origin":16775,"position":2},"title":"Use a Raspberry Pi and the SenseHAT to create a mini-weather station","author":"Michael Horne","date":"19 August 2017","format":false,"excerpt":"Ville Salminen has written a nice tutorial over on his blog in which he takes a Raspberry Pi, adds a SenseHAT and then programs it to access the SenseHAT sensors to create a mini-weather station. He uses Flask to create a simple web interface, so there's plenty to learn here.\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.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/raspberry-pi-weather-station-2.png?fit=600%2C500&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/raspberry-pi-weather-station-2.png?fit=600%2C500&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/raspberry-pi-weather-station-2.png?fit=600%2C500&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":13210,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13210","url_meta":{"origin":16775,"position":3},"title":"SenseHAT launched by the @Raspberry_Pi Foundation &#8211; an extensive first look","author":"Michael Horne","date":"26 August 2015","format":false,"excerpt":"This morning, the Raspberry Pi Foundation announced the immediate availability of the SenseHAT. The SenseHAT is the guts of the Astro Pi\u00a0and has\u00a0an inherent space-aged\u00a0coolness built in. The board you hold in your hands is the same hardware that is going into space (enormous metal flight case not included). I\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.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/IMG_20150822_101836-e1440262876257.jpg?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/IMG_20150822_101836-e1440262876257.jpg?fit=1200%2C900&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/IMG_20150822_101836-e1440262876257.jpg?fit=1200%2C900&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/IMG_20150822_101836-e1440262876257.jpg?fit=1200%2C900&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/IMG_20150822_101836-e1440262876257.jpg?fit=1200%2C900&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":14009,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=14009","url_meta":{"origin":16775,"position":4},"title":"Rock-Paper-Scissors-Lizard-Spock with the SenseHAT on the Raspberry Pi","author":"Michael Horne","date":"11 January 2016","format":false,"excerpt":"Dan Aldred has done a lovely implementation of the classic game Rock-Paper-Scissors-Lizard-Spock using the SenseHAT. The program is written in Python and is available on Github\u00a0and you can see a video of it in action below: https:\/\/www.youtube.com\/watch?v=T_ZvWkMgVFM","rel":"","context":"In &quot;Games&quot;","block_context":{"text":"Games","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=21"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.thinkgeek.com\/images\/products\/additional\/large\/b597_rock_papaer_scissors_lizard_spock_dd.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.thinkgeek.com\/images\/products\/additional\/large\/b597_rock_papaer_scissors_lizard_spock_dd.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.thinkgeek.com\/images\/products\/additional\/large\/b597_rock_papaer_scissors_lizard_spock_dd.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.thinkgeek.com\/images\/products\/additional\/large\/b597_rock_papaer_scissors_lizard_spock_dd.jpg?resize=700%2C400 2x"},"classes":[]},{"id":13382,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=13382","url_meta":{"origin":16775,"position":5},"title":"Map the Minecraft world around you on a Raspberry Pi Sense HAT","author":"Michael Horne","date":"15 September 2015","format":false,"excerpt":"The Raspberry Pi Foundation have published a new SenseHAT tutorial. This one\u00a0interrogates Minecraft Pi and creates a map of the surrounding blocks. This map is then sent to the SenseHAT where it is displayed on the 8x8 LED matrix. Read the tutorial here.","rel":"","context":"In &quot;Games&quot;","block_context":{"text":"Games","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=21"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.raspberrypi.org\/learning\/sense-hat-minecraft-map\/images\/sense-hat-minecraft-map.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16775","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=16775"}],"version-history":[{"count":2,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16775\/revisions"}],"predecessor-version":[{"id":16778,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/16775\/revisions\/16778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/media\/16776"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}