flygfarkost [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10257 Raspberry display driver (ssd1351) <img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/10257/dd_jelpi.jpg" width=1938 height=2418 alt="" /> <p>I got an idea the other day to write a display driver in pico8 using the GPIO pins and here it is. The cart replaces the flip() function with a custom one that writes the pico8 frame buffer to a connected display (with a ssd1351 controller) over <a href="https://en.wikipedia.org/wiki/Serial_Peripheral_Interface">SPI</a> using the GPIO pins on a Raspberry Pi. Turns out that it actually works :)</p> <p>I use <a href="https://www.adafruit.com/product/1431">this display/controller board from Adafruit</a></p> <p>Emulating SPI over the GPIO pins seems to be quite slow however and it takes about 5 seconds to render a single frame. I believe that if zep exposes the <a href="http://wiringpi.com/reference/spi-library/">hardware SPI functionality of wiringPi</a> in addition to the GPIO pins it would run in real time. You can try commenting out the first line in spi_write_n() to &quot;emulate&quot; hardware SPI (with DD_ENABLE=TRUE).</p> <p>Instructions are included in the cart if you would like to try it at home. Remember to enable GPIO pins on the RPi first and running pico8 as super user (&quot;sudo ./pico8&quot;)</p> <p>Wishlist:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> * hardware spi (example: spi8(byte), spi32(four_bytes), spi(0x6000,8192) -- from memory) * delay functionality (like Arduino's delayMicros()) </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p> <table><tr><td> <a href="/bbs/?pid=55885#p"> <img src="/bbs/thumbs/pico55884.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=55885#p"> Display Driver (SSD1351)</a><br><br> by <a href="/bbs/?uid=10257"> flygfarkost</a> <br><br><br> <a href="/bbs/?pid=55885#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=31768 https://www.lexaloffle.com/bbs/?tid=31768 Thu, 30 Aug 2018 06:00:58 UTC mail-monster (LD33) <p> <table><tr><td> <a href="/bbs/?pid=13106#p"> <img src="/bbs/thumbs/pico13105.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=13106#p"> mail-monster 0.1</a><br><br> by <a href="/bbs/?uid=10257"> flygfarkost</a> <br><br><br> <a href="/bbs/?pid=13106#p"> [Click to Play]</a> </td></tr></table> </p> <p>Here is my LUDUMDARE33 jam entry. Everything was made from scratch and in less than 48 hours but I couldn't schedule my weekend well enough so I had to submit it to the jam.</p> <p>You are the mail monster, pick up the mail without ruining the whole town! (You get a time penalty if you happen to destroy anything)</p> <p>ARROWS TO MOVE+C TO JUMP</p> <p>Here is the LD page: <a href="http://ludumdare.com/compo/ludum-dare-33/?action=preview&amp;uid=290">http://ludumdare.com/compo/ludum-dare-33/?action=preview&amp;uid=290</a></p> https://www.lexaloffle.com/bbs/?tid=2333 https://www.lexaloffle.com/bbs/?tid=2333 Mon, 24 Aug 2015 20:41:40 UTC