【Arduino】使用OLED显示屏显示图片
2019-12-10 10:58
使用OLED显示屏显示图片
我们通过使用图形取模软件,进行图像的取模,然后使用OLED显示屏显示图片,这样就能在屏幕上显示出自己想要的图形或者效果了!

本次完成的内容需要的材料:
Arduino UNO
一块OLED显示屏
导线(若干)
线路图

工作原理
取出图片的所有像素点,通过取模软件把图片的像素点一一对应在屏幕中显示。多张图片中采用延时就可以达到播放动画的效果。在本次实验中图片的切换采用了指针数组的方式。这样即使多张图片,我们使用这个数组也可以用一条函数来实现图片的切换也就是动画的效果。

--end--
声明:本文章由网友投稿作为教育分享用途,如有侵权原作者可通过邮件及时和我们联系删除:freemanzk@qq.com