TA的每日心情 | 奋斗 2018-8-29 20:40 |
---|
签到天数: 1341 天 连续签到: 1 天 [LV.10]以坛为家III
|
楼主 |
发表于 2013-5-17 23:10:11
|
显示全部楼层
附加 关键代码- int main(void)
- {
- tContext sContext;
- tRectangle sRect;
- // Set the clocking to run directly from the crystal.
- //
- ROM_SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN);
- //
- // Initialize the device pinout appropriately for this board.
- //
- PinoutSet();
- //
- // Initialize the display driver.
- //
- Kitronix320x240x16_SSD2119Init();
- // Initialize the graphics context.
- //
- GrContextInit(&sContext, &g_sKitronix320x240x16_SSD2119);
- GrImageDraw(&sContext, g_pucImage,0, 0);
- while(1)
- {
- }
- return 0;
- }
复制代码 |
|