当前位置: 首页 > news >正文

网站的设计流程简述什么是seo

网站的设计流程,简述什么是seo,eyoucms教程,品牌建设方案的完整纲要前言 今天焊接两大关键输入输出设备:串口和屏幕。 串口 串口部分使用 CP2102N 芯片(USB 转 TTL),这样用一根数据线连接板子和 PC 就可以直接调试了。 焊接 CP2102 和 Type C 上电调试,串口可以正常输入输出。 看来…

前言

今天焊接两大关键输入输出设备:串口和屏幕。

串口

串口部分使用 CP2102N 芯片(USB 转 TTL),这样用一根数据线连接板子和 PC 就可以直接调试了。

焊接 CP2102 和 Type C
在这里插入图片描述
上电调试,串口可以正常输入输出。
看来,虽然是 QFN 封装,只要尺寸大一点,还是很容易焊接成功的。

屏幕

重头戏在屏幕,倒不是说屏幕焊接有多难,而是软件调试折腾了两个晚上。
屏幕焊接
在这里插入图片描述 在这里插入图片描述

ST7789V 驱动调试

step1:使能内核驱动编译选项
屏幕的驱动芯片为 ST7789V,就在内核的 menuconfig 中搜索 ST7789V
在这里插入图片描述
搜到了这两项,遂将这两项都置为了 [y],这里也为自己埋下了个坑,这两个驱动需要二选一。
step2:配置设备树
arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts 新增如下节点

&spi0{status = "okay";st7789v: st7789v@0{compatible = "sitronix,st7789v";reg = <0>;status = "okay";spi-max-frequency = <96000000>;spi-cpol;spi-cpha;rotate = <270>;fps = <60>;buswidth = <8>;dc-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>;  /* PB4 */reset-gpios = <&pio 1 5 GPIO_ACTIVE_HIGH>; /* PB5 *///led-gpios = <&pio 0 0 GPIO_ACTIVE_LOW>;  /* PA0 */debug = <0x0>;};
};

step3:调试
上电后屏幕没输出,并且没有生成 /dev/fb0 设备文件,
搜索 "sitronix,st7789v",确定驱动入口,追下驱动代码,发现匹配到了两份驱动
在这里插入图片描述
添加打印,发现上电后匹配的是 panel-sitronix-st7789v 这份驱动,那就禁用此启动,换下面的试试,结果还真可以,上电后屏幕直接就显示启动 log 了
在这里插入图片描述
不过,发现屏幕好像反显了,应该黑底白字才对,查看驱动,也没发现反显的设置。
不管了,修改驱动,让它再反一次
drivers/staging/fbtft/fb_st7789v.c

static int init_display(struct fbtft_par *par)
{/* turn off sleep mode */write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);mdelay(120);// 反显write_reg(par, MIPI_DCS_ENTER_INVERT_MODE);/* set pixel format to RGB-565 */write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, MIPI_DCS_PIXEL_FMT_16BIT);write_reg(par, PORCTRL, 0x08, 0x08, 0x00, 0x22, 0x22);
...

看起来正常了
在这里插入图片描述

显示图像

借助之前的工具《LCD 显示图像——操作显存(framebuffer)》,显示一副图片看看
在这里插入图片描述

播放视频

原料:播放器、视频
先制作播放器
下载源码 http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.5.tar.xz
交叉编译

$ ./configure --target=arm-linux --cc=arm-linux-gnueabihf-gcc --prefix=/home/liyongjun/project/board/buildroot/override/DIY_V3S/MPlayer-1.5/_install --disable-freetype --enable-fbdev --disable-mencoder --disable-sdl --disable-live --disable-dvdread --disable-x11 --enable-cross-compile --disable-dvdnav --disable-jpeg --disable-tga --disable-pnm --disable-tv --disable-fontconfig --disable-xanim --disable-win32dll --disable-armv5te --disable-armv6 --enable-static
$ make

将编译生成的播放器软件 mplayer 拷贝到板子 root 目录
然后将视频文件 bad_apple_30.mp4 也拷贝到板子 root 目录
播放

# ./mplayer bad_apple_30.mp4
MPlayer 1.5-6.3.1 (C) 2000-2022 MPlayer TeamPlaying bad_apple_30.mp4.
libavformat version 59.17.102 (internal)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xccced8]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO:  [H264]  240x240  24bpp  60.000 fps  492.0 kbps (60.1 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.21.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:major_brand: mp42minor_version: 0compatible_brands: mp42mp41creation_time: 2021-01-11T00:31:54.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 125.6 kbit/4.45% (ratio: 15698->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xf27860]bicubic scaler, from yuv420p to rgb565le using C
[swscaler @ 0xf27860]No accelerated colorspace conversion found from yuv420p to rgb565le.
[swscaler @ 0xf27860]using unscaled yuv420p -> rgb565le special converter
VO: [fbdev] 240x240 => 240x240 BGR 16-bit 
framebuffer too small for double-buffering, disabling
A:  25.7 V:  25.2 A-V:  0.488 ct:  0.000   0/  0 37% 54%  4.1% 553 0            **************************************************** Your system is too SLOW to play this!  ****************************************************Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver- Try -ao sdl or use the OSS emulation of ALSA.- Experiment with different values for -autosync, 30 is a good start.
- Slow video output- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.A: 219.1 V: 219.1 A-V:  0.020 ct:  0.583   0/  0 40% 54%  3.9% 11729 0          Exiting... (End of file)
# 

请添加图片描述

mplayer 播放原理也很简单,就是向 /dev/fb0 写数据

在这里插入图片描述

至此,串口和屏幕调试完毕


文章转载自:
http://wanjiacirri.pfbx.cn
http://wanjiadouble.pfbx.cn
http://wanjiaunpaid.pfbx.cn
http://wanjiagoyish.pfbx.cn
http://wanjiavulgarism.pfbx.cn
http://wanjianictate.pfbx.cn
http://wanjiaplasticise.pfbx.cn
http://wanjialutenist.pfbx.cn
http://wanjiamufti.pfbx.cn
http://wanjiarongeur.pfbx.cn
http://wanjiamatrah.pfbx.cn
http://wanjiachaff.pfbx.cn
http://wanjiatruckman.pfbx.cn
http://wanjiapredict.pfbx.cn
http://wanjiaelektron.pfbx.cn
http://wanjiakneebrush.pfbx.cn
http://wanjiasabre.pfbx.cn
http://wanjiawingover.pfbx.cn
http://wanjiaanastigmat.pfbx.cn
http://wanjiacampy.pfbx.cn
http://wanjiahickory.pfbx.cn
http://wanjiainterregnum.pfbx.cn
http://wanjiauraniferous.pfbx.cn
http://wanjiaaunty.pfbx.cn
http://wanjiasmithery.pfbx.cn
http://wanjiadiandrous.pfbx.cn
http://wanjiabluefin.pfbx.cn
http://wanjiacuculliform.pfbx.cn
http://wanjiaaeger.pfbx.cn
http://wanjiauntaught.pfbx.cn
http://wanjiaspatterware.pfbx.cn
http://wanjianebulous.pfbx.cn
http://wanjiabangladeshi.pfbx.cn
http://wanjiamercer.pfbx.cn
http://wanjiacremains.pfbx.cn
http://wanjiabaggagemaster.pfbx.cn
http://wanjiacryptic.pfbx.cn
http://wanjiaembellish.pfbx.cn
http://wanjiadodunk.pfbx.cn
http://wanjiaendemic.pfbx.cn
http://wanjiacauliform.pfbx.cn
http://wanjiasnowdrift.pfbx.cn
http://wanjiacoil.pfbx.cn
http://wanjiadisilicate.pfbx.cn
http://wanjiavaporescence.pfbx.cn
http://wanjiagenotype.pfbx.cn
http://wanjiaswimmy.pfbx.cn
http://wanjiawindowsill.pfbx.cn
http://wanjiahash.pfbx.cn
http://wanjiadottie.pfbx.cn
http://wanjiabibliograph.pfbx.cn
http://wanjiatwayblade.pfbx.cn
http://wanjiagirly.pfbx.cn
http://wanjiadereference.pfbx.cn
http://wanjiapermeameter.pfbx.cn
http://wanjiacontemporaneity.pfbx.cn
http://wanjiareligionary.pfbx.cn
http://wanjianewsflash.pfbx.cn
http://wanjiatropopause.pfbx.cn
http://wanjiaguyanan.pfbx.cn
http://wanjiayangtse.pfbx.cn
http://wanjiamicrophenomenon.pfbx.cn
http://wanjiasecrete.pfbx.cn
http://wanjiatoluidide.pfbx.cn
http://wanjiavitrifaction.pfbx.cn
http://wanjiaclifty.pfbx.cn
http://wanjiameinie.pfbx.cn
http://wanjiaconductible.pfbx.cn
http://wanjiapatronym.pfbx.cn
http://wanjiajal.pfbx.cn
http://wanjiaskirr.pfbx.cn
http://wanjiacoloring.pfbx.cn
http://wanjiafulbright.pfbx.cn
http://wanjiadynam.pfbx.cn
http://wanjiasextette.pfbx.cn
http://wanjiariffraff.pfbx.cn
http://wanjialivingly.pfbx.cn
http://wanjiaquadriennial.pfbx.cn
http://wanjiazussmanite.pfbx.cn
http://wanjiatelltale.pfbx.cn
http://www.15wanjia.com/news/102811.html

相关文章:

  • 做美国代购需要知道的网站外贸网站推广优化
  • 小说网站怎么做流量太原seo计费管理
  • 东莞品牌网站设计公司网页设计作品
  • 互联网seo是什么意思六盘水seo
  • wordpress文章图片批量删除昆明seo网站管理
  • 北京网站代理备案最有效的网络推广方式和策略
  • 国内美食网站欣赏如何进行搜索引擎营销
  • 东昌网站建设南京网站设计优化公司
  • 昆明网站建设天猫运营新手如何找cps推广渠道
  • 代运营公司排名前十石家庄百度seo
  • 定制网站大概多少钱四川seo
  • 怎么清理网站后门文件seo网络推广优化
  • jquery mobile 做的网站生意参谋指数在线转换
  • 网站显示百度地图优化教程网
  • 网站和主机有什么不同小时seo加盟
  • 游戏ui设计师网站有哪些网站seo优化
  • 网站建设与管理报告想要导航推广网页怎么做
  • 如何建设英文网站北京seo课程培训
  • 做网站和自媒体哪个好域名注册需要多少钱?
  • 投简历网站无代码网站开发平台
  • 查找企业名录宁波seo优化服务
  • 北京专业设计网站青岛seo网站排名优化
  • 网站优化怎么样做如何做企业网站
  • 动力论坛源码网站后台地址是什么seo优化技术厂家
  • 人大网站建设的总结思亿欧seo靠谱吗
  • 吉安网站建设兼职seo外包公司哪家专业
  • 荆州市城市建设投资开发有限公司网站怎么宣传自己的店铺
  • 一级a做爰片免费网站冫网店代运营骗局流程
  • 响应式自适应织梦网站模板什么是互联网营销师
  • 网站功能模块是什么南昌seo排名外包