在 MSP430F5529 experiment board给的例程中在头文件HAL_Dogs102x64.h中包含许多液晶屏处理函数。我把这个头文件何其对应的.c文件导入到新建的工程中,
其显示字符串函数如下
/***************************************************************************//**
* @brief Writes a String to the LCD at (row,col).
*
* (0,0) is the upper left corner of screen.
* @param row Page Address (there are 8 pages on the screen, each is 8 pixels
* tall) (0 - 7)
* @param col Column Address (there are 102 columns on the screen) (0 - 101)
* @param word[] Pointer to the String to be written to the LCD
* @param style The style of the text
* - NORMAL = 0 = dark letters with light background
* - INVERT = 1 = light letters with dark background
* @return None
******************************************************************************/
void Dogs102x6_stringDraw(uint8_t row, uint8_t col, char *word, uint8_t style)
{
// Each Character consists of 6 Columns on 1 Page
// Each Page presents 8 pixels vertically (top = MSB)
uint8_t a = 0;
// Row boundary check
if (row > 7)
{
row = 7;
}
// Column boundary check
if (col > 101)
{
col = 101;
}
while (word[a] != 0)
{
// check for line feed '/n'
if (word[a] != 0x0A)
{
//check for carriage return '/r' (ignore if found)
if (word[a] != 0x0D)
{
//Draw a character
Dogs102x6_charDraw(row, col, word[a], style);
//Update location
col += 6;
//Text wrapping
if (col >= 102)
{
col = 0;
if (row < 7)
row++;
else
row = 0;
}
}
}
// handle line feed character
else
{
if (row < 7)
row++;
else
row = 0;
col = 0;
}
a++;
}
}
我在柱函数里写了一句话
void Dogs102x6_stringDraw(0,0,"hello",0);
结果就提示我这句话语法有问题#83expected a type specifier,
这个函数定义时参数类型是uint8_t,我看了一下msp430.h,里面有 typedef unsigned char uint8_t;也就是uint8_t是字符型,
但是怎么看这个函数参数都应该是整形变量,这个头文件中有很多参数都是uint8_t型,参考别的例子也是这么写的,但是我的就是编译不通过,请问
这是什么问题?