저는 Stellaris® LM3S6965 평가 보드 인 Cortex M3를 사용하고 있습니다. 작동중인 oled 화면에 텍스트를 표시하려고합니다. 하지만 텍스트 크기를 늘리는 방법을 모르겠습니다.oled에서 텍스트 크기 늘리기 (Cortex M3, Stellaris LM3S6965)
아무도 그 방법을 알고 있습니까?
내 현재 코드 :
#include "inc/hw_types.h"
#include "driverlib/debug.h"
#include "driverlib/sysctl.h"
#include "drivers/rit128x96x4.h"
//*****************************************************************************
//
// The error routine that is called if the driver library encounters an error.
//
//*****************************************************************************
#ifdef DEBUG
void
__error__(char *pcFilename, unsigned long ulLine)
{
}
#endif
//*****************************************************************************
//
// Display scrolling text plus graphics on the OLED display.
//
//*****************************************************************************
int
main(void)
{
unsigned long ulRow, ulCol, ulWidth, ulHeight;
volatile int iDelay;
unsigned char *pucRow;
static char pucHello[] =
{
" "
"Current selected timezone: +2 GMT - Brussels"
" "
};
//
// Set the clocking to run directly from the crystal.
//
SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN |
SYSCTL_XTAL_8MHZ);
//
// Initialize the OLED display.
//
RIT128x96x4Init(1000000);
// Simple scrolling text display
//
ulCol = 0;
while(1)
{
//
// Display the text.
//
RIT128x96x4StringDraw(&pucHello[ulCol++], 8, 8, 11);
//
// Delay for a bit.
//
for(iDelay = 0; iDelay < 100000; iDelay++)
{
}
//
// Wrap the index back to the beginning of the string.
//
if(ulCol > 53)
{
ulCol = 0;
}
}
}
글꼴이'drivers/rit128x96x4.h ''에 설명되어 있다고 가정합니다. 똑같은 다른 헤더를 찾으십시오. – leppie