{"id":2086,"date":"2026-03-04T00:13:06","date_gmt":"2026-03-03T16:13:06","guid":{"rendered":"https:\/\/xujiwei.com\/blog\/?p=2086"},"modified":"2026-03-04T00:13:06","modified_gmt":"2026-03-03T16:13:06","slug":"esp32-oled-streaming-dithering","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/","title":{"rendered":"\u8ba9\u4e32\u6d41\u5c0f\u7535\u89c6\u66f4\u5b9e\u7528\uff0c\u901a\u8fc7\u6296\u52a8\u5b9e\u73b0 4 \u9636\u7070\u5ea6\u56fe\u50cf\u663e\u793a"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e49ec361f6d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e49ec361f6d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E5%89%8D%E8%A8%80%E3%80%81%E5%85%88%E7%9C%8B%E6%95%88%E6%9E%9C%E5%AF%B9%E6%AF%94\" title=\"\u524d\u8a00\u3001\u5148\u770b\u6548\u679c\u5bf9\u6bd4\">\u524d\u8a00\u3001\u5148\u770b\u6548\u679c\u5bf9\u6bd4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E4%B8%80%E3%80%81%E9%BB%91%E7%99%BD%E4%B8%96%E7%95%8C%E7%9A%84%E8%89%B2%E5%BD%A9%E6%83%B3%E8%B1%A1\" title=\"\u4e00\u3001\u9ed1\u767d\u4e16\u754c\u7684\u8272\u5f69\u60f3\u8c61\">\u4e00\u3001\u9ed1\u767d\u4e16\u754c\u7684\u8272\u5f69\u60f3\u8c61<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E4%BA%8C%E3%80%81%E4%BB%80%E4%B9%88%E6%98%AF%E6%8A%96%E5%8A%A8_Dithering%EF%BC%9F\" title=\"\u4e8c\u3001\u4ec0\u4e48\u662f\u6296\u52a8 (Dithering)\uff1f\">\u4e8c\u3001\u4ec0\u4e48\u662f\u6296\u52a8 (Dithering)\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E4%B8%89%E3%80%814_%E9%98%B6%E7%81%B0%E5%BA%A6%EF%BC%9A%E4%BB%8E%E7%BA%AF%E9%BB%91%E5%88%B0%E7%BA%AF%E7%99%BD\" title=\"\u4e09\u30014 \u9636\u7070\u5ea6\uff1a\u4ece\u7eaf\u9ed1\u5230\u7eaf\u767d\">\u4e09\u30014 \u9636\u7070\u5ea6\uff1a\u4ece\u7eaf\u9ed1\u5230\u7eaf\u767d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E5%9B%9B%E3%80%81%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86%EF%BC%9A%E7%82%B9%E9%98%B5%E7%9A%84%E5%B7%A7%E5%A6%99%E7%BB%84%E5%90%88\" title=\"\u56db\u3001\u5b9e\u73b0\u539f\u7406\uff1a\u70b9\u9635\u7684\u5de7\u5999\u7ec4\u5408\">\u56db\u3001\u5b9e\u73b0\u539f\u7406\uff1a\u70b9\u9635\u7684\u5de7\u5999\u7ec4\u5408<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E4%BA%94%E3%80%81%E6%8A%96%E5%8A%A8%E7%AE%97%E6%B3%95%EF%BC%9A%E8%AF%AF%E5%B7%AE%E6%89%A9%E6%95%A3%E6%8A%96%E5%8A%A8\" title=\"\u4e94\u3001\u6296\u52a8\u7b97\u6cd5\uff1a\u8bef\u5dee\u6269\u6563\u6296\u52a8\">\u4e94\u3001\u6296\u52a8\u7b97\u6cd5\uff1a\u8bef\u5dee\u6269\u6563\u6296\u52a8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E5%85%AD%E3%80%81%E5%AE%9E%E9%99%85%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF\" title=\"\u516d\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f\">\u516d\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E4%B8%83%E3%80%81%E6%80%BB%E7%BB%93\" title=\"\u4e03\u3001\u603b\u7ed3\">\u4e03\u3001\u603b\u7ed3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\" title=\"\u53c2\u8003\u8d44\u6599\">\u53c2\u8003\u8d44\u6599<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E5%89%8D%E8%A8%80%E3%80%81%E5%85%88%E7%9C%8B%E6%95%88%E6%9E%9C%E5%AF%B9%E6%AF%94\"><\/span>\u524d\u8a00\u3001\u5148\u770b\u6548\u679c\u5bf9\u6bd4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>\u4e8c\u503c\u5316\u9ed1\u767d\u56fe\u50cf\u5c55\u793a<\/strong><\/p>\n<div style=\"width: 320px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-2086-1\" width=\"320\" height=\"640\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/ESP32-OLED\u4e32\u6d41\u6f14\u793a.mp4?_=1\" \/><a href=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/ESP32-OLED\u4e32\u6d41\u6f14\u793a.mp4\">https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/ESP32-OLED\u4e32\u6d41\u6f14\u793a.mp4<\/a><\/video><\/div>\n<p><strong>\u7070\u5ea6\u6296\u52a8\u56fe\u50cf\u5c55\u793a<\/strong><\/p>\n<div style=\"width: 480px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2086-2\" width=\"480\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/\u4e32\u6d41\u7070\u5ea6\u6296\u52a8\u6f14\u793a-xhs.mp4?_=2\" \/><a href=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/\u4e32\u6d41\u7070\u5ea6\u6296\u52a8\u6f14\u793a-xhs.mp4\">https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/03\/\u4e32\u6d41\u7070\u5ea6\u6296\u52a8\u6f14\u793a-xhs.mp4<\/a><\/video><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E4%B8%80%E3%80%81%E9%BB%91%E7%99%BD%E4%B8%96%E7%95%8C%E7%9A%84%E8%89%B2%E5%BD%A9%E6%83%B3%E8%B1%A1\"><\/span>\u4e00\u3001\u9ed1\u767d\u4e16\u754c\u7684\u8272\u5f69\u60f3\u8c61<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e4b\u524d\u4f7f\u7528 ESP32-S3 + 12864 OLED \u505a\u4e86\u4e2a\u4e32\u6d41\u5c0f\u7535\u89c6\uff08\u89c1 <a href=\"https:\/\/mp.weixin.qq.com\/s\/v-3UYNmZbrDF3_yrVfuJLg\">\u684c\u9762\u5c0f\u7535\u89c6\u65b0\u601d\u8def\uff0cESP32-S3 + 12864 OLED \u4e32\u6d41\u89c6\u9891<\/a>\uff09\uff0c\u901a\u8fc7\u7f51\u7edc\u53d1\u9001\u89c6\u9891\u5e27\u7684\u65b9\u5f0f\u6765\u64ad\u653e\u89c6\u9891\u3002<\/p>\n<p>\u56e0\u4e3a 12864 OLED \u662f\u4e00\u4e2a\u5355\u8272\u663e\u793a\u5c4f\uff0c\u56e0\u6b64\u5728\u64ad\u653e\u89c6\u9891\u65f6\uff0c\u6574\u4e2a\u753b\u9762\u7684\u989c\u8272\u901a\u8fc7<strong>\u201c\u7070\u5ea6\u5316-&gt;\u4e8c\u503c\u5316\u201d<\/strong>\u7684\u6b65\u9aa4\u6765\u751f\u6210\u9ed1\u767d\u7eaf\u8272\u753b\u9762\uff0c\u5728\u89c6\u9891\u4e2d\u53ef\u4ee5\u770b\u5230\u753b\u9762\u6ca1\u6709\u5c42\u6b21\u548c\u7ec6\u8282\uff0c\u4e0d\u592a\u5bb9\u6613\u770b\u6e05\u753b\u9762\u5185\u5bb9\u662f\u4ec0\u4e48\u3002<\/p>\n<p>\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5f15\u5165\u7070\u5ea6\u6765\u8ba9\u6574\u4e2a\u753b\u9762\u66f4\u52a0\u4e30\u5bcc\uff0c\u4f46\u662f\u5728 12864 OLED \u6ca1\u6709\u7070\u5ea6\u7684\u60c5\u51b5\u4e0b\u5982\u4f55\u663e\u793a\u7070\u5ea6\u4fe1\u606f\u5462\uff1f<\/p>\n<p>\u5728\u8fd9\u91cc\u6211\u4eec\u5c31\u53ef\u4ee5\u5f15\u5165\u4e00\u79cd\u7279\u522b\u7684\u663e\u793a\u6280\u672f\u2014\u2014<strong>\u6296\u52a8 (Dithering)<\/strong>\uff0c\u5b83\u80fd\u8ba9\u5355\u8272\u5c4f\u5e55\u62e5\u6709\u663e\u793a4\u9636\u7070\u5ea6\u7684\u80fd\u529b\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BA%8C%E3%80%81%E4%BB%80%E4%B9%88%E6%98%AF%E6%8A%96%E5%8A%A8_Dithering%EF%BC%9F\"><\/span>\u4e8c\u3001\u4ec0\u4e48\u662f\u6296\u52a8 (Dithering)\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>\u6296\u52a8<\/strong>\uff0c\u5b83\u7684\u539f\u7406\u5374\u975e\u5e38\u76f4\u89c2\uff0c\u76f8\u5f53\u4e8e\u901a\u8fc7\u5927\u8111\u5f62\u6210\u4e00\u79cd\u89c6\u89c9\u9519\u89c9\u3002<\/p>\n<p>\u5728\u5355\u8272\u5c4f\u5e55\u4e0a\uff0c\u53ea\u6709\u7eaf\u9ed1\u548c\u7eaf\u767d\u7684\u50cf\u7d20\u3002\u6296\u52a8\u7684\u6838\u5fc3\u601d\u60f3\u5c31\u662f\uff1a<strong>\u901a\u8fc7\u6539\u53d8\u50cf\u7d20\u70b9\u7684\u6392\u5e03\u5bc6\u5ea6\uff0c\u6765\u6a21\u62df\u51fa\u4e0d\u540c\u7a0b\u5ea6\u7684\u7070\u5ea6\u3002<\/strong><\/p>\n<p>\u4e3e\u4e2a\u6700\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5982\u679c\u4f60\u4ed4\u7ec6\u89c2\u5bdf\u62a5\u7eb8\u4e0a\u7684\u7167\u7247\uff0c\u4f60\u4f1a\u53d1\u73b0\u90a3\u4e9b\u201c\u7070\u8272\u201d\u7684\u90e8\u5206\uff0c\u5176\u5b9e\u662f\u7531\u8bb8\u591a\u5927\u5c0f\u4e0d\u4e00\u6216\u758f\u5bc6\u4e0d\u540c\u7684\u9ed1\u8272\u58a8\u70b9\u7ec4\u6210\u7684\u3002\u5728\u8fdc\u5904\u770b\uff0c\u8fd9\u4e9b\u58a8\u70b9\u6df7\u5408\u5728\u4e00\u8d77\uff0c\u5c31\u5f62\u6210\u4e86\u6211\u4eec\u770b\u5230\u7684\u7070\u5ea6\u3002\u65e7\u5f0f\u7684\u70b9\u9635\u6253\u5370\u673a\u4e5f\u662f\u540c\u6837\u7684\u539f\u7406\uff0c\u901a\u8fc7\u6253\u5370\u70b9\u7684\u758f\u5bc6\u6765\u8868\u73b0\u6df1\u6d45\u3002<\/p>\n<p><strong>\u6296\u52a8\u5c31\u662f\u5229\u7528\u4eba\u773c\u7684\u8fd9\u79cd\u89c6\u89c9\u6df7\u5408\u6548\u5e94\u3002<\/strong>\u5f53\u6211\u4eec\u89c2\u5bdf\u4e00\u4e2a\u7531\u8bb8\u591a\u7eaf\u9ed1\u548c\u7eaf\u767d\u50cf\u7d20\u7ec4\u6210\u7684\u533a\u57df\u65f6\uff0c\u5982\u679c\u8fd9\u4e9b\u50cf\u7d20\u975e\u5e38\u5c0f\u5e76\u4e14\u6392\u5217\u5f97\u8db3\u591f\u7d27\u5bc6\uff0c\u6211\u4eec\u7684\u5927\u8111\u5c31\u4f1a\u5c06\u8fd9\u4e9b\u9ed1\u767d\u50cf\u7d20\u7684\u6df7\u5408\u89c6\u4e3a\u4e00\u4e2a\u7edf\u4e00\u7684\u7070\u8272\u3002\u50cf\u7d20\u70b9\u8d8a\u5bc6\uff0c\u770b\u8d77\u6765\u5c31\u8d8a\u9ed1\uff1b\u50cf\u7d20\u70b9\u8d8a\u7a00\u758f\uff0c\u770b\u8d77\u6765\u5c31\u8d8a\u767d\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%B8%89%E3%80%814_%E9%98%B6%E7%81%B0%E5%BA%A6%EF%BC%9A%E4%BB%8E%E7%BA%AF%E9%BB%91%E5%88%B0%E7%BA%AF%E7%99%BD\"><\/span>\u4e09\u30014 \u9636\u7070\u5ea6\uff1a\u4ece\u7eaf\u9ed1\u5230\u7eaf\u767d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u6211\u4eec\u901a\u5e38\u8bf4\u7684\u7070\u5ea6\uff0c\u53ef\u4ee5\u6709 256 \u7ea7\uff0c\u751a\u81f3\u66f4\u591a\u3002\u4f46\u662f\u901a\u8fc7\u6296\u52a8\u6a21\u62df\u51fa\u7684\u7070\u5ea6\uff0c\u5176\u5b9e\u662f<strong>\u727a\u7272\u4e86\u6709\u6548\u5206\u8fa8\u7387<\/strong>\u6362\u6765\u7684\u3002<\/p>\n<p>\u5bf9\u4e8e 12864 OLED \u6765\u8bf4\uff0c\u539f\u751f\u7684\u9ed1\u767d\u5206\u8fa8\u7387\u662f 128x64\uff0c\u901a\u8fc7 2x2 \u7684\u70b9\u9635\u6296\u52a8\u6765\u5b9e\u73b0\u7070\u5ea6\u65f6\uff0c<strong>\u5b9e\u9645\u6709\u6548\u5206\u8fa8\u7387\u53ef\u4ee5\u7b49\u540c\u4e8e 64x32<\/strong>\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u8981\u5b9e\u73b0\u66f4\u591a\u7ea7\u7684\u7070\u5ea6\uff0c\u4f1a\u4e25\u91cd\u635f\u5931\u753b\u9762\u5185\u5bb9\uff0c\u800c 4 \u9636\u7070\u5ea6\uff0c\u5374\u662f\u4e00\u4e2a\u5728\u6709\u9650\u8d44\u6e90\u4e0b\uff0c\u65e2\u80fd\u6709\u6548\u63d0\u5347\u663e\u793a\u6548\u679c\uff0c\u53c8\u76f8\u5bf9\u5bb9\u6613\u5b9e\u73b0\u7684\u6298\u8877\u65b9\u6848\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u8fd9 4 \u9636\u7070\u5ea6\u5177\u4f53\u6307\u4ec0\u4e48\u5462\uff1f\u5b83\u4eec\u901a\u5e38\u4ee3\u8868\u4ee5\u4e0b\u56db\u79cd\u4eae\u5ea6\u7b49\u7ea7\uff1a<\/p>\n<ul>\n<li><strong>0% \u4eae\u5ea6\uff1a<\/strong> \u7eaf\u9ed1\u8272<\/li>\n<li><strong>33% \u4eae\u5ea6\uff1a<\/strong> \u8f83\u6df1\u7684\u7070\u8272<\/li>\n<li><strong>66% \u4eae\u5ea6\uff1a<\/strong> \u8f83\u6d45\u7684\u7070\u8272<\/li>\n<li><strong>100% \u4eae\u5ea6\uff1a<\/strong> \u7eaf\u767d\u8272<\/li>\n<\/ul>\n<p>\u7eaf\u9ed1\u548c\u7eaf\u767d\u662f\u5355\u8272\u5c4f\u5e55\u7684\u672c\u8272\uff0c\u53ef\u4ee5\u76f4\u63a5\u663e\u793a\u3002\u4f46\u4ecb\u4e8e\u4e24\u8005\u4e4b\u95f4\u7684\u201c\u8f83\u6df1\u7684\u7070\u8272\u201d\u548c\u201c\u8f83\u6d45\u7684\u7070\u8272\u201d\u8981\u5982\u4f55\u5448\u73b0\u5462\uff1f\u8fd9\u5c31\u662f\u6296\u52a8\u6280\u672f\u5927\u663e\u8eab\u624b\u7684\u5730\u65b9\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%9B%9B%E3%80%81%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86%EF%BC%9A%E7%82%B9%E9%98%B5%E7%9A%84%E5%B7%A7%E5%A6%99%E7%BB%84%E5%90%88\"><\/span>\u56db\u3001\u5b9e\u73b0\u539f\u7406\uff1a\u70b9\u9635\u7684\u5de7\u5999\u7ec4\u5408<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u4e0d\u518d\u628a\u4e00\u4e2a\u50cf\u7d20\u770b\u4f5c\u4e00\u4e2a\u72ec\u7acb\u7684\u70b9\uff0c\u800c\u662f\u5c06\u51e0\u4e2a\u50cf\u7d20\u7ec4\u5408\u6210\u4e00\u4e2a\u5fae\u5c0f\u7684\u201c\u70b9\u9635\u201d\u3002\u6700\u5e38\u7528\u4e5f\u6700\u5bb9\u6613\u7406\u89e3\u7684\u662f\u4f7f\u7528 <strong>2x2 \u7684\u70b9\u9635<\/strong>\uff0c\u4e5f\u5c31\u662f\u7531\u56db\u4e2a\u50cf\u7d20\u7ec4\u6210\u7684\u4e00\u4e2a\u5c0f\u65b9\u5757\u3002<\/p>\n<p>\u901a\u8fc7\u63a7\u5236\u8fd9\u56db\u4e2a\u50cf\u7d20\u4e2d\u54ea\u4e9b\u662f\u201c\u4eae\u201d\u7684\uff08\u767d\u8272\uff09\u548c\u54ea\u4e9b\u662f\u201c\u6697\u201d\u7684\uff08\u9ed1\u8272\uff09\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6a21\u62df\u51fa\u56db\u79cd\u4e0d\u540c\u7684\u7070\u5ea6\u7b49\u7ea7\u3002<\/p>\n<p>\u8fd9\u91cc\u662f2x2\u70b9\u9635\u7684\u56db\u79cd\u7ec4\u5408\u65b9\u5f0f\uff0c\u4ee5\u53ca\u5b83\u4eec\u6240\u4ee3\u8868\u7684\u7070\u5ea6\u7b49\u7ea7\uff1a<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/02\/oled-streaming-dithering-2.jpg\" alt=\"oled-streaming-dithering-2\" \/><\/p>\n<p>\u901a\u8fc7\u8fd9\u6837\u7684\u70b9\u9635\u7ec4\u5408\uff0c\u6211\u4eec\u7684\u773c\u775b\u5728\u4e00\u5b9a\u8ddd\u79bb\u4e0b\u89c2\u770b\u65f6\uff0c\u5c31\u4f1a\u5c06\u8fd9\u4e9b\u5fae\u5c0f\u7684\u9ed1\u767d\u70b9\u9635\u201c\u6df7\u5408\u201d\u6210\u5177\u6709\u4e0d\u540c\u7070\u5ea6\u611f\u89c9\u7684\u533a\u57df\u3002\u8fd9\u5c31\u662f\u5355\u8272\u5c4f\u5e55\u4e0a\u5b9e\u73b04\u9636\u7070\u5ea6\u7684\u57fa\u7840\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/02\/oled-streaming-dithering-3.jpg\" alt=\"oled-streaming-dithering-3\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%BA%94%E3%80%81%E6%8A%96%E5%8A%A8%E7%AE%97%E6%B3%95%EF%BC%9A%E8%AF%AF%E5%B7%AE%E6%89%A9%E6%95%A3%E6%8A%96%E5%8A%A8\"><\/span>\u4e94\u3001\u6296\u52a8\u7b97\u6cd5\uff1a\u8bef\u5dee\u6269\u6563\u6296\u52a8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u867d\u7136 2x2 \u70b9\u9635\u7684\u539f\u7406\u5f88\u7b80\u5355\uff0c\u4f46\u5982\u679c\u4ec5\u4ec5\u662f\u673a\u68b0\u5730\u5c06\u56fe\u50cf\u5212\u5206\u4e3a 2x2 \u7684\u5c0f\u5757\uff0c\u5e76\u6839\u636e\u5e73\u5747\u7070\u5ea6\u503c\u6765\u9009\u62e9\u5bf9\u5e94\u7684\u70b9\u9635\u6a21\u5f0f\uff0c\u56fe\u50cf\u770b\u8d77\u6765\u53ef\u80fd\u4f1a\u6709\u660e\u663e\u7684\u5757\u72b6\u611f\uff0c\u7ec6\u8282\u4e22\u5931\u4e25\u91cd\u3002<\/p>\n<p>\u4e3a\u4e86\u83b7\u5f97\u66f4\u81ea\u7136\u3001\u66f4\u5e73\u6ed1\u7684\u7070\u5ea6\u8fc7\u6e21\uff0c\u6211\u4eec\u9700\u8981\u66f4\u9ad8\u7ea7\u7684\u6296\u52a8\u7b97\u6cd5\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u4e14\u6548\u679c\u663e\u8457\u7684\u4e00\u79cd\u662f<strong>\u8bef\u5dee\u6269\u6563\u6296\u52a8 (Error Diffusion Dithering)<\/strong>\u3002<\/p>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u8bef\u5dee\u6269\u6563\u6296\u52a8\u4e0d\u518d\u662f\u5b64\u7acb\u5730\u5904\u7406\u6bcf\u4e2a\u50cf\u7d20\u6216\u5c0f\u70b9\u9635\uff0c\u800c\u662f\u8003\u8651\u4e86\u56fe\u50cf\u7684\u6574\u4f53\u6027\u3002\u5f53\u7b97\u6cd5\u5904\u7406\u4e00\u4e2a\u50cf\u7d20\u65f6\uff0c\u5b83\u4f1a\u9996\u5148\u5224\u65ad\u8fd9\u4e2a\u50cf\u7d20\u5e94\u8be5\u663e\u793a\u4e3a\u9ed1\u8fd8\u662f\u767d\u3002\u4f46\u5173\u952e\u5728\u4e8e\uff0c\u5982\u679c\u8fd9\u4e2a\u50cf\u7d20\u7684\u539f\u59cb\u7070\u5ea6\u503c\u4e0e\u6700\u7ec8\u9009\u62e9\u7684\u9ed1\u767d\u503c\u4e4b\u95f4\u5b58\u5728\u201c\u8bef\u5dee\u201d\uff0c\u8fd9\u4e2a\u8bef\u5dee\u5e76\u4e0d\u4f1a\u88ab\u7b80\u5355\u5730\u4e22\u5f03\uff0c\u800c\u662f\u4f1a\u88ab<strong>\u201c\u6269\u6563\u201d<\/strong>\u5230\u5b83\u5468\u56f4\u7684\u3001\u5c1a\u672a\u5904\u7406\u7684\u50cf\u7d20\u70b9\u4e0a\u3002<\/p>\n<p><strong>\u4e0b\u56fe\u662f floyd-steinberg \u5178\u578b\u8bef\u5dee\u6269\u6563\u6743\u91cd\u8bbe\u5b9a\uff1a<\/strong><\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/02\/oled-streaming-dithering-4.png\" alt=\"oled-streaming-dithering-4\" \/><\/p>\n<p>\u8fd9\u6837\u4e00\u6765\uff0c\u88ab\u6269\u6563\u7684\u8bef\u5dee\u4f1a\u5f71\u54cd\u5230\u540e\u7eed\u50cf\u7d20\u7684\u9ed1\u767d\u51b3\u7b56\uff0c\u4f7f\u5f97\u6574\u4f53\u7070\u5ea6\u5206\u5e03\u66f4\u52a0\u5747\u5300\uff0c\u89c6\u89c9\u6548\u679c\u4e5f\u66f4\u63a5\u8fd1\u539f\u59cb\u56fe\u50cf\u7684\u7070\u5ea6\u3002\u5e38\u89c1\u7684\u8bef\u5dee\u6269\u6563\u7b97\u6cd5\u6709 Floyd-Steinberg\u3001Jarvis-Judice-Ninke \u7b49\uff0c\u5b83\u4eec\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u8bef\u5dee\u6269\u6563\u7684\u6743\u91cd\u548c\u65b9\u5411\u3002<\/p>\n<p><strong>\u4e0d\u540c\u6296\u52a8\u7b97\u6cd5\u6548\u679c\u5bf9\u6bd4<\/strong><\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2026\/02\/oled-streaming-dithering-5.jpg\" alt=\"oled-streaming-dithering-5\" \/><\/p>\n<p>\u901a\u8fc7\u793a\u4f8b\u56fe\u53ef\u4ee5\u770b\u5230\uff0c\u7ecf\u8fc7\u7b97\u6cd5\u4f18\u5316\u7684\u6296\u52a8\u56fe\u50cf\uff0c\u53ef\u4ee5\u663e\u793a\u66f4\u591a\u539f\u59cb\u56fe\u50cf\u7684\u7ec6\u8282\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%85%AD%E3%80%81%E5%AE%9E%E9%99%85%E5%BA%94%E7%94%A8%E5%9C%BA%E6%99%AF\"><\/span>\u516d\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u867d\u7136\u73b0\u5728\u5927\u591a\u6570\u5e26\u5c4f\u8bbe\u5907\u5df2\u7ecf\u662f\u4f7f\u7528\u4e86\u66f4\u9ad8\u50cf\u7d20\u3001\u66f4\u591a\u8272\u5f69\u7684 LCD\uff0c\u751a\u81f3\u662f OLED \u663e\u793a\u5c4f\uff0c\u4f46\u662f\u5728\u76f8\u5f53\u591a\u7684\u9886\u57df\uff0c\u8fd8\u662f\u4f1a\u6709\u5355\u8272\u5c4f\u5728\u4f7f\u7528\u3002<\/p>\n<p>\u5728\u8fd9\u4e9b\u5355\u8272\u5c4f\u573a\u666f\u4e2d\uff0c\u6296\u52a8\u6280\u672f\u5c31\u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\uff1a<\/p>\n<ul>\n<li><strong>\u7535\u5b50\u4e66\u9605\u8bfb\u5668\uff1a<\/strong> \u5f88\u591a\u65e9\u671f\u7684E-Ink\u5c4f\u5e55\u5c31\u662f\u5229\u7528\u6296\u52a8\u6280\u672f\u6765\u663e\u793a\u6587\u672c\u548c\u56fe\u7247\u7684\uff0c\u4ee5\u5728\u6709\u9650\u7684\u7070\u5ea6\u7b49\u7ea7\u4e0b\u63d0\u4f9b\u66f4\u597d\u7684\u9605\u8bfb\u4f53\u9a8c\u3002<\/li>\n<li><strong>\u5de5\u4e1a\u663e\u793a\u5c4f\uff1a<\/strong> \u5728\u4e00\u4e9b\u5bf9\u6210\u672c\u3001\u529f\u8017\u6709\u4e25\u683c\u8981\u6c42\u7684\u5de5\u4e1a\u8bbe\u5907\u4e0a\uff0c\u5355\u8272\u663e\u793a\u5c4f\u914d\u5408\u6296\u52a8\u6280\u672f\u53ef\u4ee5\u4ee5\u8f83\u4f4e\u7684\u6210\u672c\u5b9e\u73b0\u66f4\u597d\u7684\u89c6\u89c9\u6548\u679c\u3002<\/li>\n<li><strong>\u65e7\u6b3e\u6253\u5370\u673a\uff1a<\/strong> \u70b9\u9635\u6253\u5370\u673a\u548c\u65e9\u671f\u55b7\u58a8\u6253\u5370\u673a\u4e5f\u5229\u7528\u6296\u52a8\u6765\u6a21\u62df\u7070\u5ea6\u6216\u989c\u8272\u3002<\/li>\n<li><strong>\u56fe\u50cf\u5904\u7406\u8f6f\u4ef6\uff1a<\/strong> \u8bb8\u591a\u56fe\u50cf\u7f16\u8f91\u8f6f\u4ef6\u90fd\u63d0\u4f9b\u4e86\u6296\u52a8\u529f\u80fd\uff0c\u7528\u4e8e\u5728\u5c06\u56fe\u50cf\u8f6c\u6362\u4e3a\u4f4e\u8272\u6df1\u683c\u5f0f\u65f6\uff0c\u51cf\u5c11\u8272\u5e26\uff08banding\uff09\u73b0\u8c61\uff0c\u4fdd\u6301\u56fe\u50cf\u7ec6\u8282\u3002<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%E4%B8%83%E3%80%81%E6%80%BB%E7%BB%93\"><\/span>\u4e03\u3001\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e0d\u5f97\u4e0d\u8bf4\uff0c\u4eba\u7c7b\u7684\u667a\u6167\u662f\u65e0\u9650\u7684\uff0c<strong>\u5728\u6709\u9650\u7684\u8d44\u6e90\u4e0b\uff0c\u901a\u8fc7\u7b97\u6cd5\u80fd\u521b\u9020\u51fa\u8d85\u8d8a\u786c\u4ef6\u9650\u5236\u7684\u4f53\u9a8c\u3002<\/strong><\/p>\n<p>\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u8fd8\u6709\u76f8\u5f53\u591a\u7684\u4e1c\u897f\u53ef\u4ee5\u5b66\u4e60\uff0c\u5728\u4ee5\u540e\u7684 DIY \u8fc7\u7a0b\u4e2d\u518d\u6162\u6162\u5b66\u4e60\u5427\uff5e<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\"><\/span>\u53c2\u8003\u8d44\u6599<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><a href=\"https:\/\/www.emoe.xyz\/image-dithering-and-its-application\/\">https:\/\/www.emoe.xyz\/image-dithering-and-its-application\/<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Dither\">https:\/\/en.wikipedia.org\/wiki\/Dither<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00\u3001\u5148\u770b\u6548\u679c\u5bf9\u6bd4 \u4e8c\u503c\u5316\u9ed1\u767d\u56fe\u50cf\u5c55\u793a \u7070\u5ea6\u6296\u52a8\u56fe\u50cf\u5c55\u793a \u4e00\u3001\u9ed1\u767d\u4e16\u754c\u7684\u8272\u5f69\u60f3\u8c61 &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2026\/03\/esp32-oled-streaming-dithering\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":2087,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402],"tags":[262,328,372,386],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/2086"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=2086"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/2086\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media\/2087"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=2086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=2086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=2086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}