{"id":2944,"date":"2022-09-17T11:44:21","date_gmt":"2022-09-17T11:44:21","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=2944"},"modified":"2023-08-23T10:43:28","modified_gmt":"2023-08-23T10:43:28","slug":"gaming-on-the-raspberry-pi-pico","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/zh\/%e8%a6%86%e7%9b%86%e5%ad%90%e4%b8%8a%e7%9a%84%e6%b8%b8%e6%88%8f-pi-pico\/","title":{"rendered":"\u6811\u8393\u6d3ePico\u4e0a\u7684\u6e38\u620f"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-1024x576.jpg\" alt=\"\u6811\u8393\u6d3ePico\u4e0a\u7684\u6e38\u620f\" class=\"wp-image-2946\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-1024x576.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-300x169.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-768x432.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-1536x864.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image-18x10.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg 1778w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u60f3\u8c08\u8c08 Raspberry Pi Pico \u4e0a\u7684\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u6211\u8bb0\u5f97\u6211\u7684\u7b2c\u4e00\u90e8\u50bb\u74dc\u624b\u673a\uff0c\u90a3\u65f6\u5019\u53eb \"\u7535\u8bdd\"\u3002\u5b83\u53ef\u4ee5\u73a9\u50cf\u86c7\u8fd9\u6837\u7684\u7b80\u5355\u6e38\u620f\u3002\u90a3\u662f\u4e00\u79cd\u8fb9\u7f18\u5316\u7684\u4e1c\u897f\u3002<\/p>\n\n\n\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u5fc5\u987b\u643a\u5e26\u4e00\u4e2a\u5355\u72ec\u7684\u638c\u4e0a\u7535\u8111\uff0c\u73a9\u4fc4\u7f57\u65af\u65b9\u5757\u6216\u66f4\u591a\u7684\u52a8\u6001\u6e38\u620f\u7cfb\u7edf\uff0c\u5982Gameboy\u3002<\/p>\n\n\n\n<p>\u4e0e90\u5e74\u4ee3\u7684\u624b\u6301\u8bbe\u5907\u76f8\u6bd4\uff0cRaspberry Pi Pico\u662f\u4e00\u4e2a\u76f8\u5f53\u5f3a\u5927\u7684\u5fae\u63a7\u5236\u5668\u3002\u81ea\u7136\uff0c\u5b83\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u73a9\u90a3\u4e2a\u65f6\u4ee3\u7684\u6e38\u620f\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi Pico\u7684\u529f\u80fd\u6709\u591a\u5f3a\u5927<\/h2>\n\n\n\n<p>\u4e0e80\u5e74\u4ee3\u7684\u63a7\u5236\u53f0\u76f8\u6bd4\uff0cRaspberry Pi Pico\u7684\u529f\u80fd\u975e\u5e38\u5f3a\u5927\u3002&nbsp;<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u7f16\u7a0b\u7684\u6e38\u620f\u4e0e20\u4e16\u7eaa80\u5e74\u4ee3\u7684\u6e38\u620f\u7684\u8d44\u6e90\u8981\u6c42\u76f8\u4f3c\uff0cRaspberry Pi Pico\u53ef\u80fd\u4f1a\u8f7b\u800c\u6613\u4e3e\u5730\u901a\u8fc7\u5b83\u3002<\/p>\n\n\n\n<p>\u5230\u4e8690\u5e74\u4ee3\uff0c\u8981\u8bf4\u51fa\u8fd9\u6837\u4e00\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u5f00\u59cb\u53d8\u5f97\u6709\u70b9\u56f0\u96be\u4e86\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u9762\uff0c\u5982\u679c\u4f60\u8ba4\u4e3a\u5b83\u662f\u4e00\u4e2a\u80fd\u591f\u73a9\u7c7b\u4f3c\u4e8eGameboy\u6216\u624b\u673a\u4e0a\u7684\u6e38\u620f\u7684\u8bbe\u5907\uff0c\u4f60\u53ef\u80fd\u4f1a\u611f\u5230\u9ad8\u5174\u3002<\/p>\n\n\n\n<p>\u7136\u800c\uff0c90\u5e74\u4ee3\u540e\u671f\u7684\u6e38\u620f\u53d8\u5f97\u66f4\u52a0\u8d39\u529b\u3002\u4f8b\u5982\uff0c\u4f60\u4e0d\u4f1a\u5728Pico\u4e0a\u73a9Quake 3\uff081999\u5e74\u7684\u6e38\u620f\uff09\u3002<\/p>\n\n\n\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u867d\u7136Raspberry Pi Pico\u53ef\u4ee5\u64ad\u653e\u300a\u6bc1\u706d\u6218\u58eb\u300b\uff081993\u5e74\uff09\uff0c\u4f46\u5bf9\u7f16\u7801\u7684\u4eba\u6765\u8bf4\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e3a\u671f6\u4e2a\u6708\u7684\u52aa\u529b\uff0c\u56e0\u4e3a\u5c06\u6e38\u620f\u538b\u7f29\u5230Raspberry Pi Pico\u76842MB\u5b58\u50a8\u7a7a\u95f4\u662f\u4e00\u4e2a\u76f8\u5f53\u56f0\u96be\u7684\u4efb\u52a1\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u867d\u7136Pico\u6709\u4e24\u4e2a133MHz\u7684\u5904\u7406\u5668\uff0c\u4f46\u5b83\u7684\u5185\u5b58\u548c\u5b58\u50a8\u7a7a\u95f4\u6709\u9650\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5f88\u56f0\u96be\u3002<\/p>\n\n\n\n<p>\u8ba9\u6211\u4eec\u770b\u770b\u5b83\u4e0eGameboy\u76f8\u6bd4\u5982\u4f55\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u89c4\u683c<\/td><td>\u6811\u8393\u6d3ePico<\/td><td>Gameboy (1989)<\/td><td>\u5f69\u8272\u6e38\u620f\u673a (1998)<\/td><\/tr><tr><td>\u663e\u793a<\/td><td>\u5f69\u8272LCD\u6216\u7535\u5b50\u58a8\u6c34\uff0c\u8fd9\u53d6\u51b3\u4e8e\u4f60\u7684\u60f3\u8c61\u529b<\/td><td>4\u79cd\u8272\u8c03\u7684\u7070\u5ea6<\/td><td>10\u300132\u300156\u79cd\u989c\u8272<\/td><\/tr><tr><td>\u51b3\u8bae<\/td><td>\u53d6\u51b3\u4e8e\u4f60\u7684\u663e\u793a\u5668\uff0c\u4f46\u53d7\u9650\u4e8ePico\u7684\u8d44\u6e90\u3002<\/td><td>160x144px<\/td><td>160\u00d7144 px<\/td><\/tr><tr><td>CPU<\/td><td>133MHz\u53cc\u6838<\/td><td>4MHz<\/td><td>4MHz\/8MHz<\/td><\/tr><tr><td>\u5185\u5b58<\/td><td>264KB<\/td><td>8KB<\/td><td>32kb\u5185\u5b58\uff0c16kb\u663e\u5b58<\/td><\/tr><tr><td>\u50a8\u5b58<\/td><td>2MB&nbsp;<\/td><td>\u6e38\u620f\u5305\u76d2\uff1a8MB ROM\uff0c128KB RAM<\/td><td>\u6e38\u620f\u5305\u76d2\uff1a8MB ROM\uff0c128KB RAM<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u5728Pico\u4e0a\u73a9\u6e38\u620f\u800c\u4e0d\u662f\u5728Zero\/Pi 4\u4e0a\uff1f<\/h2>\n\n\n\n<p>\u597d\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u5982\u4f60\u6240\u77e5\uff0cRaspberry Pi Pico\u662f\u4e00\u4e2a\u5fae\u63a7\u5236\u5668\uff0c\u800cRaspberry Pi Zero\u6216Pi 4\u662f\u5fae\u578b\u8ba1\u7b97\u673a\u3002<\/p>\n\n\n\n<p>\u4e24\u8005\u90fd\u53ef\u4ee5\u73a9\u6e38\u620f\uff0c\u4f46Raspberry Pi Pico\u7684\u9650\u5236\u66f4\u591a\u3002<\/p>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u4f60\u60f3\u5728\u4eca\u5929\uff082022\u5e74\uff09\u7528Raspberry Pi Zero\u6216Pi 4s\u5efa\u7acb\u4e00\u4e2a\u6a21\u62df\u5668\u6216\u6e38\u620f\u7cfb\u7edf\uff0c\u4f60\u6700\u597d\u5df2\u7ecf\u6709\u4e00\u4e2a\uff0c\u5426\u5219\u4f60\u6700\u5927\u7684\u74f6\u9888\u5c31\u662f\u5e93\u5b58\u3002<\/p>\n\n\n\n<p>\u8981\u83b7\u5f97Pi Zero\u975e\u5e38\u56f0\u96be\uff0c\u8981\u83b7\u5f97Pi 4\u4e5f\u76f8\u5f53\u5177\u6709\u6311\u6218\u6027\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u65b9\u9762\uff0cPico\u7684\u5185\u5bb9\u5f88\u4e30\u5bcc\u3002\u5b83\u4e5f\u51e0\u4e4e\u53ef\u4ee5\u7acb\u5373\u542f\u52a8\uff0c\u800c\u5fae\u673a\u76ae\u514b\u5219\u8981\u7ecf\u5386\u4e00\u4e2a\u6f2b\u957f\u7684\u542f\u52a8\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<p>Pico\u7684\u6301\u7eed\u65f6\u95f4\u4e5f\u66f4\u957f\u3002\u5982\u679c\u4f60\u60f3\u8981\u4e00\u4e2a\u80fd\u8fd0\u884c\u6570\u5c0f\u65f6\u4e14\u4fbf\u4e8e\u643a\u5e26\u7684\u79fb\u52a8\u88c5\u7f6e\uff0c\u90a3\u4e48\u4f60\u7528Pico\u4f1a\u597d\u5f88\u591a\u3002<\/p>\n\n\n\n<p>\u6700\u540e\uff0c\u9664\u4e86\u5e93\u5b58\u4e4b\u5916\uff0cPico\u7684\u5e93\u5b58\u4e5f\u5f88\u5145\u88d5\u3002<\/p>\n\n\n\n<p>\u5bf9Pi Zero\u548cPi 4\u6765\u8bf4\u662f\u516c\u5e73\u7684\uff0c\u4f60\u7edd\u5bf9\u53ef\u4ee5\u7528\u8fd9\u4e9b\u5fae\u578b\u8ba1\u7b97\u673a\u73a9\u66f4\u597d\u7684\u6e38\u620f\uff0c\u83b7\u5f97\u66f4\u597d\u7684\u4eff\u771f\u6548\u679c\u3002\u6b63\u5982\u4f60\u5728\u4e0b\u4e00\u8282\u6240\u770b\u5230\u7684\uff0cPico\u5728\u73a9Zero\u6216Pi 4\u4f1a\u8f7b\u800c\u6613\u4e3e\u5730\u901a\u8fc7\u7684\u6e38\u620f\u65f6\u786e\u5b9e\u5f88\u5403\u529b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi Pico\u53ef\u4ee5\u73a9\u4ec0\u4e48\u6e38\u620f\uff1f<\/h2>\n\n\n\n<p>\u6211\u4eec\u5148\u6765\u770b\u770b\u4fee\u7406\u5de5\u793e\u533a\u5728Raspberry Pi Pico\u4e0a\u90fd\u73a9\u4e86\u4e9b\u4ec0\u4e48\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">RP2040 \"\u672b\u65e5 \"\u662f\u5bf9 \"\u4f1a\u4e0d\u4f1a\u672b\u65e5 \"\u7684\u56de\u7b54\u3002<\/h3>\n\n\n\n<iframe loading=\"lazy\" width=\"813\" height=\"457\" src=\"https:\/\/www.youtube.com\/embed\/eDVazQVycP4\" title=\"RP2040\u672b\u65e5\uff1a\u6811\u8393\u6d3ePico\u4e0a\u7684DOOM1\u6f14\u793a\/\u6e38\u620f\u6027\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<p>\u662f\u7684!Raspberry Pi Pico\u53ef\u4ee5\u73a9Doom\u3002<\/p>\n\n\n\n<p>\u4e00\u4e2a\u6765\u81ea\u5fb7\u514b\u8428\u65af\u5dde\u5965\u65af\u6c40\u7684\u540d\u53eb\u683c\u96f7\u5384\u59c6-\u6851\u5fb7\u68ee\u7684\u5bb6\u4f19\uff0c\u6210\u529f\u5730\u5c06\u300a\u6bc1\u706d\u300b\u79fb\u690d\u5230\u4e86\u6811\u8393\u6d3ePico\u4e0a\u3002<\/p>\n\n\n\n<p>\u4ed6\u7684\u795e\u5947\u914d\u65b9\uff1f<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"while (!convice_myself_its_probably_impossible()) {    do_some_more();}\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #81A1C1\">while<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #81A1C1\">!<\/span><span style=\"color: #88C0D0\">convice_myself_its_probably_impossible<\/span><span style=\"color: #D8DEE9FF\">()) <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #88C0D0\">do_some_more<\/span><span style=\"color: #D8DEE9FF\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4ed6 <a href=\"https:\/\/kilograham.github.io\/rp2040-doom\/\">\u5728\u4ed6\u7684\u8fc7\u7a0b\u6587\u4ef6\u4e2d\u89e3\u91ca\u8bf4<\/a> \u4ed6\u9762\u4e34\u7740\u6811\u8393\u6d3ePico\u7684\u786c\u4ef6\u89c4\u683c\u6240\u5e26\u6765\u7684\u591a\u79cd\u9650\u5236\u3002\u6bd5\u7adf\uff0c\u8fd9\u4e0d\u662f\u4e00\u4e2a\u7528\u4e8e\u6e38\u620f\u7684\u8bbe\u5907\u3002<\/p>\n\n\n\n<p>\u5c3d\u7ba1\u5982\u6b64\uff0c\u683c\u96f7\u5384\u59c6\u8fd8\u51b3\u5b9a\u4f7f\u300a\u6bc1\u706d\u6218\u58eb\u300b\u7684\u79fb\u690d\u5de5\u4f5c\u66f4\u52a0\u56f0\u96be\u3002\u4ed6\u5e0c\u671b\u5f97\u5230\u300a\u6bc1\u706d\u6218\u58eb\u300b\u7684\u771f\u5b9e\u4f53\u9a8c\uff0c\u8fd9\u610f\u5473\u7740\u8981\u6709320\u00d7200\uff08\u5f69\u8272\uff09\u7684\u5206\u8fa8\u7387\u3001\u7acb\u4f53\u58f0\u3001OPL2\u97f3\u4e50\u3001\u4fdd\u5b58\u548c\u52a0\u8f7d\u3001\u7f51\u7edc\u591a\u4eba\u6e38\u620f\u548c\u5176\u4ed6\u5728\u539f\u540d\u4e2d\u53ef\u4ee5\u5f97\u5230\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u5728Raspberry Pi Pico\u4e0a\u88c5\u8fd9\u4e48\u591a\u7684\u6e38\u620f\u610f\u5473\u7740\u5185\u5b58\u65b9\u9762\u7684\u6311\u6218\u3002\u5185\u5b58\u548c\u5b58\u50a8\u90fd\u662f\u5173\u952e\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0cRaspberry Pi Pico\u53ea\u67092MB\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u4f46Doom\u7684\u5171\u4eab\u8f6f\u4ef6\u7248\u672c\u662f\u8fd9\u4e2a\u5927\u5c0f\u7684\u4e24\u500d\u3002\u867d\u7136\u5176\u4ed6\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u51b3\u5b9a\u524a\u51cf\u67d0\u4e9b\u529f\u80fd\uff0c\u5982\u95ea\u5c4f\u548c\u964d\u4f4e\u7eb9\u7406\u7684\u53d6\u6837\uff0c\u4f46\u683c\u96f7\u5384\u59c6\u4e0d\u60f3\u8fd9\u6837\u505a\u3002<\/p>\n\n\n\n<p>\u5185\u5b58\u4e5f\u662f\u53e6\u4e00\u4e2a\u95ee\u9898\uff0cChocolate Doom\u6e90\u4ee3\u7801\u9700\u8981\u7ea61MB\u7684\u5185\u5b58\uff0c\u800cPico\u53ea\u6709\u7ea6264KB\u3002\u5185\u5b58\u7d27\u5f20\u662f\u56e0\u4e3a\u6e32\u67d3\u56fe\u5f62\u5360\u7528\u4e86RAM\u7684\u4e00\u5927\u5757\u7a7a\u95f4\uff0c\u4f46RAM\u5bf9\u4e8e\u6e38\u620f\u7684\u987a\u5229\u8fd0\u884c\u4e5f\u975e\u5e38\u91cd\u8981\u3002\u4e3a\u4e86\u7ba1\u7406\u8fd9\u4e24\u4e2a\u65b9\u9762\uff0c\u683c\u96f7\u5384\u59c6\u4e0d\u5f97\u4e0d\u505a\u4ed6\u6240\u8c13\u7684 \"\u62bd\u8102\"\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u7f51\u5740\u9605\u8bfb\u66f4\u591a\u4fe1\u606f <a href=\"https:\/\/kilograham.github.io\/rp2040-doom\/\">\u6587\u4ef6<\/a>\uff0c\u89c2\u770b <a href=\"https:\/\/www.youtube.com\/playlist?list=PL-_wCtHUfdDPi7i-4OIy5iQjQ3QSqq1Mh\">\u4ed6\u7684YouTube\u64ad\u653e\u5217\u8868<\/a> \u6216 <a href=\"https:\/\/github.com\/kilograham\/rp2040-doom\">\u5ba1\u67e5\u4ee3\u7801<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">NES\u4eff\u771f\u5668<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/1R9SiKq9iB0-wC9MtOn8X29eX4HiKXr8Meu9MS9SXpku1lL8GrI7TTmXvvLTU3Q_3SLcZS59K9L5saoAHXXyJyRsU5T8S0qSeiuTI5NQEg-shkcQvvVQ2tY9nEtFboRanYNyswCo5BMfDTN-JQQAwFzM6TAggyHkfOjosqKc92ICJtdw-R2jVIwjqw\" alt=\"\" style=\"width:711px;height:400px\" width=\"711\" height=\"400\"\/><\/figure>\n<\/div>\n\n\n<p>Raspberry Pi Pico\u5df2\u88ab\u6210\u529f\u5236\u6210NES\u6a21\u62df\u5668\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/forums.emulator-zone.com\/index.php?threads\/using-a-rasp-pico-board-to-emulate-nes.26986\/\">\u5728\u4eff\u771f\u5668\u533a\u8bba\u575b\u7684\u4e00\u4e2a\u4e3b\u9898\u4e2d<\/a>\uff0c\u7528\u6237ropgar\u8bf4\uff0cRaspberry Pi Pico\u5177\u6709\u6a21\u62dfNES\u7684\u80fd\u529b\uff0c\u5b83\u53ef\u4ee5\u505a\u5230\u6bcf\u79d260\u5e27\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b8c\u7f8e\u5730\u6a21\u62dfAPU\u548cPPP\u3002<\/p>\n\n\n\n<p>\u7f57\u666e\u52a0\u4f7f\u7528PS\/2\u952e\u76d8\u4f5c\u4e3a\u63a7\u5236\u5668\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u539f\u59cb\u7684NES\u63a7\u5236\u5668\u3002<\/p>\n\n\n\n<p>\u58f0\u97f3\u5f88\u597d\uff0c\u89c6\u9891\u548c\u80cc\u666f\u6e38\u620f\u97f3\u4e50\u6ca1\u6709\u51fa\u73b0\u6545\u969c\u3002<\/p>\n\n\n\n<p>Pico\u6709\u5927\u7ea61.5MB\u7684\u95ea\u5b58\u7a7a\u95f4\uff0c\u53ef\u7528\u4e8e\u4e0d\u540c\u7684\u6e38\u620f\uff0c\u53ef\u4ee5\u901a\u8fc7\u6309Caps Lock\u952e\u5728\u6e38\u620f\u95f4\u5207\u6362\u6765\u9009\u62e9\u3002&nbsp;<\/p>\n\n\n\n<p>ropgar\u8bbe\u6cd5\u5728\u4ed6\u7684\u6f14\u793a\u4e2d\u52a0\u8f7d\u7684\u6e38\u620f\u6709\uff1a\u5403\u8c46\u5b50\u3001Arkanoids\u3001DK\u3001\u5c0fDK\u3001BubbleBobble\u3001Galaga\u548c\u8bb8\u591a\u5176\u4ed6\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u6709\u4e00\u4e2a\u7f3a\u70b9\u662f\uff0c\u6ca1\u6709\u516c\u5f00\u7684\u6e90\u4ee3\u7801\u6216\u6559\u7a0b\u8bf4\u660e\u5982\u4f55\u505a\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n\n\n\n<iframe loading=\"lazy\" width=\"895\" height=\"503\" src=\"https:\/\/www.youtube.com\/embed\/Kv9U1GouvYM\" title=\"\u5fae\u63a7NES\u6a21\u62df\u5668 | 10\u4e2aFlash\u6e38\u620f | Raspberry Pi Pico RP2040 | VGA PS\/2 PWM\u58f0\u97f3\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\">\u7528\u4e8eRaspberry Pi Pico\u7684Gameboy\u6a21\u62df\u5668<\/h2>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u5236\u4f5c\u4f60\u81ea\u5df1\u7684Gameboy\u5916\u58f3\uff0c\u7136\u540e\u7528Raspberry Pi Pico\u6765\u6a21\u62dfGameboy\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u68d8\u624b\u7684\u90e8\u5206\u662f\uff0c\u5b83\u5b9e\u9645\u4e0a\u4e0d\u662f\u5df2\u7ecf\u770b\u5230\u5927\u91cf\u6210\u529f\u7684\u4e1c\u897f\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u4f60\u5efa\u7acb\u7684\u4e1c\u897f\u53ef\u80fd\u6709\u6548\uff0c\u4f46\u4e0d\u4e00\u5b9a\u3002<\/p>\n\n\n\n<p>\u8ba9\u6211\u4eec\u6765\u770b\u770b\u6709\u54ea\u4e9b\u9009\u62e9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Rust Gameboy\u6a21\u62df\u5668\uff08OxidGB Pico Port\uff09\u3002<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/YqgqoXlZzzwpFSfIREDXY6DSQk1izJhDctOpEW_Gp9PHFaOGpt-dp-R69kNfXM5KnNrYiVbPJ7lmFhWYmfzlaRpflY6n2nanDID8gDFPVybw_HioK14eqzPlXJCSo-Y_jd3lylN_Rinln6dDkHeJe7smlhNhrnlKiNP2Az1d5pIMWAJPRqHEqEBNQQ\" alt=\"\" style=\"width:563px;height:622px\" width=\"563\" height=\"622\"\/><figcaption class=\"wp-element-caption\">\u56fe\u7247\u6765\u6e90\uff1au\/j_selby (Reddit)<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u4e00\u770b\u5230\u5c4f\u5e55\u4e0a\u7684\u53e3\u888b\u5996\u602a\u56fe\u50cf\uff0c\u6211\u7acb\u523b\u5174\u594b\u8d77\u6765\u3002<\/p>\n\n\n\n<p>\u7136\u800c\uff0c\u8a79\u59c6\u65af-\u585e\u5c14\u6bd4\u5b9e\u9645\u4e0a\u5199\u4e86\u5173\u4e8e\u4ed6\u7684Gameboy\u6a21\u62df\u5668\u7684\u6311\u6218\u548c\u7f3a\u70b9\uff0c\u8be5\u6a21\u62df\u5668\u662f\u7528Rust\u7f16\u5199\u7684\uff0c\u540d\u4e3aOxidGB Pico Port\u3002<\/p>\n\n\n\n<p>\"\u585e\u5c14\u6bd4\u8bf4\uff1a\"\u8fd9\u662f\u4e00\u6b21\u65c5\u7a0b--\u4e00\u6b21\u4ee4\u4eba\u6cae\u4e27\u7684\u65c5\u7a0b\uff0c\u4f46\u4ece\u6559\u80b2\u7684\u89d2\u5ea6\u6765\u8bf4\uff0c\u6211\u8fd8\u662f\u975e\u5e38\u4eab\u53d7\u8fd9\u6b21\u65c5\u7a0b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u95ee\u9898\u548c\u80dc\u5229<\/h4>\n\n\n\n<p>\u8fd9\u91cc\u662f\u4e3b\u8981\u7684\u6311\u6218\u3002 <strong>Rust Gameboy\u6a21\u62df\u5668 \"\u4e0d\u5e78\u7684\u662f\uff0c\u5728\u5176\u76ee\u524d\u7684\u72b6\u6001\u4e0b\u5e76\u4e0d\u5b8c\u5168\u53ef\u73a9\"\u3002<\/strong><\/p>\n\n\n\n<p>\u585e\u5c14\u6bd4\u8bf4\uff0c\u6e38\u620f\u53ea\u80fd\u5f97\u5230\u5927\u7ea610 FPS\uff0c\u56e0\u4e3a\u6a21\u62df\u5668\u7684\u4ee3\u7801\u662f\u4e00\u4e2a\u74f6\u9888\uff0c\u4ee5\u53ca\u5230\u663e\u793a\u5668\u7684\u7f13\u6162SPI\u63a5\u53e3\u3002<\/p>\n\n\n\n<p>\u6709\u53ef\u80fd\u52a0\u5feb\u4e8b\u60c5\u7684\u8fdb\u5c55\uff0c\u4f46\u8fd9\u9700\u8981\u65f6\u95f4\u6765\u8ba1\u5212\u548c\u5b9e\u65bd\u3002<\/p>\n\n\n\n<p>\u8f93\u5165\u8fd8\u6ca1\u6709\u914d\u7f6e\u597d\uff0c\u56e0\u4e3a\u6e38\u620f\u4e0d\u80fd\u73a9\u3002&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6d4b\u8bd5OxidGB Pico\u7aef\u53e3<\/h4>\n\n\n\n<p>\u5982\u679c\u4f60\u60f3\u8bd5\u4e00\u8bd5\uff0c\u4f60\u53ef\u4ee5\u6309\u7167\u585e\u5c14\u6bd4\u7684\u6307\u793a\u5728\u4ed6\u7684 <a href=\"https:\/\/github.com\/j-selby\/oxidgb-pico\">OxidGB Pico\u7aef\u53e3\u7684Github repo\u3002<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RP2040_GB\u4eff\u771f\u5668<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/0bdDowSlnfTQhTg-3nLzDxFTEEVtOYep7mVxwdu8oNXkYXop897px8u7TI-bh2UXy-rwj0sq3kL0_D-lLA3BLazxbALrBdj_OxwAaEMg24RzadMnR9sOC_L1lo4nYDlbjzcyr6FX49J_ngR0ebA0D2m-1E3mU1ft1NYCLCUV62W64eS-JW8L3XfnXQ\" alt=\"\" style=\"width:687px;height:298px\" width=\"687\" height=\"298\"\/><figcaption class=\"wp-element-caption\">RP2040_GB\u4eff\u771f\u5668\u786c\u4ef6\u548c\u8bbe\u7f6e\uff0c\u7167\u7247\u7531Mahyar Koshkouei\u62cd\u6444\u3002<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u7684\u53e6\u4e00\u4e2a\u4eff\u771f\u5668\u662f <a href=\"https:\/\/github.com\/deltabeard\/RP2040-GB\">RP2040_GB<\/a>\uff0c\u5b83\u662f\u57fa\u4e8e <a href=\"https:\/\/github.com\/deltabeard\/Peanut-GB\">\u82b1\u751f-GB<\/a> \u4eff\u771f\u5668\u3002<\/p>\n\n\n\n<p>RP2040_GB\u7684\u6027\u80fd\u8fd8\u4e0d\u9519\uff0cKoshkouei\u8bf4\u4ed6\u7684\u8bbe\u7f6e \"\u5728\u6ca1\u6709\u97f3\u9891\u6a21\u62df\u7684\u60c5\u51b5\u4e0b\u4ee5\u8d85\u8fc770\u5e27\u7684\u901f\u5ea6\u8fd0\u884c\u3002\u5728\u8df3\u5e27\u548c\u9694\u884c\u626b\u63cf\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4ee5120\u5e27\u7684\u901f\u5ea6\u8fd0\u884c\"\u3002<\/p>\n\n\n\n<p>\u6b63\u5982\u4f60\u6240\u770b\u5230\u7684\uff0cRP2040_GB\u6b63\u5728\u73a9\u53e3\u888b\u5996\u602a\u3002\u628aROM\u88c5\u5230RP2040\u4e0a\u7684\u6b65\u9aa4\u662f\u8fd9\u6837\u7684\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f60\u5fc5\u987b\u62e5\u6709Pico SDK<\/li>\n\n\n\n<li>\u8f6c\u6362 <strong>.gb<\/strong> \u6216 <strong>.gbc<\/strong> ROM\u5230\u4e00\u4e2aC\u5934\u6587\u4ef6\uff0c\u4f7f\u7528 <strong>xxd <\/strong>\u8282\u76ee<\/li>\n\n\n\n<li>\u901a\u8fc7\u6dfb\u52a0\u4e24\u884c\u4ee3\u7801\u6765\u4fee\u6539\u8f6c\u6362\u540e\u7684\u6587\u4ef6\uff08\u5728Github readme\u4e2d\uff09\u3002<\/li>\n\n\n\n<li>\u5c06ROM\u590d\u5236\u5230 <strong>\u753b\u9762 <\/strong>\u6587\u4ef6\u5939\uff0c\u5e76\u8fdb\u884c\u7f16\u8bd1\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e2a\u6a21\u62df\u5668\u6709\u4e00\u4e9b\u9650\u5236\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\"\u8fd9\u4e2a\u6a21\u62df\u5668\u662f\u4e0d\u51c6\u786e\u7684\uff0c\u800c\u4e14\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u662f\u4e00\u9879\u6b63\u5728\u8fdb\u884c\u7684\u5de5\u4f5c......\u4e00\u4e9b\u6e38\u620f\u53ef\u80fd\u8fd0\u884c\u4e0d\u6b63\u786e\u6216\u6839\u672c\u65e0\u6cd5\u8fd0\u884c\u3002\"&nbsp;<\/li>\n\n\n\n<li>Gameboy Color\u6e38\u620f\u4f1a\u51fa\u73b0\u9519\u8bef<\/li>\n\n\n\n<li>\u6ca1\u6709\u5bf9\u5fae\u63a7\u5236\u5668\u8fdb\u884c\u4f18\u5316\u3002Koshkouei\u5efa\u8bae\uff0c\"\u4f7f\u7528\u9488\u5bf9\u7a7a\u95f4\u548c\u901f\u5ea6\u8fdb\u884c\u4f18\u5316\u7684APU \"\u53ef\u4ee5\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/github.com\/deltabeard\/RP2040-GB\">\u8bf7\u53c2\u9605RP2040_GB\u7684Github repo\u3002<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7528\u6811\u8393\u76aePico\u7f16\u64b0\u5927\u578b\u6e38\u620f<\/h2>\n\n\n\n<iframe loading=\"lazy\" width=\"893\" height=\"502\" src=\"https:\/\/www.youtube.com\/embed\/hXO0toLjDh0\" title=\"MEGA\u6e38\u620f\u6c47\u7f16 Adafruit RPI Pico\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<p>\u8fd9\u4e2a\u9879\u76ee\u6700\u597d\u7684\u5730\u65b9\u662f\u5b83\u5f88\u7b80\u5355\uff0c\u800c\u4e14\u8bf4\u660e\u8db3\u4ee5\u8ba9\u4f60\u8fc5\u901f\u5f00\u59cb\u5236\u4f5cRaspberry Pi Pico\u6e38\u620f\u673a\u3002<\/p>\n\n\n\n<p>Roger B\u00fchler\u5728\u4ed6\u7684Github\u4e0a\u6709\u96f6\u4ef6\u3001\u8bf4\u660e\u548c\u6f14\u793a\u3002<\/p>\n\n\n\n<p>\u5927\u578b\u6e38\u620f\u6c47\u7f16\u5305\u542b\u4ee5\u4e0b\u6e38\u620f\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5c0f\u5c0f\u5409\u5c14\u4f2f\u7279<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u7684\u628a\u620f<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u4fb5\u7565\u8005 v3.1<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u5f39\u7403 v2<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u5403\u8c46\u4eba v1.2<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u70b8\u5f39\u4eba v1.3<\/li>\n\n\n\n<li>\u5c0f\u5de7\u7684\u81ea\u884c\u8f66 v1.2<\/li>\n\n\n\n<li>\u5c0fBert 1.1<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u963f\u5361\u8bfa\u5fb7 v2<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u7279\u91cc\u65af v2.1e<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u7684\u724c\u5b50<\/li>\n\n\n\n<li>\u5c0f\u5c0fDDug<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u5bfc\u5f39 v1.1<\/li>\n\n\n\n<li>Tiny Lander v1.0 ( \u4f5c\u8005\uff1aRoger Buehler )<\/li>\n\n\n\n<li>\u5c0f\u5c0f\u7684\u83ab\u6cca\u6851<\/li>\n\n\n\n<li>\u5c0f\u7ba1\u5b50<\/li>\n<\/ol>\n\n\n\n<p>\u4f60\u9700\u8981\u7684\u90e8\u4ef6\u5982\u4e0b\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6811\u8393\u6d3ePico<\/li>\n\n\n\n<li>SSD1309 128x64px SPI OLED\u663e\u793a\u5c4f\uff082.42\u82f1\u5bf8\u663e\u793a\u5c4f\uff0c2:1\u6bd4\u4f8b\uff09\u3002<\/li>\n\n\n\n<li>\u538b\u7535\u5f0f\u8702\u9e23\u5668<\/li>\n\n\n\n<li>\u4e94\u4e2a\u6309\u94ae<\/li>\n\n\n\n<li>\u9eb5\u5305\u677f<\/li>\n\n\n\n<li>\u8de8\u63a5\u7535\u7f06<\/li>\n\n\n\n<li>\u53ef\u9009\uff1a10\u6b27\u59c6\u7535\u963b\uff0c\u989d\u5b9a\u7535\u538b\u81f3\u5c11\u4e3a10V\u548c220uF\u7684\u7535\u89e3\u7535\u5bb9\u5668<\/li>\n<\/ol>\n\n\n\n<p>\u4f60\u8fd8\u5c06\u9700\u8981 <a href=\"https:\/\/github.com\/adafruit\/Adafruit_SSD1306\">Adafruit\u7684SSD1306\u5e93<\/a>.<\/p>\n\n\n\n<p><strong>\u4e0b\u9762\u662f\u8fde\u63a5\u663e\u793a\u5668\u7684\u65b9\u6cd5\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GND -&gt; \u663e\u793a\u5668GND&nbsp;<\/li>\n\n\n\n<li>3V3(OUT) -&gt; \u663e\u793a\u5c4fVCC&nbsp;<\/li>\n\n\n\n<li>GP16 -&gt; \u663e\u793aDC\uff08\u6570\u636e\u547d\u4ee4\uff09\u3002&nbsp;<\/li>\n\n\n\n<li>GP17 -&gt; \u663e\u793aCS\uff08\u901a\u9053\u9009\u62e9\uff09\u3002&nbsp;<\/li>\n\n\n\n<li>GP18 -&gt; \u663e\u793aSCL\uff08\u65f6\u949f\uff09\u3002&nbsp;<\/li>\n\n\n\n<li>GP19 -&gt;\u663e\u793aSDA\uff08MOSI\uff09\u3002&nbsp;<\/li>\n\n\n\n<li>GP20 -&gt; \u663e\u793aRES\uff08\u590d\u4f4d\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e76\u4e14\u8981\u8fde\u63a5\u6309\u94ae\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GP15 -&gt; \u6309\u94ae\u5411\u4e0a&nbsp;<\/li>\n\n\n\n<li>GP14 -&gt; \u6309\u94ae\u4e0b\u964d&nbsp;<\/li>\n\n\n\n<li>GP13 -&gt; \u6309\u94ae LEFT&nbsp;<\/li>\n\n\n\n<li>GP12 -&gt; \u6309\u94ae\u53f3\u952e&nbsp;<\/li>\n\n\n\n<li>GP11 -- -- \u6309\u94aeFIRE\uff08\u6240\u6709\u6309\u94ae\u5230GND\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5e76\u8fde\u63a5\u538b\u7535\u5f0f\u8702\u9e23\u5668\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GP10 -&gt; \u8702\u9e23\u5668(+)&nbsp;<\/li>\n\n\n\n<li>GND -&gt; \u8702\u9e23\u5668(-)<\/li>\n<\/ul>\n\n\n\n<p><strong>\u8f6f\u4ef6\u5b89\u88c5\u3002<\/strong><\/p>\n\n\n\n<p>\u4e3a\u4e86\u5b89\u88c5\u8be5\u8f6f\u4ef6\uff0c\u4f60\u9700\u8981\u4f7f\u7528Arduino IDE\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6811\u8393\u6d3ePico\u4e0a\u7684\u7c7b\u4f3c\u7389\u5154\u7684\u6e38\u620f\uff08Pico-Tamachibi\uff09\u3002<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/vq6-LhQ68o08Xgayc7U4roNHKcOCGtwxk8YL8nOnI33WP_yJlFjnxd2KDdtLgJn92vx2RRhSUb4Rn4OsP8vZNtQsmUjaUCUPc7JXmWvipgWewiXzSISGQ1qJWK8VtvT3lp1iypd3npcQzC4mL3NLTYhCAkGxXgpJoNYzBMsKEST4dSc4FeRU2Jqy3Q\" alt=\"\" style=\"width:727px;height:406px\" width=\"727\" height=\"406\"\/><\/figure>\n<\/div>\n\n\n<p>\u4e3a\u4ec0\u4e48\u5b83\u88ab\u79f0\u4e3aPico-Tamachibi\uff1f<\/p>\n\n\n\n<p>\u636e\u8be5\u8bbe\u5907\u7684\u521b\u9020\u8005\u51ef\u6587-\u9ea6\u5361\u52d2\u8bf4\uff0c\"tama \"\u7684\u610f\u601d\u662f \"\u9e21\u86cb\"\uff0c\"chibi \"\u6307\u7684\u662f\u4eba\u7269\u6709\u4e00\u4e2a\u5927\u8111\u888b\u7684\u56fe\u5f62\u3002&nbsp;<\/p>\n\n\n\n<p>\u521b\u5efaTamachibi\u5f88\u5bb9\u6613\uff0c\u56e0\u4e3a\u51ef\u6587\u5728\u4ed690\u5206\u949f\u7684\u6559\u7a0b\u4e2d\u4ecb\u7ecd\u4e86\u6bcf\u4e00\u6b65\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<iframe loading=\"lazy\" width=\"1280\" height=\"720\" src=\"https:\/\/www.youtube.com\/embed\/btG3Pd8ZlBw\" title=\"\u5728Raspberry Pi Pico\u4e0a\u7528MicroPython\u7f16\u5199\u865a\u62df\u5ba0\u7269\u4ee3\u7801 - Pico-Tamachibi\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\">\u5efa\u7acb\u4f60\u81ea\u5df1\u7684\u6e38\u620f\u673a<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u60f3\u5236\u4f5c\u81ea\u5df1\u7684Raspberry Pi Pico\u6e38\u620f\u673a\uff0c\u4e00\u822c\u6709\u4e24\u79cd\u65b9\u6cd5\uff1a\u8d2d\u4e70\u73b0\u6210\u7684\u5957\u4ef6\u6216\u81ea\u5df1\u5236\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u73b0\u6210\u7684\u5957\u4ef6\u4e0eDIY\u6811\u8393\u6d3ePico\u6e38\u620f\u786c\u4ef6\u7684\u5bf9\u6bd4<\/h2>\n\n\n\n<p>\u867d\u7136\u6709\u53ef\u80fd\u4ece\u5934\u5f00\u59cb\uff0c\u4f46\u4f60\u53ef\u80fd\u60f3\u8df3\u8fc7\u5efa\u7acb\u81ea\u5df1\u7cfb\u7edf\u7684\u9ebb\u70e6\uff0c\u76f4\u63a5\u8d2d\u4e70\u4e00\u4e2a\u73b0\u6210\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n\n\n\n<p>\u6709\u4e00\u4e9b\u57fa\u4e8eRP2040\u7684\u5957\u4ef6\uff0c\u53ef\u4ee5\u8ba9\u4f60\u76f4\u63a5\u8df3\u5230\u73a9\u6216\u5f00\u53d1\u81ea\u5df1\u7684\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u8ba9\u6211\u4eec\u770b\u770bPimoroni Picosystem\uff0c\u7136\u540e\u5c06\u5176\u4e0e\u4f7f\u7528\u5355\u4e2a\u96f6\u4ef6\u5efa\u9020\u7c7b\u4f3c\u4e1c\u897f\u7684\u8fc7\u7a0b\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pimoroni Picosystem<\/h2>\n\n\n\n<p>\u8ba9\u6211\u4eec\u6765\u770b\u770bPimoroni Picosystem\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"451\" src=\"https:\/\/lh3.googleusercontent.com\/6X2vym5Y-3rckNiwIQlPQlGAso1RbIGb-n9hETg6DPjKQGijYEqkk8p_WKD0sSOm9AeMhyLWM9hfKjBZgGx0_YQRvYEWqaEyK0sRjr7urrC4KOcZdl8JXVkIHYJI0DZ8ysG6_MC7BiZRaP_5AJFq7i19PzHAgL0nba9lRg06jnhuWXp2adZgN6SCIQ\"><\/p>\n\n\n\n<p>\u6b63\u5982\u4f60\u6240\u770b\u5230\u7684\uff0c\u5b83\u6bd4Raspberry Pi Pico W\u5927\u5f97\u591a\uff0c\u4f46\u8fd9\u4e5f\u662f\u56e0\u4e3a\u5b83\u6709\u4e00\u4e2a\u56db\u5411D-pad\uff0c\u56db\u4e2a\u6309\u94ae\uff0cLCD\u5c4f\u5e55\uff0c\u4e00\u4e2a\u9502\u79bb\u5b50\u7535\u6c60\uff0c\u538b\u7535\u626c\u58f0\u5668\u548c\u4e00\u4e2aUSB-C\u7aef\u53e3\uff0c\u4ee5\u53ca\u5176\u4ed6\u9644\u52a0\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u5b83\u6709\u76f8\u540c\u7684\u5904\u7406\u5668\u548c\u5185\u5b58\uff0c\u56e0\u4e3aPicosystem\u548cPico\u90fd\u4f7f\u7528RP2040\u82af\u7247\u3002\u4ee5\u4e0b\u662f\u5b8c\u6574\u7684\u89c4\u683c\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7531RP2040\uff08\u53cc\u81c2Cortex M0+\uff0c264kB\u7684SRAM\uff09\u63d0\u4f9b\u52a8\u529b<\/li>\n\n\n\n<li>16MB\u7684QSPI\u95ea\u5b58\u652f\u6301XiP<\/li>\n\n\n\n<li>1.54\u82f1\u5bf8\u5f69\u8272SPI IPS LCD\uff08240\u00d7240\u548c120\u00d7120\u6a21\u5f0f\uff09\u3002<\/li>\n\n\n\n<li>D-pad\u548c\u6309\u94ae<\/li>\n\n\n\n<li>525mAh\u9502\u7535\u6c60\uff086\u5c0f\u65f6\u4ee5\u4e0a\uff09\u3002<\/li>\n\n\n\n<li>\u538b\u7535\u5f0f\u8702\u9e23\u5668\/\u626c\u58f0\u5668<\/li>\n\n\n\n<li>\u5f00\/\u5173\u7535\u6e90\u6309\u94ae<\/li>\n\n\n\n<li>RGB LED<\/li>\n\n\n\n<li>\u53ef\u7f16\u7a0b\uff0c\u53ef\u901a\u8fc7USB-C\u5145\u7535\uff08\u4e0d\u5305\u62ec\u7535\u7f06\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u56fe\u5f62\u6a21\u5f0f<\/strong><\/h3>\n\n\n\n<p>PicoSystem\u652f\u6301\u4e24\u79cd\u56fe\u5f62\u6a21\u5f0f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>240\u00d7240\uff1aLCD\u7684\u539f\u59cb\u5206\u8fa8\u7387<\/li>\n\n\n\n<li>120\u00d7120\uff1a\u50cf\u7d20\u52a0\u500d\u6a21\u5f0f\uff08\u8282\u7701RAM\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Picosystem\u4e0a\u7684\u6e38\u620f\u662f\u4ec0\u4e48\u6837\u5b50\u7684\uff1f<\/h3>\n\n\n\n<p>\u5728Picosystem\u4e0a\u73a9\u6e38\u620f\u5f88\u5bb9\u6613\u3002\u53ea\u9700\u6309\u4e0b\u7535\u6e90\u6309\u94ae\uff0c\u4f60\u5c31\u53ef\u4ee5\u770b\u5230\u9884\u88c5\u7684\u6e38\u620f \"\u8d85\u7ea7\u5e7f\u573a\u5144\u5f1f\"\u3002<\/p>\n\n\n\n<p>\u8be5\u6e38\u620f\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5e73\u53f0\u6e38\u620f\uff0c\u5f88\u50cf\u9a6c\u91cc\u5965\u3002<\/p>\n\n\n\n<p>\u76ae\u6469\u7f57\u5c3c\u8fd8\u5305\u62ec\u5176\u4ed6\u6e38\u620f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/scorpion-games-uk.itch.io\/super-square-bros\">\u8d85\u7ea7\u5e7f\u573a\u5144\u5f1f<\/a> \u7531Scorpion Games\u5236\u4f5c - \u4e00\u4e2a\u6709\u5f39\u6027\u7684\u56db\u8fb9\u5f62\u5e73\u53f0\u6e38\u620f <strong>(\u9884\u88c5\u6e38\u620f)<\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/Gadgetoid\/32blit-dots\/releases\">\u70b9\u72b6\u7269<\/a> - \u70b9\u5f39\u51fa\u7684\u76ca\u667a\u6e38\u620f\u3002\u521b\u5efa\u4e24\u4e2a\u6216\u66f4\u591a\u7684\u94fe\u5b50\uff0c\u7ade\u76f8\u83b7\u5f97\u6700\u5927\u7684\u5206\u6570\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/32blit\/rocks-and-diamonds\/releases\">\u5ca9\u77f3\u548c\u94bb\u77f3<\/a> - \u8eb2\u907f\u77f3\u5757\u548c\u6293\u53d6\u94bb\u77f3\u7684\u7ecf\u5178\u6e38\u620f\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/blit_v0.2.0_32blit-32blit-sdk-geometry.uf2?v=1633970589\">\u51e0\u4f55\u5b66<\/a> - \u7528\u6fc0\u5149\u51fb\u788e\u592a\u7a7a\u5de8\u77f3\uff0c\u4ee5\u5236\u9020\u66f4\u5c0f\u7684\u592a\u7a7a\u5de8\u77f3!<\/li>\n\n\n\n<li><a href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/blit_v0.2.0_32blit-32blit-sdk-scrolly-tile.uf2?v=1633970589\">\u5f69\u8679\u4e0a\u5347<\/a> - \u9ed1\u6697\u4e4b\u9b42\u300b\u7684\u7a0b\u5e8f\u751f\u6210\u7684\u5782\u76f4\u8df3\u8dc3\u8c1c\u9898\u3002\u597d\u8fd0\u3002<\/li>\n\n\n\n<li><a href=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0174\/1800\/files\/blit_v0.2.0_Daft-Freak-super-blit-kart.uf2?v=1634037972\">\u8d85\u7ea7\u5e03\u5229\u7279\u5361\u4e01\u8f66<\/a> Daft_Freak - \u4e00\u4e2a\u57fa\u4e8e \"Mode7 \"\u7684\u8d5b\u8f66\u6e38\u620f\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e3a\u4e86\u5b89\u88c5\u8fd9\u4e9b\u6e38\u620f\uff0c\u8bf7\u505a\u4ee5\u4e0b\u5de5\u4f5c\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0b\u8f7d\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u5c06\u60a8\u7684Picosystem\u63d2\u5165\u7535\u8111<\/li>\n\n\n\n<li>\u6309\u4f4fX\u952e\uff0c\u5e76\u6309\u4e0b\u7535\u6e90\u952e\u3002<\/li>\n\n\n\n<li>Picosystem\u5e94\u8be5\u88ab\u5b89\u88c5\u6210\u4e00\u4e2a\u540d\u4e3aRPI-RP2\u7684\u9a71\u52a8\u5668\u3002<\/li>\n\n\n\n<li>\u5c06\u4e0b\u8f7d\u7684.uf2\u6587\u4ef6\u590d\u5236\u5230\u9a71\u52a8\u5668\u4e0a\u3002\u5b83\u5c06\u81ea\u52a8\u52a0\u8f7d\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7531\u4e8e\u67d0\u4e9b\u539f\u56e0\uff0c\u6211\u7684USB-C\u5230USB-C\u7535\u7f06\u6ca1\u6709\u5de5\u4f5c\uff0c\u4f46USB-A\u5230USB-C\u7535\u7f06\u5728Picosystem\u4e0a\u5de5\u4f5c\u3002\u5982\u679c\u60a8\u6ca1\u6709\u770b\u5230\u7ea2\u8272LED\u706f\u4eae\u8d77\uff0c\u90a3\u4e48\u8bf7\u5c1d\u8bd5\u5176\u4ed6\u7535\u7f06\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3a\u4f60\u81ea\u5df1\u7684\u6e38\u620f\u7f16\u7a0b<\/h3>\n\n\n\n<p>Picosystem\u6700\u597d\u7684\u90e8\u5206\u662f\u5b83\u4e3a\u4f60\u63d0\u4f9b\u4e86\u4e00\u4e2a\u521b\u5efa\u4f60\u81ea\u5df1\u7684\u6e38\u620f\u7684\u7cfb\u7edf\u3002<\/p>\n\n\n\n<p>\u4e0e\u5176\u4ece\u5934\u5f00\u59cb\u7f16\u7801\uff0cPicoSystem\u9644\u5e26\u4e86\u4e00\u4e2a\u7279\u6b8a\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u4f60\u7684\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u5b83\u8fd8\u6d88\u9664\u4e86\u5f88\u591a\u8d2d\u4e70\u5355\u4e2a\u90e8\u4ef6\u7684\u7e41\u7410\u5de5\u4f5c\uff0c\u5982\u6db2\u6676\u5c4f\u3001\u6309\u94ae\u3001\u8df3\u7ebf\u3001\u9762\u5305\u677f\uff0c\u7136\u540e\u5f04\u6e05\u695a\u8ba9\u6240\u6709\u8fd9\u4e9b\u5de5\u4f5c\u6240\u9700\u7684\u5e93\u548c\u5305\u3002<\/p>\n\n\n\n<p>PicoSystem\u7684API\u5177\u6709\u5728\u5c4f\u5e55\u4e0a\u7ed8\u5236\u4e1c\u897f\u3001\u8f93\u51fa\u97f3\u9891\u3001\u786c\u4ef6\u529f\u80fd\u548c\u5176\u4ed6\u5b9e\u7528\u529f\u80fd\u3002\u8fd9\u4f7f\u4f60\u66f4\u5bb9\u6613\u5efa\u7acb\u4f60\u7684\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u5c31\u50cfRaspberry Pi Pico\u4e00\u6837\uff0cPicoSystem\u53ef\u4ee5\u7528C++\u6216MicroPython\u8fdb\u884c\u7f16\u7801\u3002&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528Picosystem\u8fdb\u884c\u6e38\u620f\u7f16\u7a0b\u5bb9\u6613\u5417\uff1f<\/h3>\n\n\n\n<p>\u6211\u5efa\u8bae\u4f60\u6709\u4e00\u4e9b\u65f6\u95f4\u548c\u8010\u5fc3\uff0c\u4ee5\u4fbf\u7528Picosystem\u5efa\u7acb\u81ea\u5df1\u7684\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u6587\u6863\u63d0\u4f9b\u4e86\u57fa\u7840\u77e5\u8bc6\uff0c\u4ee5\u4fbf\u8ba9\u4f60\u5f00\u59cb\u5de5\u4f5c\uff0c\u4f46\u5982\u679c\u4f60\u4ee5\u524d\u6709\u4e00\u4e9b\u6e38\u620f\u7f16\u7a0b\u7684\u77e5\u8bc6\uff0c\u8fd9\u5c06\u662f\u6700\u597d\u7684\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u6700\u5927\u7684\u6311\u6218\u662f\u6ca1\u6709\u591a\u5c11\u8d44\u6e90\u53ef\u4ee5\u6559\u4f60\u5982\u4f55\u7f16\u7801\u6837\u672c\u9879\u76ee\u3002\u7136\u800c\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u53c2\u8003\u6e05\u5355\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pimoroni\/picosystem\/tree\/main\/micropython\">Picosystem MicroPython\u6307\u5357\uff08\u5728readme\u4e2d\uff09\u3002<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pimoroni\/picosystem\/tree\/main\/micropython\/examples\/picosystem\">Picosystem MicroPython\u5b9e\u4f8b<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pimoroni\/picosystem\">Picosystem C++ Github<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/pimoroni\/picosystem\/tree\/main\/examples\">Picosystem C++\u4f8b\u5b50<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/wiki.picosystem.com\/en\/c++\/cheatsheet\">Picosystem API\u5c0f\u6284\uff0c\u5916\u52a0\u56fe\u50cf\u3001\u5b57\u4f53\u8f6c\u6362\u5668<\/a> (\u5728\u4fa7\u8fb9\u680f)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DIY\u7cfb\u7edf\u3002\u521b\u5efa\u786c\u4ef6<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.youmaketech.com\/raspberry-pi-pico-retrogaming-system\/\">YouMakeTech\u7684\u6307\u5357<\/a> \u8be5\u4e66\u5e26\u9886\u8bfb\u8005\u4e86\u89e3\u5982\u4f55\u5236\u4f5c\u4e00\u4e2a\u5b8c\u6574\u7684\u6e38\u620f\u673a\uff0c\u5305\u62ec\u5916\u58f3\u3001\u97f3\u54cd\u7cfb\u7edf\u548c\u6c38\u4e45\u710a\u63a5\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u6211\u4eec\u7684\u6bd4\u8f83\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5efa\u9020\u4e00\u4e2aDIY\u88c5\u7f6e\u4e0ePicosystem\u7684\u6210\u672c\u662f\u591a\u5c11\uff0c\u540e\u8005\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u5957\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td>YMT\u7684\u6e38\u620f\u7cfb\u7edf<\/td><td>Pimoroni Picosystem<\/td><\/tr><tr><td>\u6848\u4f8b<\/td><td>\u53ef\u9009\u7684\uff0c3D\u6253\u5370\uff08$4.47\u4e3aSTL\u84dd\u56fe\uff0c\u52a0\u4e0a\u706f\u4e1d\u548c3D\u6253\u5370\u673a\u7684\u79df\u8d41\/\u64cd\u4f5c\u8d39\u7528\uff09\u3002<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td>\u6811\u8393\u6d3ePico<\/td><td>$5\u7528\u4e8ePico H\uff0c\u56e0\u4e3a\u4f60\u5c06\u9700\u8981\u9488\u5ea7\u3002<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td><a href=\"https:\/\/buyzero.de\/products\/waveshare-9092-0-96inch-oled-gerade-vertikale-stiftleiste?_pos=2&amp;_sid=c5e379f04&amp;_ss=r\">OLED\u663e\u793a\u5c4f<\/a><\/td><td>$15\uff080.96\u82f1\u5bf8\u663e\u793a\u5c4f\uff09<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td>\u94ae\u6263<\/td><td>\u53ef\u5ffd\u7565\u4e0d\u8ba1<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td><a href=\"https:\/\/buyzero.de\/products\/breadboard-kit?variant=39481121374388\">\u9eb5\u5305\u677f<\/a><\/td><td>$15\uff08\u9762\u5305\u677f\u5957\u4ef6\uff09<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td>\u8df3\u7ebf<\/td><td>\u5305\u62ec\u5728\u9762\u5305\u677f\u5957\u4ef6\u4e2d<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td>\u87ba\u9489<\/td><td>\u9ad8\u8fbe$1<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td>\u538b\u7535\u5f0f<\/td><td>\u53ef\u5ffd\u7565\u4e0d\u8ba1&nbsp;<\/td><td>\u5305\u62ec<\/td><\/tr><tr><td><strong>\u603b\u6210\u672c<\/strong><\/td><td>$40.47\uff0c\u4e0d\u5305\u62ec3D\u6253\u5370\u8d39\u7528<\/td><td>$70<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u56e0\u6b64\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u4e0d\u540c\u5c42\u7ea7\u7684DIY\u8bbe\u7f6e\u7684\u6700\u7ec8\u6210\u672c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u8bbe\u7f6e<\/strong><\/td><td><strong>\u8d39\u7528<\/strong><\/td><\/tr><tr><td>\u6ca1\u6709\u7535\u6c60<\/td><td>$40.47\u4e0d\u5305\u62ec3D\u6253\u5370\u8d39\u7528<\/td><\/tr><tr><td>\u9502\u79bb\u5b50\u7535\u6c60<\/td><td>$8<\/td><\/tr><tr><td>Pimoroni Pico Lipo<\/td><td>$16.39 - $4\uff08\u7531\u4e8e\u6211\u4eec\u4f7f\u7528\u7684\u662fPimoroni Pico\u7684\u66ff\u4ee3\u54c1\uff0c\u6211\u4eec\u53ef\u4ee5\u6263\u9664Raspberry Pi Pico\u7684\u6210\u672c\uff09<\/td><\/tr><tr><td>\u7535\u6c60\u4f9b\u7535\u7684\u5957\u4ef6\u603b\u8ba1<\/td><td>$60.86\uff0c\u4e0d\u5305\u62ec3D\u6253\u5370\u8d39\u7528<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u53ea\u662f\u8981\u6ce8\u610f\u7684\u662f--YouMakeTech\u8bf4\uff0c\u4f60\u53ef\u4ee5\u7528\u4f4e\u4e8e$20\u7684\u4ef7\u683c\u5efa\u9020\u8fd9\u4e2a\u3002\u7136\u800c\uff0c\u5728\u6211\u7684\u7814\u7a76\u4e2d\uff0c\u4e0ePicosystem\u76f8\u5339\u914d\u7684DIY\u88c5\u7f6e\u7684\u6210\u672c\u5176\u5b9e\u76f8\u5dee\u4e0d\u5927\uff0c\u7279\u522b\u662f\u5f53\u4f60\u8003\u8651\u5230\u8f6f\u4ef6\u548c\u4fbf\u5229\u6027\u65f6\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/FiLN-p2QdPG59_fRj0q-0bH2W37KsnaaHC5IwHf2sFCsAe7iVU_zKNecqpcVLmjOeVC_ht3T5L_ONcPuC3eCODvHvYxar5mS-tnmf_wiJAi47JZfG0NV00NLMYN_U0k7k-89gxbynldhvCNXx-QSzlhDyD3qkOCBqTlTbXRNf0270w1j0LqTuXPE8A\" alt=\"\"\/><figcaption class=\"wp-element-caption\">YouMakeTech\u7684\u539f\u578b\uff0c\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u4e00\u4e2a\u5c4f\u5e55\uff0c\u53ef\u4ee5\u73a9\u4e52\u4e53\u3002<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u8fd9\u5c31\u662f\u8bf4\uff0cDIY\u8def\u7ebf\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5b66\u4e60\u673a\u4f1a\u3002\u6311\u6218\u6211\u7684\u4e00\u4ef6\u4e8b\u662f\u5c4f\u5e55\u3002YouMakeTech\u7684\u4f8b\u5b50\u4f7f\u7528\u7684\u662fI2C\u8fde\u63a5\uff0c\u800c\u6211\u7684\u5c4f\u5e55\u4f7f\u7528\u7684\u662f4\u9488\u7684SPI\u63a5\u53e3\u3002\u8fd9\u8981\u4e48\u9700\u8981\u6539\u53d8\u7f16\u7801\uff0c\u8981\u4e48\u9700\u8981\u5bf9\u786c\u4ef6\u8fdb\u884c\u4fee\u6539\uff0c\u4ee5\u4fbf\u7ee7\u7eed\u8fdb\u884c\u3002\u5982\u679c\u4f60\u559c\u6b22\u6311\u6218\uff0cDIY\u8def\u7ebf\u5c31\u9002\u5408\u4f60\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\uff0cDIY\u4e0ePicosystem\u76f8\u6bd4\uff0c\u6709\u4ec0\u4e48\u4f18\u52bf\u5462\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u4f18\u70b9\/\u7f3a\u70b9<\/td><td>DIY<\/td><td>\u76ae\u8003\u65af\u7cfb\u7edf<\/td><\/tr><tr><td>\u786c\u4ef6\u7ec4\u88c5<\/td><td>\u4f60DIY\u4e00\u5207<\/td><td>\u4f60\u4ec0\u4e48\u90fd\u4e0d\u81ea\u5df1\u52a8\u624b<\/td><\/tr><tr><td>\u8f6f\u4ef6<\/td><td>\u8fd9\u91cc\u6ca1\u6709\u4ec0\u4e48\u5e2e\u52a9\u3002\u4f60\u81ea\u5df1DIY\u4e00\u5207\uff0c\u5e76\u5b66\u4e60\u5982\u4f55\u64cd\u4f5c\u6bcf\u4e2a\u7ec4\u4ef6\u3002<\/td><td>\u4f60\u5fc5\u987b\u5b66\u4e60Picosystem\u7684API<\/td><\/tr><tr><td>\u5b66\u4e60\u673a\u4f1a<\/td><td>\u66f4\u5927\u7684\u5b66\u4e60\u673a\u4f1a\uff0c\u56e0\u4e3a\u4f60\u662f\u628a\u4e0d\u540c\u7684\u90e8\u5206\u62fc\u51d1\u8d77\u6765\u7684<\/td><td>\u8f83\u5c0f\u3002\u5b83\u662f\u73b0\u6210\u7684\uff0c\u8f6f\u4ef6\u5c06\u662f\u8fd9\u91cc\u6700\u5927\u7684\u5b66\u4e60\u673a\u4f1a<\/td><\/tr><tr><td>\u5ef6\u4f38\u6027<\/td><td>\u65e2\u7136\u4f60\u5efa\u9020\u4e86\u5b83\uff0c\u4f60\u53ef\u4ee5\u6539\u53d8LCD\u5c4f\u5e55\uff0c\u6dfb\u52a0\u66f4\u591a\u7684\u6309\u94ae\uff0c\u6dfb\u52a0LED\uff0c\u7b49\u7b49\u3002<\/td><td>\u9664\u975e\u4f60\u60f3\u628a\u4e00\u4e2a\u5b8c\u6574\u7684\u7cfb\u7edf\u62c6\u5f00\uff0c\u5426\u5219\u4e0d\u591a\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728Picosystem\u4e0eDIY\u7cfb\u7edf\u4e0a\u521b\u5efa\u7c7b\u4f3cPong\u7684\u6e38\u620f<\/h2>\n\n\n\n<p class=\"has-text-align-center\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"451\" src=\"https:\/\/lh3.googleusercontent.com\/RJq_cXB7E4foNOgagGJn3Dzcdlq3HwokXK7CgGKMkdkiGG7RNAdWhN0dKkejbY0GQiYaN9GGwxEQAv7Vv_SO9npoBi7pMIf3VSiKf_a_nfhBFkbJBzvFbWFcuEmMlf1XuvQHWvfm8YGU--7r4Vj1sI-X9ffH_z0OVY-ZhjuQLyhmCvHs0jHTlrg8Kg\"><\/p>\n\n\n\n<p>\u6211\u7684\u4e00\u4e2a\u597d\u5947\u7684\u5b9e\u9a8c\u6d89\u53ca\u5230\u4e86\u89e3\u4f7f\u7528Picosystem\u5f00\u53d1\u4e00\u4e2a\u6e38\u620f\u548c\u4ece\u5934\u5f00\u59cb\u505a\u4e00\u4e2a\u6e38\u620f\u8981\u82b1\u591a\u5c11\u7cbe\u529b\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u6bd4\u8f83\u8fd9\u4e24\u4e2a\u7cfb\u7edf\uff0c\u6211\u5c06\u5728YouMakeTech\u7684DIY\u7cfb\u7edf\u548cPicosystem\u4e0a\u5efa\u7acb\u4e00\u4e2a\u7c7b\u4f3c\u4e8ePong\u7684\u5355\u4eba\u6e38\u620f\u3002<\/p>\n\n\n\n<p>\u8be5\u6e38\u620f\u7684\u524d\u63d0\u5f88\u7b80\u5355\u3002\u8fd9\u662f\u4e00\u4e2a\u7c7b\u4f3c\u4e8e\u5e9e\u514b\u7684\u5355\u4eba\u6e38\u620f\uff0c\u6bcf\u5f53\u4f60\u7684\u7403\u4ece\u7403\u62cd\u4e0a\u5f39\u8d77\u65f6\uff0c\u4f60\u4f1a\u5f97\u523010\u5206\u3002\u5982\u679c\u7403\u6389\u5230\u5c4f\u5e55\u5e95\u90e8\uff0c\u4f60\u5c31\u4f1a\u5f97\u5230\u4e00\u4e2a \"\u6e38\u620f\u7ed3\u675f \"\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"blob:https:\/\/picockpit.com\/fea315db-91fe-48eb-99ef-83129db07775\"><\/video><\/figure>\n\n\n\n<p>\u5728\u8fd9\u4e24\u4e2a\u7cfb\u7edf\u4e0a\u521b\u5efa\u6e38\u620f\u9075\u5faa\u4e00\u4e2a\u7b80\u5355\u7684\u5de5\u4f5c\u6d41\u7a0b\uff0c\u6240\u6709\u8fd9\u4e9b\u90fd\u6307\u5411Thonny\u3002<\/p>\n\n\n\n<p>\u4f60\u9700\u8981\u5c06MicroPython\u95ea\u5b58\u5230Pico\u4e0a\uff0c\u7136\u540e\u4f60\u5c06\u4f7f\u7528Thonny\u6765\u7f16\u7801\u4f60\u7684\u7a0b\u5e8f\u3002&nbsp;<\/p>\n\n\n\n<p>\u4f60\u5728Picosystem\u4e0a\u95ea\u73b0\u7684MicroPython\u4e0e\u5b98\u65b9MicroPython UF2\u6587\u4ef6\u4e0d\u540c\uff0c\u6240\u4ee5\u8981\u786e\u4fdd\u4f60\u95ea\u73b0\u7684\u662f\u6b63\u786e\u7684\uff0c\u56e0\u4e3aPicosystem\u4f1a\u5728\u5b98\u65b9MicroPython\u7248\u672c\u4e0a\u8fd0\u884c\u3002\u5b83\u53ea\u662f\u4e0d\u80fd\u6309\u539f\u8ba1\u5212\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b\u4e24\u8005\u4e4b\u95f4\u7684\u4e00\u4e9b\u57fa\u672c\u5dee\u5f02\u3002\u6211\u8fd9\u91cc\u4e0d\u5305\u62ec\u6e38\u620f\u903b\u8f91\uff0c\u53ea\u6bd4\u8f83\u8f6f\u786c\u4ef6\u4e92\u52a8\u548c\u7f16\u7a0b\u6a21\u5f0f\u7684\u5dee\u5f02\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/YouMakeTech\/PicoRetroGamingSystem\/blob\/main\/PicoPong.py\">\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u770b\u5230YouMakeTech\u7684\u4ee3\u7801\u3002<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e00\u4e2a\u533a\u522b\uff1a\u786c\u4ef6\u4ee3\u7801<\/h3>\n\n\n\n<p>\u5728DIY\u8def\u7ebf\u4e0a\uff0c\u4e8b\u60c5\u975e\u5e38 \"\u539f\u59cb\"\u3002\u8fd9\u91cc\u6709\u4e00\u4e9b\u521d\u59cb\u5316\u663e\u793a\u5668\u3001GPIO\u548c\u6309\u94ae\u7684\u4ee3\u7801\uff0c\u4f60\u4e0d\u9700\u8981\u7528Picosystem\u6765\u505a\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"from machine import Pin, PWM, I2C,from ssd1306 import SSD1306_I2C\u2026# Buttonsup = Pin(2, Pin.IN, Pin.PULL_UP)down = Pin(3, Pin.IN, Pin.PULL_UP)left = Pin(4, Pin.IN, Pin.PULL_UP)right = Pin(5, Pin.IN, Pin.PULL_UP)button1 = Pin(6, Pin.IN, Pin.PULL_UP)button2 = Pin(7, Pin.IN, Pin.PULL_UP)# Buzzer connected to GP18buzzer = PWM(Pin(18))# OLED Screen connected to GP14 (SDA) and GP15 (SCL)i2c = machine.I2C(1, sda = Pin(14), scl = Pin(15), freq = 400000)oled = SSD1306_I2C(SCREEN_WIDTH, SCREEN_HEIGHT, i2c)\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">machine<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">import<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">PWM<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">I2C<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">ssd1306<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">import<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">SSD1306_I2C<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\u2026<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"># <\/span><span style=\"color: #8FBCBB\">Buttons<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">up<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(2<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">down<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(3<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">left<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(4<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">right<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(5<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">button1<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(6<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">button2<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(7<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">IN<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">PULL_UP<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"># <\/span><span style=\"color: #8FBCBB\">Buzzer<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">connected<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">to<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">GP18<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">buzzer<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">PWM<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(18))<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\"># <\/span><span style=\"color: #8FBCBB\">OLED<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">Screen<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">connected<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">to<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">GP14<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #8FBCBB\">SDA<\/span><span style=\"color: #D8DEE9FF\">) <\/span><span style=\"color: #8FBCBB\">and<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">GP15<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #8FBCBB\">SCL<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">i2c<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">machine<\/span><span style=\"color: #D8DEE9FF\">.<\/span><span style=\"color: #8FBCBB\">I2C<\/span><span style=\"color: #D8DEE9FF\">(1<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">sda<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(14)<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">scl<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">Pin<\/span><span style=\"color: #D8DEE9FF\">(15)<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">freq<\/span><span style=\"color: #D8DEE9FF\"> = 400000)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #8FBCBB\">oled<\/span><span style=\"color: #D8DEE9FF\"> = <\/span><span style=\"color: #8FBCBB\">SSD1306_I2C<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #8FBCBB\">SCREEN_WIDTH<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">SCREEN_HEIGHT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">i2c<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u7b2c\u4e8c\u4e2a\u533a\u522b\u3002Picosystem\u7684API<\/h3>\n\n\n\n<p>\u5982\u679c\u4f60\u5728Picosystem\u4e0a\u5199\u4ee3\u7801\uff0c\u4f60\u5c31\u5fc5\u987b\u5728\u5176\u7cfb\u7edf\u5185\u5199\u3002<\/p>\n\n\n\n<p>\u5728YouMakeTech\u7684\u4f8b\u5b50\u4e2d\uff0c\u6240\u6709\u6e38\u620f\u903b\u8f91\u90fd\u88ab\u5c01\u88c5\u5728\u4e00\u4e2a <strong>\u800c\u771f<\/strong> \u5faa\u73af\u3002\u8fd9\u5305\u62ec\u6309\u94ae\u4e92\u52a8\u3001\u78b0\u649e\u68c0\u6d4b\u548c\u5bf9\u5c4f\u5e55\u7684\u7ed8\u5236\u3002<\/p>\n\n\n\n<p>\u5728Picosystem\u4e2d\uff0c\u4f60\u9700\u8981\u5728\u4e09\u4e2a\u529f\u80fd\u8303\u56f4\u5185\u8fdb\u884c\u5199\u4f5c--- <strong>init(), update() <\/strong>\u548c <strong>\u7ed8\u5236()<\/strong>.<\/p>\n\n\n\n<p>\u5728\u6211\u7684\u4ee3\u7801\u4e2d\uff0c\u6240\u6709\u6e38\u620f\u7684\u903b\u8f91\u90fd\u5199\u5728 <strong>update() <\/strong>\u5305\u62ec\u78b0\u649e\u5904\u7406\u548cD-pad\u4e92\u52a8\u3002<\/p>\n\n\n\n<p>\u5728\u4e00\u4e2a\u7b80\u5355\u7684\u4e52\u4e53\u6e38\u620f\u4e2d\uff0c\u6211\u4f7f\u7528\u4e86API\u4e2d\u7684\u51e0\u4e2a\u51fd\u6570\uff0c\u4f7f\u4e8b\u60c5\u53d8\u5f97\u66f4\u7b80\u5355\u3002<\/p>\n\n\n\n<p><strong>\u76f8\u4ea4(x1, y1, w1, h1, x2, y2, w2, h2)&nbsp; <\/strong>\u53ef\u80fd\u662f\u8fd9\u91cc\u6700\u5927\u7684\u5e2e\u52a9\u3002\u4f60\u5c06\u4f20\u9012\u4e24\u4e2a\u65b9\u5757\u7684\u5750\u6807\u548c\u5927\u5c0f\uff0c\u5982\u679c\u6709\u4ea4\u96c6\uff0c\u5b83\u5c06\u8fd4\u56detrue\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u8fd9\u4e24\u4e2a\u77e9\u5f62\u662f\u7403\u548c\u6746\uff08\u53c8\u79f0\u6868\uff09\u3002intersects()\u51fd\u6570\u7684\u7f3a\u70b9\u662f\u5b83\u4e0d\u80fd\u68c0\u6d4b\u5230\u78b0\u649e\u53d1\u751f\u5728\u54ea\u4e00\u8fb9\uff0c\u6240\u4ee5\u6211\u4e0d\u5f97\u4e0d\u5199\u989d\u5916\u7684\u4ee3\u7801\u6765\u5904\u7406\u9152\u5427\u4e00\u8fb9\u7684\u78b0\u649e\u95ee\u9898\u3002<\/p>\n\n\n\n<p>Picosystem\u7684API\u5c06\u5728\u4f60\u5f00\u53d1\u66f4\u590d\u6742\u7684\u6e38\u620f\u65f6\u771f\u6b63\u5927\u653e\u5f02\u5f69\uff0c\u56e0\u4e3a\u5b83\u5df2\u7ecf\u6709\u4e86\u5e27\u7f13\u51b2\u5668\u3001\u97f3\u9891\u8f93\u51fa\u3001\u6df7\u5408\u7b49\u7684\u65b9\u6cd5\u3002&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pimoroni Picosystem Pong-like\u6e38\u620f\u7684\u4ee3\u7801<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"#bar_pos_x = pixels from left, e.g. 0 from leftbar_pos_x = 50#bar_pos_y = pixels from top, e.g. 100px from topbar_pos_y = 100BAR_WIDTH = 30LENGTH_CONSTANT = 5ball_speed = 1ball_pos_x = 10ball_pos_y = 10ball_dx = 2ball_dy = 2score = 0game_over = Falsedef update(tick):        global bar_pos_x    global bar_pos_y    global ball_pos_x    global ball_pos_y    global ball_dx    global ball_dy    global ball_speed    global score    global game_over        def reverse_ball_dx():        global ball_dx        ball_dx = ball_dx * -1            def reverse_ball_dy():        global ball_dy        ball_dy = ball_dy * -1        ball_pos_x += ball_dx    ball_pos_y += ball_dy        if button(LEFT) and bar_pos_x &gt; 0:        bar_pos_x -= 1        if button(RIGHT) and bar_pos_x < 120 - BAR_WIDTH :        bar_pos_x += 1            if ball_pos_x <= 0 :        ball_pos_x = 0        reverse_ball_dx()            if ball_pos_x &gt;= 120 - LENGTH_CONSTANT :        ball_pos_x = 120 - LENGTH_CONSTANT        reverse_ball_dx()            if ball_pos_y &gt;= 120 - LENGTH_CONSTANT :        game_over = True            if ball_pos_y <= 0:        ball_pos_y = 0        reverse_ball_dy()            if intersects(bar_pos_x,bar_pos_y,BAR_WIDTH,LENGTH_CONSTANT, ball_pos_x, ball_pos_y, LENGTH_CONSTANT,LENGTH_CONSTANT):                reverse_ball_dy()        score += 10                #main intersection of ball and bar. if they intersect, check if they are intersecting on the sides.        #if not on sides (i.e. on top) reverse Y direction. Or else, reverse X direction.        if intersects(bar_pos_x,bar_pos_y,1,LENGTH_CONSTANT, ball_pos_x, ball_pos_y, LENGTH_CONSTANT,LENGTH_CONSTANT):                        #intersecting on left                        reverse_ball_dx()            ball_pos_x -= 2                    if intersects(bar_pos_x + BAR_WIDTH,bar_pos_y,1,LENGTH_CONSTANT, ball_pos_x, ball_pos_y, LENGTH_CONSTANT,LENGTH_CONSTANT):                        #intersecting on right                        reverse_ball_dx()            ball_pos_x += 2        def draw(tick):        if game_over:        pen(0,0,0)        clear()        pen(15,15,15)        text(&quot;Game Over&quot;, 35, 60)                    else:        pen(0, 0, 0)        clear()        pen(15,15,15)            #draw bar (paddle)        frect(bar_pos_x,bar_pos_y,BAR_WIDTH,LENGTH_CONSTANT)            #draw the ball        frect(ball_pos_x, ball_pos_y, LENGTH_CONSTANT,LENGTH_CONSTANT)        text(str(score), 80, 20)    start()\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9FF\">#<\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">pixels<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">left<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">e<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">g<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">left<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">50<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">#<\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">pixels<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">top<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">e<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">g<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\"> 100<\/span><span style=\"color: #D8DEE9\">px<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">from<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">top<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">100<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">BAR_WIDTH<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">30<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">5<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ball_speed<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">10<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">10<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ball_dx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">ball_dy<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">score<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">game_over<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">False<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">def<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">update<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">tick<\/span><span style=\"color: #D8DEE9FF\">):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dx<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dy<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_speed<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">score<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">game_over<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">def<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">reverse_ball_dx<\/span><span style=\"color: #D8DEE9FF\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dx<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">ball_dx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dx<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #B48EAD\">1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">def<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">reverse_ball_dy<\/span><span style=\"color: #D8DEE9FF\">():<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">global<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dy<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">ball_dy<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dy<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #B48EAD\">1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dx<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_dy<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">button<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">LEFT<\/span><span style=\"color: #D8DEE9FF\">) <\/span><span style=\"color: #D8DEE9\">and<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">button<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">RIGHT<\/span><span style=\"color: #D8DEE9FF\">) <\/span><span style=\"color: #D8DEE9\">and<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&lt;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">120<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\"> BAR_WIDTH <\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&lt;=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\"> :<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">reverse_ball_dx<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&gt;=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">120<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\"> LENGTH_CONSTANT <\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">120<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">reverse_ball_dx<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&gt;=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">120<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\"> LENGTH_CONSTANT <\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">game_over<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">True<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&lt;=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">reverse_ball_dy<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">intersects<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">BAR_WIDTH<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\">):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">reverse_ball_dy<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #D8DEE9\">score<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">10<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        #<\/span><span style=\"color: #D8DEE9\">main<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">intersection<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">of<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">and<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">bar<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">they<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">intersect<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">check<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">they<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">are<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">intersecting<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">the<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">sides<\/span><span style=\"color: #ECEFF4\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        #<\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">not<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">sides<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #D8DEE9\">i<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">e<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">top<\/span><span style=\"color: #D8DEE9FF\">) <\/span><span style=\"color: #D8DEE9\">reverse<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">Y<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">direction<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">Or<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">else<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">reverse<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">X<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">direction<\/span><span style=\"color: #ECEFF4\">.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">intersects<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\">):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            #<\/span><span style=\"color: #D8DEE9\">intersecting<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">left<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #88C0D0\">reverse_ball_dx<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">intersects<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">BAR_WIDTH<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\">):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            #<\/span><span style=\"color: #D8DEE9\">intersecting<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">on<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">right<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #88C0D0\">reverse_ball_dx<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">+=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">def<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">draw<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">tick<\/span><span style=\"color: #D8DEE9FF\">):<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> game_over<\/span><span style=\"color: #ECEFF4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">pen<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">clear<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">pen<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">text<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Game Over<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">35<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">60<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">else<\/span><span style=\"color: #D8DEE9FF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">pen<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">clear<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">pen<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #B48EAD\">15<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        #<\/span><span style=\"color: #D8DEE9\">draw<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">bar<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #D8DEE9\">paddle<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">frect<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">bar_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">bar_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">BAR_WIDTH<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        #<\/span><span style=\"color: #D8DEE9\">draw<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">the<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">frect<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">ball_pos_x<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">ball_pos_y<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9\">LENGTH_CONSTANT<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #88C0D0\">text<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #88C0D0\">str<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">score<\/span><span style=\"color: #D8DEE9FF\">)<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">80<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">20<\/span><span style=\"color: #D8DEE9FF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">start<\/span><span style=\"color: #D8DEE9FF\">()<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u6709\u4ec0\u4e48\u6e38\u620f\u53ef\u4ee5\u63a8\u8350\u5417\uff1f<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u6709\u9002\u7528\u4e8eRaspberry Pi Pico\u7684\u6e38\u620f\uff0c\u8bf7\u5728\u4e0b\u9762\u7559\u8a00\u5e76\u9644\u4e0a\u7f51\u5740\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u60f3\u4e86\u89e3\u6211\u4eec\u7684 \"\u767e\u4e3d\u5bab\u9879\u76ee \"\u7cfb\u5217\uff0c\u8bf7\u8bbf\u95ee <a href=\"https:\/\/picockpit.com\/raspberry-pi\/category\/paragon-projects\/\">\u8fd9\u91cc<\/a>.<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2F%25e8%25a6%2586%25e7%259b%2586%25e5%25ad%2590%25e4%25b8%258a%25e7%259a%2584%25e6%25b8%25b8%25e6%2588%258f-pi-pico%2F&text=Gaming%20on%20the%20Raspberry%20Pi%20Pico\" title=\"\u5728 X \u4e0a\u5206\u4eab\" aria-label=\"\u5728 X \u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2F%25e8%25a6%2586%25e7%259b%2586%25e5%25ad%2590%25e4%25b8%258a%25e7%259a%2584%25e6%25b8%25b8%25e6%2588%258f-pi-pico%2F\" title=\"\u5728Facebook\u4e0a\u5206\u4eab\" aria-label=\"\u5728Facebook\u4e0a\u5206\u4eab\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2F%25e8%25a6%2586%25e7%259b%2586%25e5%25ad%2590%25e4%25b8%258a%25e7%259a%2584%25e6%25b8%25b8%25e6%2588%258f-pi-pico%2F&text=Gaming%20on%20the%20Raspberry%20Pi%20Pico\" title=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" aria-label=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2F%25e8%25a6%2586%25e7%259b%2586%25e5%25ad%2590%25e4%25b8%258a%25e7%259a%2584%25e6%25b8%25b8%25e6%2588%258f-pi-pico%2F\" title=\"\u5206\u4eab\u81f3Reddit\" aria-label=\"\u5206\u4eab\u81f3Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u60f3\u8c08\u8c08 Raspberry Pi Pico \u4e0a\u7684\u6e38\u620f\u3002\u6211\u8fd8\u8bb0\u5f97\u6211\u7684\u7b2c\u4e00\u90e8\u50bb\u74dc\u624b\u673a\uff0c\u90a3\u65f6\u5019\u8fd8\u53eb \"\u7535\u8bdd\"\u3002\u5b83\u53ef\u4ee5\u73a9\u50cf\u8d2a\u98df\u86c7\u8fd9\u6837\u7684\u7b80\u5355\u6e38\u620f\u3002\u90a3\u662f\u6700\u5148\u8fdb\u7684\u6280\u672f\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u4f60\u5fc5\u987b\u643a\u5e26\u4e00\u4e2a\u5355\u72ec\u7684\u638c\u4e0a\u7535\u8111\uff0c\u7528\u6765\u73a9\u4fc4\u7f57\u65af\u65b9\u5757\u6216\u66f4\u52a8\u6001\u7684\u6e38\u620f...<\/p>","protected":false},"author":2,"featured_media":2946,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[525,528,510,527,187,526],"class_list":["post-2944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-pico","tag-gameboy","tag-picosystem","tag-pimoroni","tag-pong","tag-raspberry-pi","tag-tamagotchi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gaming on the Raspberry Pi Pico | PiCockpit<\/title>\n<meta name=\"description\" content=\"Gaming on the Raspberry Pi Pico is an awesome way to emulate consoles and is a great platform to learn to program your own games.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/\u8986\u76c6\u5b50\u4e0a\u7684\u6e38\u620f-pi-pico\/\" \/>\n<meta property=\"og:locale\" content=\"zh_HK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gaming on the Raspberry Pi Pico | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"Gaming on the Raspberry Pi Pico is an awesome way to emulate consoles and is a great platform to learn to program your own games.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/\u8986\u76c6\u5b50\u4e0a\u7684\u6e38\u620f-pi-pico\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-17T11:44:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-23T10:43:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1778\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"raspi berry\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"raspi berry\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u8a08\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/\"},\"author\":{\"name\":\"raspi berry\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\"},\"headline\":\"Gaming on the Raspberry Pi Pico\",\"datePublished\":\"2022-09-17T11:44:21+00:00\",\"dateModified\":\"2023-08-23T10:43:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/\"},\"wordCount\":3348,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/featured-image.jpg\",\"keywords\":[\"Gameboy\",\"picosystem\",\"Pimoroni\",\"Pong\",\"Raspberry Pi\",\"Tamagotchi\"],\"articleSection\":[\"Raspberry Pi Pico\"],\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/\",\"name\":\"Gaming on the Raspberry Pi Pico | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/featured-image.jpg\",\"datePublished\":\"2022-09-17T11:44:21+00:00\",\"dateModified\":\"2023-08-23T10:43:28+00:00\",\"description\":\"Gaming on the Raspberry Pi Pico is an awesome way to emulate consoles and is a great platform to learn to program your own games.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#breadcrumb\"},\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/featured-image.jpg\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/featured-image.jpg\",\"width\":1778,\"height\":1000,\"caption\":\"games on raspberry pi pico\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/gaming-on-the-raspberry-pi-pico\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry Pi Pico\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-pico\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Gaming on the Raspberry Pi Pico\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-HK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/7af3a7a8c999bc722029ef9ca9d78eee\",\"name\":\"raspi berry\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g\",\"caption\":\"raspi berry\"},\"description\":\"I'm here to help you with all your Raspberry Pi related questions &amp; love to share about new project ideas for the Raspberry Pi, and give quick tips. Of course I'll also help you with PiCockpit and how to make your Raspberry Pi even easier to use with this raspberry pi monitoring solution :-)\",\"sameAs\":[\"https:\\\/\\\/picockpit.com\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/zh\\\/author\\\/raspi-berry\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728 Raspberry Pi Pico \u4e0a\u73a9\u6e38\u620f | PiCockpit","description":"\u5728 Raspberry Pi Pico \u4e0a\u73a9\u6e38\u620f\u662f\u6a21\u62df\u6e38\u620f\u673a\u7684\u7edd\u4f73\u65b9\u5f0f\uff0c\u4e5f\u662f\u5b66\u4e60\u81ea\u5df1\u7f16\u7a0b\u7684\u7edd\u4f73\u5e73\u53f0\u3002","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:\/\/picockpit.com\/raspberry-pi\/zh\/\u8986\u76c6\u5b50\u4e0a\u7684\u6e38\u620f-pi-pico\/","og_locale":"zh_HK","og_type":"article","og_title":"Gaming on the Raspberry Pi Pico | PiCockpit","og_description":"Gaming on the Raspberry Pi Pico is an awesome way to emulate consoles and is a great platform to learn to program your own games.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/\u8986\u76c6\u5b50\u4e0a\u7684\u6e38\u620f-pi-pico\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2022-09-17T11:44:21+00:00","article_modified_time":"2023-08-23T10:43:28+00:00","og_image":[{"width":1778,"height":1000,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg","type":"image\/jpeg"}],"author":"raspi berry","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"\u4f5c\u8005":"raspi berry","\u9810\u8a08\u95b1\u8b80\u6642\u9593":"16 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/"},"author":{"name":"raspi berry","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee"},"headline":"Gaming on the Raspberry Pi Pico","datePublished":"2022-09-17T11:44:21+00:00","dateModified":"2023-08-23T10:43:28+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/"},"wordCount":3348,"commentCount":1,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg","keywords":["Gameboy","picosystem","Pimoroni","Pong","Raspberry Pi","Tamagotchi"],"articleSection":["Raspberry Pi Pico"],"inLanguage":"zh-HK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/","url":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/","name":"\u5728 Raspberry Pi Pico \u4e0a\u73a9\u6e38\u620f | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg","datePublished":"2022-09-17T11:44:21+00:00","dateModified":"2023-08-23T10:43:28+00:00","description":"\u5728 Raspberry Pi Pico \u4e0a\u73a9\u6e38\u620f\u662f\u6a21\u62df\u6e38\u620f\u673a\u7684\u7edd\u4f73\u65b9\u5f0f\uff0c\u4e5f\u662f\u5b66\u4e60\u81ea\u5df1\u7f16\u7a0b\u7684\u7edd\u4f73\u5e73\u53f0\u3002","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#breadcrumb"},"inLanguage":"zh-HK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/"]}]},{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2022\/09\/featured-image.jpg","width":1778,"height":1000,"caption":"games on raspberry pi pico"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/gaming-on-the-raspberry-pi-pico\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Raspberry Pi Pico","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-pico\/"},{"@type":"ListItem","position":3,"name":"Gaming on the Raspberry Pi Pico"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"\u7801\u5934","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-HK"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/7af3a7a8c999bc722029ef9ca9d78eee","name":"raspi berry","image":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c10c423ceeff34163dd54a5472d6da17d71c0e360e0cf8cdb8847006372f216b?s=96&d=blank&r=g","caption":"raspi berry"},"description":"\u6211\u5728\u8fd9\u91cc\u5e2e\u52a9\u4f60\u89e3\u51b3\u6240\u6709\u4e0e\u6811\u8393\u6d3e\u6709\u5173\u7684\u95ee\u9898\uff0c\u5e76\u559c\u6b22\u5206\u4eab\u6709\u5173\u6811\u8393\u6d3e\u7684\u65b0\u9879\u76ee\u60f3\u6cd5\uff0c\u5e76\u7ed9\u51fa\u5feb\u901f\u63d0\u793a\u3002\u5f53\u7136\uff0c\u6211\u4e5f\u4f1a\u5e2e\u52a9\u4f60\u4e86\u89e3PiCockpit\uff0c\u4ee5\u53ca\u5982\u4f55\u5229\u7528\u8fd9\u4e2a\u6811\u8393\u6d3e\u76d1\u63a7\u89e3\u51b3\u65b9\u6848\u4f7f\u4f60\u7684\u6811\u8393\u6d3e\u66f4\u5bb9\u6613\u4f7f\u7528 :-)","sameAs":["https:\/\/picockpit.com"],"url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/author\/raspi-berry\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/comments?post=2944"}],"version-history":[{"count":8,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2944\/revisions"}],"predecessor-version":[{"id":4882,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/2944\/revisions\/4882"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media\/2946"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media?parent=2944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/categories?post=2944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/tags?post=2944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}