با سلام من یک متغییر را اینطوری تعریف کردم
این را میخوام ورودی تابع زیر قرار بدم اما ارور میده باید چه جوری تعریف کنم
کامپایلر کدویژن
کد:
unsigned int data_7seg[3][6];
کد:
[left]
void Shift(unsigned int data_shift)
{ int i;
for (i=0;i<8;i++)
{
if(data_shift & 0x01) //bit_is_set doesn’t work on unsigned int so we do this instead
DS_high();
else
DS_low();
SH_CP_low();
SH_CP_high();
data_shift=data_shift>>1; //Now bring next bit at MSB position
}
}
[/left]






دیدگاه