{"id":861,"date":"2020-12-24T13:49:27","date_gmt":"2020-12-24T13:49:27","guid":{"rendered":"http:\/\/www.igfasouza.com\/blog\/?p=861"},"modified":"2021-04-27T11:04:37","modified_gmt":"2021-04-27T10:04:37","slug":"raspberry-christmas-hat","status":"publish","type":"post","link":"http:\/\/www.igfasouza.com\/blog\/raspberry-christmas-hat\/","title":{"rendered":"Raspberry Christmas Hat"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat.jpg\" alt=\"\" width=\"1511\" height=\"478\" class=\"alignnone size-full wp-image-862\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat.jpg 1511w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat-300x95.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat-768x243.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat-1024x324.jpg 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Christmas-hat-624x197.jpg 624w\" sizes=\"auto, (max-width: 1511px) 100vw, 1511px\" \/><\/p>\n<p><b>What\u2019s the story Rory?<\/b><\/p>\n<p>Today I want to show some Christmas project ideas using Hats. Yes, another blog about Raspberry PI.<\/p>\n<p>Thanks to their GPIO headers, most Pi computers can connect to devices called HATs, which stands for Hardware Attached on Top.<\/p>\n<p>Theses are the Hats that I have and they came from <a href=\"https:\/\/thepihut.com\/\" rel=\"noopener\" target=\"_blank\">ThePiHut<\/a><\/p>\n<p><b>Christmas Tree Programmable Kit<\/b> &#8211; <a href=\"https:\/\/thepihut.com\/products\/christmas-tree-programmable-kit\" rel=\"noopener\" target=\"_blank\">Link<\/a><\/p>\n<p>I think this hat comes in 3 different sets, one just with white LEDs, one with just red LEDs and one with mixed white and red LEDs and you can find the Pre-soldered version as well.<br \/>\nFrom the <a href=\"https:\/\/github.com\/modmypi\/Programmable-Xmas-Tree\/blob\/master\/christmastree.py\" rel=\"noopener\" target=\"_blank\">Python API<\/a> you can get the GPIO numbers to use with PI4j<\/p>\n<div class=\"twitter-tweet\">\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\">Raspberry pi projects &#8230;. <a href=\"https:\/\/t.co\/D2RbQ2Ak9D\">pic.twitter.com\/D2RbQ2Ak9D<\/a><\/p>\n<p>&mdash; Igor Souza (@Igfasouza) <a href=\"https:\/\/twitter.com\/Igfasouza\/status\/1189459356208816128?ref_src=twsrc%5Etfw\">October 30, 2019<\/a><\/p><\/blockquote>\n<\/div>\n<p><b>SnowPi<\/b> &#8211; <a href=\"https:\/\/thepihut.com\/blogs\/raspberry-pi-tutorials\/ryanteck-snowpi-gpio-zero-guide\" rel=\"noopener\" target=\"_blank\">Link<\/a><\/p>\n<p>The SnowPi is a discontinued item, but you can find it in ThePiHut.<br \/>\nFrom the <a href=\"https:\/\/github.com\/penguintutor\/snowman\/blob\/master\/snowman.py\" rel=\"noopener\" target=\"_blank\">Python API<\/a> you can get the GPIO numbers to use with PI4j<\/p>\n<div class=\"twitter-tweet\">\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\">SnowPI <a href=\"https:\/\/twitter.com\/ThePiHut?ref_src=twsrc%5Etfw\">@ThePiHut<\/a> <a href=\"https:\/\/twitter.com\/Raspberry_Pi?ref_src=twsrc%5Etfw\">@Raspberry_Pi<\/a> <a href=\"https:\/\/t.co\/9tC4G11P9J\">pic.twitter.com\/9tC4G11P9J<\/a><\/p>\n<p>&mdash; Igor Souza (@Igfasouza) <a href=\"https:\/\/twitter.com\/Igfasouza\/status\/1158031446537310208?ref_src=twsrc%5Etfw\">August 4, 2019<\/a><\/p><\/blockquote>\n<\/div>\n<p>During 2020 there was another successful Kickstarter project for the SnowPi RGB. This is a new version of the Snowman. There is no soldering required and it now has color NeoPixels instead of single color LEDs. <\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/H4mGq4H-gSo\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p><b>3D Xmas Tree for Raspberry Pi<\/b> &#8211; <a href=\"https:\/\/thepihut.com\/products\/3d-xmas-tree-for-raspberry-pi\" rel=\"noopener\" target=\"_blank\">Link<\/a><\/p>\n<p>After a while, they release an <a href=\"https:\/\/thepihut.com\/products\/3d-rgb-xmas-tree-for-raspberry-pi\" rel=\"noopener\" target=\"_blank\">RGB version<\/a> as well. Like all the others you can find the Pre-soldered version as well.<br \/>\nFrom the code sample, you can get the GPIO numbers to use with PI4j<\/p>\n<div class=\"twitter-tweet\">\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"und\" dir=\"ltr\"><a href=\"https:\/\/t.co\/yvk3Ff3HNg\">pic.twitter.com\/yvk3Ff3HNg<\/a><\/p>\n<p>&mdash; Igor Souza (@Igfasouza) <a href=\"https:\/\/twitter.com\/Igfasouza\/status\/937832903580487682?ref_src=twsrc%5Etfw\">December 4, 2017<\/a><\/p><\/blockquote>\n<\/div>\n<p><b>Raspberry Pi Christmas Tree Star<\/b> &#8211; <a href=\"https:\/\/thepihut.com\/products\/raspberry-pi-christmas-tree-star\" rel=\"noopener\" target=\"_blank\">Link<\/a><\/p>\n<p>From the <a href=\"https:\/\/github.com\/modmypi\/Programmable-Christmas-Star\/blob\/master\/star.py\" rel=\"noopener\" target=\"_blank\">Python API<\/a> you can get the GPIO numbers to use with PI4j<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/EpEses6XUAcgqQx-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" class=\"alignnone size-medium wp-image-871\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/EpEses6XUAcgqQx-225x300.jpg 225w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/EpEses6XUAcgqQx-768x1024.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/EpEses6XUAcgqQx-624x832.jpg 624w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/EpEses6XUAcgqQx.jpg 1536w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/p>\n<p>The idea here is that all hats are just boards with some LEDs, and this makes the project like an electronics project for blinking LEDs.<br \/>\nWe can use the PWM idea, \u201cPulse Width Modulation\u201d that I already explained <a href=\"http:\/\/www.igfasouza.com\/blog\/raspberry-pi-servo-java-duke-robot\/\" rel=\"noopener\" target=\"_blank\">here<\/a>, but let me explain from the LEDs perspective.<\/p>\n<p>From <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pulse-width_modulation\" rel=\"noopener\" target=\"_blank\">Wikipedia<\/a><\/p>\n<blockquote><p>The term duty cycle describes the proportion of &#8216;on&#8217; time to the regular interval or &#8216;period&#8217; of time; a low duty cycle corresponds to low power because the power is off for most of the time. Duty cycle is expressed in percent, 100% being fully on. When a digital signal is on half of the time and off the other half of the time, the digital signal has a duty cycle of 50% and resembles a &#8220;square&#8221; wave. When a digital signal spends more time in the on state than the off state, it has a duty cycle of >50%. When a digital signal spends more time in the off state than the on state, it has a duty cycle of <50%. Here is a pictorial that illustrates these three scenarios. <\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Duty_Cycle_Examples.png\" alt=\"\" width=\"542\" height=\"342\" class=\"alignnone size-full wp-image-863\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Duty_Cycle_Examples.png 542w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Duty_Cycle_Examples-300x189.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>You can find examples and samples for all Hats in Python, but because I support the <a href=\"https:\/\/twitter.com\/hashtag\/JavaOnRaspberryPi\" rel=\"noopener\" target=\"_blank\">#JavaOnRaspberryPi<\/a> idea, let\u2019s see how to use them with Java.<br \/>\nRemember to use the hashtag #JavaOnRaspberryPi on Twitter to show the world Raspberry Pi with Java.<\/p>\n<p><b>PI4J<\/b><br \/>\nYou can check my post to start with <a href=\"http:\/\/www.igfasouza.com\/blog\/7-segment-display\/\" rel=\"noopener\" target=\"_blank\">PI4J<\/a> but for these hats what you need to understand is the <a href=\"https:\/\/github.com\/Pi4J\/pi4j\/blob\/master\/pi4j-example\/src\/main\/java\/PwmExample.java\" rel=\"noopener\" target=\"_blank\">Pwm Example<\/a><\/p>\n<div class=\"codecolorer-container java blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"java codecolorer\">com.<span class=\"me1\">pi4j<\/span>.<span class=\"me1\">wiringpi<\/span>.<span class=\"me1\">Gpio<\/span>.<span class=\"me1\">pwmSetMode<\/span><span class=\"br0\">&#40;<\/span>com.<span class=\"me1\">pi4j<\/span>.<span class=\"me1\">wiringpi<\/span>.<span class=\"me1\">Gpio<\/span>.<span class=\"me1\">PWM_MODE_MS<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\ncom.<span class=\"me1\">pi4j<\/span>.<span class=\"me1\">wiringpi<\/span>.<span class=\"me1\">Gpio<\/span>.<span class=\"me1\">pwmSetRange<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">100<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\ncom.<span class=\"me1\">pi4j<\/span>.<span class=\"me1\">wiringpi<\/span>.<span class=\"me1\">Gpio<\/span>.<span class=\"me1\">pwmSetClock<\/span><span class=\"br0\">&#40;<\/span><span class=\"nu0\">500<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>The idea is that \u201csetPwm()\u201d can be 0, to turn off, 100, to turn on and any value between 0 and 100 to create a fade.<\/p>\n<div class=\"codecolorer-container java blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"java codecolorer\">setPwm<span class=\"br0\">&#40;<\/span><span class=\"nu0\">0<\/span><span class=\"br0\">&#41;<\/span><br \/>\nsetPwm<span class=\"br0\">&#40;<\/span><span class=\"nu0\">100<\/span><span class=\"br0\">&#41;<\/span><br \/>\nsetPwm<span class=\"br0\">&#40;<\/span>value<span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Now you can not just turn on and off, but you can also pulse, blink and add a fade effect.<\/p>\n<p>Here is my forest project from 2018.<\/p>\n<blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-permalink=\"https:\/\/www.instagram.com\/p\/B6eH44WBFoV\/?utm_source=ig_embed&amp;utm_campaign=loading\" data-instgrm-version=\"13\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\">\n<div style=\"padding:16px;\"> <a href=\"https:\/\/www.instagram.com\/p\/B6eH44WBFoV\/?utm_source=ig_embed&amp;utm_campaign=loading\" style=\" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;\" target=\"_blank\" rel=\"noopener\"> <\/p>\n<div style=\" display: flex; flex-direction: row; align-items: center;\">\n<div style=\"background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;\"><\/div>\n<div style=\"display: flex; flex-direction: column; flex-grow: 1; justify-content: center;\">\n<div style=\" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 100px;\"><\/div>\n<div style=\" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 60px;\"><\/div>\n<\/div>\n<\/div>\n<div style=\"padding: 19% 0;\"><\/div>\n<div style=\"display:block; height:50px; margin:0 auto 12px; width:50px;\"><svg width=\"50px\" height=\"50px\" viewBox=\"0 0 60 60\" version=\"1.1\" xmlns=\"https:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"https:\/\/www.w3.org\/1999\/xlink\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g transform=\"translate(-511.000000, -20.000000)\" fill=\"#000000\"><g><path d=\"M556.869,30.41 C554.814,30.41 553.148,32.076 553.148,34.131 C553.148,36.186 554.814,37.852 556.869,37.852 C558.924,37.852 560.59,36.186 560.59,34.131 C560.59,32.076 558.924,30.41 556.869,30.41 M541,60.657 C535.114,60.657 530.342,55.887 530.342,50 C530.342,44.114 535.114,39.342 541,39.342 C546.887,39.342 551.658,44.114 551.658,50 C551.658,55.887 546.887,60.657 541,60.657 M541,33.886 C532.1,33.886 524.886,41.1 524.886,50 C524.886,58.899 532.1,66.113 541,66.113 C549.9,66.113 557.115,58.899 557.115,50 C557.115,41.1 549.9,33.886 541,33.886 M565.378,62.101 C565.244,65.022 564.756,66.606 564.346,67.663 C563.803,69.06 563.154,70.057 562.106,71.106 C561.058,72.155 560.06,72.803 558.662,73.347 C557.607,73.757 556.021,74.244 553.102,74.378 C549.944,74.521 548.997,74.552 541,74.552 C533.003,74.552 532.056,74.521 528.898,74.378 C525.979,74.244 524.393,73.757 523.338,73.347 C521.94,72.803 520.942,72.155 519.894,71.106 C518.846,70.057 518.197,69.06 517.654,67.663 C517.244,66.606 516.755,65.022 516.623,62.101 C516.479,58.943 516.448,57.996 516.448,50 C516.448,42.003 516.479,41.056 516.623,37.899 C516.755,34.978 517.244,33.391 517.654,32.338 C518.197,30.938 518.846,29.942 519.894,28.894 C520.942,27.846 521.94,27.196 523.338,26.654 C524.393,26.244 525.979,25.756 528.898,25.623 C532.057,25.479 533.004,25.448 541,25.448 C548.997,25.448 549.943,25.479 553.102,25.623 C556.021,25.756 557.607,26.244 558.662,26.654 C560.06,27.196 561.058,27.846 562.106,28.894 C563.154,29.942 563.803,30.938 564.346,32.338 C564.756,33.391 565.244,34.978 565.378,37.899 C565.522,41.056 565.552,42.003 565.552,50 C565.552,57.996 565.522,58.943 565.378,62.101 M570.82,37.631 C570.674,34.438 570.167,32.258 569.425,30.349 C568.659,28.377 567.633,26.702 565.965,25.035 C564.297,23.368 562.623,22.342 560.652,21.575 C558.743,20.834 556.562,20.326 553.369,20.18 C550.169,20.033 549.148,20 541,20 C532.853,20 531.831,20.033 528.631,20.18 C525.438,20.326 523.257,20.834 521.349,21.575 C519.376,22.342 517.703,23.368 516.035,25.035 C514.368,26.702 513.342,28.377 512.574,30.349 C511.834,32.258 511.326,34.438 511.181,37.631 C511.035,40.831 511,41.851 511,50 C511,58.147 511.035,59.17 511.181,62.369 C511.326,65.562 511.834,67.743 512.574,69.651 C513.342,71.625 514.368,73.296 516.035,74.965 C517.703,76.634 519.376,77.658 521.349,78.425 C523.257,79.167 525.438,79.673 528.631,79.82 C531.831,79.965 532.853,80.001 541,80.001 C549.148,80.001 550.169,79.965 553.369,79.82 C556.562,79.673 558.743,79.167 560.652,78.425 C562.623,77.658 564.297,76.634 565.965,74.965 C567.633,73.296 568.659,71.625 569.425,69.651 C570.167,67.743 570.674,65.562 570.82,62.369 C570.966,59.17 571,58.147 571,50 C571,41.851 570.966,40.831 570.82,37.631\"><\/path><\/g><\/g><\/g><\/svg><\/div>\n<div style=\"padding-top: 8px;\">\n<div style=\" color:#3897f0; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:550; line-height:18px;\"> View this post on Instagram<\/div>\n<\/div>\n<div style=\"padding: 12.5% 0;\"><\/div>\n<div style=\"display: flex; flex-direction: row; margin-bottom: 14px; align-items: center;\">\n<div>\n<div style=\"background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(0px) translateY(7px);\"><\/div>\n<div style=\"background-color: #F4F4F4; height: 12.5px; transform: rotate(-45deg) translateX(3px) translateY(1px); width: 12.5px; flex-grow: 0; margin-right: 14px; margin-left: 2px;\"><\/div>\n<div style=\"background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(9px) translateY(-18px);\"><\/div>\n<\/div>\n<div style=\"margin-left: 8px;\">\n<div style=\" background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 20px; width: 20px;\"><\/div>\n<div style=\" width: 0; height: 0; border-top: 2px solid transparent; border-left: 6px solid #f4f4f4; border-bottom: 2px solid transparent; transform: translateX(16px) translateY(-4px) rotate(30deg)\"><\/div>\n<\/div>\n<div style=\"margin-left: auto;\">\n<div style=\" width: 0px; border-top: 8px solid #F4F4F4; border-right: 8px solid transparent; transform: translateY(16px);\"><\/div>\n<div style=\" background-color: #F4F4F4; flex-grow: 0; height: 12px; width: 16px; transform: translateY(-4px);\"><\/div>\n<div style=\" width: 0; height: 0; border-top: 8px solid #F4F4F4; border-left: 8px solid transparent; transform: translateY(-4px) translateX(8px);\"><\/div>\n<\/div>\n<\/div>\n<div style=\"display: flex; flex-direction: column; flex-grow: 1; justify-content: center; margin-bottom: 24px;\">\n<div style=\" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 224px;\"><\/div>\n<div style=\" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 144px;\"><\/div>\n<\/div>\n<p><\/a><\/p>\n<p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\"><a href=\"https:\/\/www.instagram.com\/p\/B6eH44WBFoV\/?utm_source=ig_embed&amp;utm_campaign=loading\" style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none;\" target=\"_blank\" rel=\"noopener\">A post shared by igfasouza (@igfasouza)<\/a><\/p>\n<\/div>\n<\/blockquote>\n<p> <script async src=\"\/\/www.instagram.com\/embed.js\"><\/script><\/p>\n<p>Of course, you can do some Christmas ideas with any other hat.<\/p>\n<p><b>Sensehat<\/b> <a href=\"http:\/\/www.igfasouza.com\/blog\/sense-hat\/\" rel=\"noopener\" target=\"_blank\">http:\/\/www.igfasouza.com\/blog\/sense-hat\/<\/a><\/p>\n<p>You can create your Christmas tree using my <a href=\"http:\/\/www.igfasouza.com\/blog\/micronaut-velocity-with-raspberry-pi\/\" rel=\"noopener\" target=\"_blank\">Micronaut example<\/a>. <a href=\"https:\/\/github.com\/igfasouza\/micronaut-velocity-8x8-led-matrix-sense-hat\/blob\/master\/src\/main\/java\/example\/micronaut\/LedController.java\" rel=\"noopener\" target=\"_blank\">GitHub<\/a> Or just using <a href=\"https:\/\/github.com\/cinci\/rpi-sense-hat-java\" rel=\"noopener\" target=\"_blank\">this<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210745306-300x226.jpg\" alt=\"\" width=\"300\" height=\"226\" class=\"alignnone size-medium wp-image-877\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210745306-300x226.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210745306-768x579.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210745306-1024x772.jpg 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210745306-624x470.jpg 624w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055-300x260.jpg\" alt=\"\" width=\"300\" height=\"260\" class=\"alignnone size-medium wp-image-878\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055-300x260.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055-768x665.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055-1024x886.jpg 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055-624x540.jpg 624w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201223_210803055.jpg 2004w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/dgirbrPHxwM\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p><b>E-ink display<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032.jpg\" alt=\"\" width=\"1926\" height=\"1234\" class=\"alignnone size-full wp-image-864\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032.jpg 1926w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032-300x192.jpg 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032-768x492.jpg 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032-1024x656.jpg 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/PXL_20201221_1607435032-624x400.jpg 624w\" sizes=\"auto, (max-width: 1926px) 100vw, 1926px\" \/><\/p>\n<p>I know that <a href=\"https:\/\/shop.4tronix.co.uk\/\" rel=\"noopener\" target=\"_blank\">4tronix<\/a> has some Christmas Micro Bit hats and people did some hack around to use with a Raspberry PI, But If you know any other Christmas Hat, please let me know in the comments.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52.png\" alt=\"\" width=\"1596\" height=\"758\" class=\"alignnone size-full wp-image-865\" srcset=\"http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52.png 1596w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52-300x142.png 300w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52-768x365.png 768w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52-1024x486.png 1024w, http:\/\/www.igfasouza.com\/blog\/wp-content\/uploads\/2020\/12\/Screenshot-2020-12-24-at-12.18.52-624x296.png 624w\" sizes=\"auto, (max-width: 1596px) 100vw, 1596px\" \/><\/p>\n<p>As a good developer, I always get confused about Christmas and Halloween as 25 Dec is equal to 31 Oct<\/p>\n<p><b>PumpkinPi<\/b> <a href=\"https:\/\/thepihut.com\/products\/halloween-pumpkinpi-for-raspberry-pi\" rel=\"noopener\" target=\"_blank\">https:\/\/thepihut.com\/products\/halloween-pumpkinpi-for-raspberry-pi<\/a><\/p>\n<div class=\"twitter-tweet\">\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\">Christmas and Halloween<\/p>\n<p>25 Dec = 31 Oct<a href=\"https:\/\/twitter.com\/ThePiHut?ref_src=twsrc%5Etfw\">@ThePiHut<\/a> <a href=\"https:\/\/t.co\/6Tnecmmowp\">pic.twitter.com\/6Tnecmmowp<\/a><\/p>\n<p>&mdash; Igor Souza (@Igfasouza) <a href=\"https:\/\/twitter.com\/Igfasouza\/status\/1192185981757263873?ref_src=twsrc%5Etfw\">November 6, 2019<\/a><\/p><\/blockquote>\n<\/div>\n<p>Some other Christmas ideas<br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/blog\/tag\/christmas\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.raspberrypi.org\/blog\/tag\/christmas\/<\/a><\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/ngxgPA5S_iM\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/bVBRCSQR_Go\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What\u2019s the story Rory? Today I want to show some Christmas project ideas using Hats. Yes, another blog about Raspberry PI. Thanks to their GPIO headers, most Pi computers can connect to devices called HATs, which stands for Hardware Attached&hellip; <a href=\"http:\/\/www.igfasouza.com\/blog\/raspberry-christmas-hat\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":862,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[17,21,13],"class_list":["post-861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi","tag-java","tag-pi4j","tag-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/comments?post=861"}],"version-history":[{"count":12,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/861\/revisions"}],"predecessor-version":[{"id":1210,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/posts\/861\/revisions\/1210"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/media\/862"}],"wp:attachment":[{"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/media?parent=861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/categories?post=861"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.igfasouza.com\/blog\/wp-json\/wp\/v2\/tags?post=861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}