{"id":7023,"date":"2026-04-30T17:17:19","date_gmt":"2026-04-30T15:17:19","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=7023"},"modified":"2026-04-30T17:22:57","modified_gmt":"2026-04-30T15:22:57","slug":"tinygpu-for-arduino","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/","title":{"rendered":"TinyGPU for Arduino"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">I recently needed to add SLAM visualization to QGroundControl. The plan: render a map using a simple graphics library, then encode the output via H.265. That\u2019s how I stumbled into writing <strong>TinyGPU<\/strong>\u2014and it quickly became my new favorite tool for lightweight embedded graphics.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">TinyGPU is a lightweight, header-only C++ library for Arduino that handles <strong>RGB565 graphics<\/strong>, <strong>sprites<\/strong>, and even <strong>basic 3D wireframes<\/strong> on small screens.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Makes TinyGPU Different?<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Most Arduino graphics libraries try to do everything\u2014drive displays, manage fonts, handle touch input. TinyGPU takes a smarter, more modular approach: it\u2019s an <strong>in-memory rendering layer<\/strong>.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Here\u2019s the flow:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>You render graphics, text, or sprites into an RGB565 memory buffer.<\/li>\r\n\r\n\r\n\r\n<li>You forward that finished pixel data to your own hardware-specific output code.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That\u2019s it. <strong>TinyGPU never argues with your display driver<\/strong>\u2014it just works. You keep full control over how final pixels are pushed to your screen.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Feature Highlights<\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">1. Multiple Color Spaces (Not Just RGB565)<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">RGB565 is the star\u2014compact 16-bit color balancing quality and memory usage\u2014but TinyGPU also supports <strong>RGB666, RGB888, and Monochrome<\/strong>. That level of flexibility is rare and very welcome.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">2. 2D Primitives Done Right<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Lines, rectangles, circles, plus <strong>bitmap font rendering<\/strong> with wrapped line printing. For a lightweight library, the typography support feels surprisingly robust.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">3. Sprite Superpowers<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can add, move, scale, and rotate sprites, complete with sprite-aware framebuffer management. For UI work or simple game animations, it\u2019s a joy to use.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">4. Basic 3D Wireframe Rendering<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Yes, you read that correctly. TinyGPU includes:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>3D transforms<\/li>\r\n\r\n\r\n\r\n<li>Camera and view matrix<\/li>\r\n\r\n\r\n\r\n<li>Perspective and orthographic projection<\/li>\r\n\r\n\r\n\r\n<li>Minimal depth-buffered line rendering<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">I didn\u2019t expect to render a spinning 3D cube on an ESP32 with a tiny TFT\u2014but here we are. It\u2019s obviously not a full 3D engine, but for visualizations, demos, or just impressing friends, it\u2019s remarkably fun.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">5. BMP File Support<\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Load and save BMP data directly. If you\u2019re working with offline assets or want to capture screenshots from your device, this feature is a lifesaver.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\r\n\r\n\r\n<h2><strong>Further Information<\/strong><\/h2>\r\n<p class=\"wp-block-paragraph\">Check out <a href=\"https:\/\/github.com\/pschatzmann\/TinyGPU.git\">the project on GitHub!<\/a><br \/><br \/><\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>","protected":false},"excerpt":{"rendered":"<p>I recently needed to add SLAM visualization to QGroundControl. The plan: render a map using a simple graphics library, then encode the output via H.265. That\u2019s how I stumbled into writing TinyGPU\u2014and it quickly became my new favorite tool for lightweight embedded graphics. TinyGPU is a lightweight, header-only C++ library [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7027,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-7023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TinyGPU for Arduino - Phil Schatzmann<\/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.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TinyGPU for Arduino - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"I recently needed to add SLAM visualization to QGroundControl. The plan: render a map using a simple graphics library, then encode the output via H.265. That\u2019s how I stumbled into writing TinyGPU\u2014and it quickly became my new favorite tool for lightweight embedded graphics. TinyGPU is a lightweight, header-only C++ library [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-30T15:17:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-30T15:22:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"225\" \/>\n\t<meta property=\"og:image:height\" content=\"225\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"TinyGPU for Arduino\",\"datePublished\":\"2026-04-30T15:17:19+00:00\",\"dateModified\":\"2026-04-30T15:22:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/\"},\"wordCount\":348,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/tinygpu.png\",\"articleSection\":[\"Arduino\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/\",\"name\":\"TinyGPU for Arduino - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/tinygpu.png\",\"datePublished\":\"2026-04-30T15:17:19+00:00\",\"dateModified\":\"2026-04-30T15:22:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/tinygpu.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/tinygpu.png\",\"width\":225,\"height\":225},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2026\\\/04\\\/30\\\/tinygpu-for-arduino\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TinyGPU for Arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TinyGPU for Arduino - Phil Schatzmann","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.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/","og_locale":"en_US","og_type":"article","og_title":"TinyGPU for Arduino - Phil Schatzmann","og_description":"I recently needed to add SLAM visualization to QGroundControl. The plan: render a map using a simple graphics library, then encode the output via H.265. That\u2019s how I stumbled into writing TinyGPU\u2014and it quickly became my new favorite tool for lightweight embedded graphics. TinyGPU is a lightweight, header-only C++ library [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/","og_site_name":"Phil Schatzmann","article_published_time":"2026-04-30T15:17:19+00:00","article_modified_time":"2026-04-30T15:22:57+00:00","og_image":[{"width":225,"height":225,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png","type":"image\/png"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"TinyGPU for Arduino","datePublished":"2026-04-30T15:17:19+00:00","dateModified":"2026-04-30T15:22:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/"},"wordCount":348,"commentCount":0,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png","articleSection":["Arduino"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/","url":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/","name":"TinyGPU for Arduino - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png","datePublished":"2026-04-30T15:17:19+00:00","dateModified":"2026-04-30T15:22:57+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2026\/04\/tinygpu.png","width":225,"height":225},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2026\/04\/30\/tinygpu-for-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"TinyGPU for Arduino"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/7023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=7023"}],"version-history":[{"count":5,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/7023\/revisions"}],"predecessor-version":[{"id":7030,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/7023\/revisions\/7030"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/7027"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=7023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=7023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=7023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}