树莓派spi超频的方法

树莓派使用spi接口的显示屏超频,实现显示加速的方法:

刚在国外的一个网站上看到了用更高的频率来进行显示的【显示超频】……
下面引用原文:

    I want better performance and faster updates!
    You can change the SPI frequency (overclock the display) by editing /etc/modprobe.d/adafruit.conf and changing the options line to:
    options fbtft_device name=adafruitrt28 rotate=90 frequency=62000000 fps=60
    here's the thing, the Pi only supports a fixed number of SPI frequencies. So tweaking the number a little won't do anything. The kernel will round the number to the closest value. You will always get frequencies that are 250MHz divided by an even number. Here's the only SPI frequencies this kernel supports
    15,625,000 (a.k.a 16000000 = 16 MHz)
    17,857,142 (a.k.a. 18000000 = 18 MHz)
    20,833,333 (a.k.a 21000000 = 21 MHz)
    25,000,000 (= 25 MHz)
    31,250,000 (a.k.a 32000000 = 32MHz)
    41,666,666 (a.k.a 42000000 = 42MHz)
    62,500,000 (a.k.a 62000000 = 62MHz)
    So if you put in 48000000 for the speed, you won't actually get 48MHz, you'll actually only get about 42MHz because it gets rounded down. We tested this display nicely with 32MHz and we suggest that. But you can put in 42MHz or even try 62MHz and it will update faster
    You can tweak fps (frames per second) from 20 to 60 and frequency up to 62MHz for tradeoffs in performance and speed. Reboot after each edit to make sure the settings are loaded properly. There's a trade off that if you ask for higher FPS you're going to load the kernel more because it's trying to keep the display updated.

复制代码
也就是说……超到62MHz也成为可能……只是都是一个整数倍,也就是说之前我用50MHz的速率实际上应该是不被支持的……


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值