|
|
(未显示同一用户的2个中间版本) |
第1行: |
第1行: |
− | ==Main sections== <!--T:6-->
| |
− | <categorytree mode=all style="float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;">ARM裸机加强版</categorytree>
| |
| | | |
− | === For system administrators === <!--T:7-->
| |
− |
| |
− | 再来解决最后一个问题:每个像素再FrameBuffer中,占据多少位BPP(Bits Per Pixels)?
| |
− | 前面的LCD引脚功能图里,R0-R7、G0-G7、B0-B7,每个像素是占据3*8=24位的,即硬件上LCD的BPP是确定的。
| |
− | 虽然LCD上的引脚是固定的,但我们使用的时候,可以根据实际情况进行取舍,比如我们的JZ2440使用的是16BPP,因此LCD只需要R0-R4、G0-G5、B0-B4与SOC相连,5+6+6=16BPP,每个像素就只占据16位数据。
| |
− |
| |
− | 我们写程序的思路如下:
| |
− | 1. 查看LCD芯片手册,查看相关的时间参数、分辨率、引脚极性;
| |
− | 2. 根据以上信息设置LCD控制器寄存器,让其发出正确信号;
| |
− | 3. 在内存里面分配一个FrameBuffer,在里面用若干位表示一个像素,再把首地址告诉LCD控制器;
| |
− |
| |
− | 之后LCD控制器就能周而复始取出FrameBuffer里面的像素数据,配合其它控制信号,发送给电子枪,电子枪再让在LCD上显示出来。以后我们想显示图像,只需要编写程序向FrameBuffer填入相应数据即可,硬件会自动的完成显示操作。
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | ''<translate><!--T:17--> More on <tvar|hub>{{ll|Sysadmin hub}}</>.</translate>''
| |
− | | style="width:50%; vertical-align:top; border:1px solid #aaa; padding:.5em 1.5em" |
| |
− | <translate>
| |
− | === For developers === <!--T:18-->
| |
− | </translate>
| |
− | ; <translate><!--T:19--> Architecture</translate>
| |
− | : <translate><!--T:20--> An overview of the key parts of MediaWiki's source code.</translate>
| |
− | : {{ll|Manual:Code|nsp=0}} | {{ll|Manual:Global object variables|nsp=0}} | [https://doc.wikimedia.org/ <translate><!--T:21--> Doxygen-generated documentation</translate>]
| |
− | ; {{ll|Manual:Database layout|nsp=0}}
| |
− | : <translate><!--T:22--> Details about the database architecture used by MediaWiki.</translate>
| |
− | : {{ll|Manual:MySQL|MySQL/MariaDB}} | {{ll|Manual:PostgreSQL|nsp=0}} | {{ll|Manual:SQLite|nsp=0}}
| |
− | ; {{ll|Manual:Developing extensions|nsp=0}}
| |
− | : <translate><!--T:24--> An overview of the ways to create a new MediaWiki extension.</translate>
| |
− | : {{ll|Manual:Hooks|nsp=0}} | {{ll|Manual:Parser functions|nsp=0}} | {{ll|Manual:Tag extensions|<translate><!--T:25--> Tag</translate>}} | {{ll|Manual:Special pages|<translate><!--T:26--> Special page</translate>}} | {{ll|Manual:Skins|nsp=0}}
| |
− | ; <translate><!--T:27--> Web access</translate>
| |
− | : <translate><!--T:28--> Details about [[w:Query string|query string]] parameters that can be passed to MediaWiki access scripts.</translate>
| |
− | : {{ll|Manual:Parameters to index.php|index.php}} | {{ll|API:Main page|api.php}}
| |
− |
| |
− | ''<translate><!--T:29--> More on <tvar|hub>{{ll|Developer hub}}</>.</translate>''
| |
− | |}
| |
− | <translate>
| |
− |
| |
− | === Others === <!--T:30-->
| |
− | </translate>
| |
− | ; {{ll|Manual:FAQ|<translate><!--T:31--> MediaWiki FAQ</translate>}}
| |
− | : <translate><!--T:32--> Frequently asked questions about MediaWiki.</translate>
| |
− |
| |
− | <translate>
| |
− | == Browsing the manual == <!--T:33-->
| |
− |
| |
− | <!--T:34-->
| |
− | There are multiple ways to browse through the documentation.</translate>
| |
− | <translate>
| |
− | <!--T:35-->
| |
− | Readers having trouble finding a particular topic in the section above may find the following ways of browsing to be helpful.
| |
− | </translate>
| |
− | * [[Special:Allpages/Manual:]] - <translate><!--T:36--> An automatically generated list of all pages in the Manual: namespace.</translate>
| |
− | * [[:Category:Manual]] - <translate><!--T:37--> the top-level Manual category</translate>
| |
− |
| |
− | <translate>
| |
− | == Improving the manual == <!--T:38-->
| |
− |
| |
− | <!--T:39-->
| |
− | * There are still a lot of holes in this manual!</translate> <translate><!--T:40--> See the [[<tvar|todo>Special:MyLanguage/Manual:Contents/To do</>|'to do' page]] for details.</translate>
| |
− | <translate>
| |
− | <!--T:41-->
| |
− | * There is still content on <tvar|url>https://meta.wikimedia.org</> which may need to be migrated.</translate> <translate><!--T:42--> If you can't find information on a particular issue in this documentation, please visit <tvar|help>[[meta:Help:Contents]]</>.</translate>
| |
− | <translate>
| |
− | <!--T:43-->
| |
− | * '''[[Project:Manual]]''' is a place to discuss and co-ordinate the development of the Manual: namespace.</translate>
| |
− | <translate>
| |
− | <!--T:44-->
| |
− | * See also <tvar|issues>[[Project:Current issues]]</>.
| |
− |
| |
− | == MediaWiki Virtual Library == <!--T:45-->
| |
− |
| |
− |
| |
− | [[Category:ARM裸机加强版 ]]
| |
− | [[Category:第001课_不要再用老方法学习单片机和ARM(免费)]]
| |