horace1
Advanced Member level 5
- Joined
- Nov 18, 2008
- Messages
- 2,118
- Helped
- 596
- Reputation
- 1,188
- Reaction score
- 571
- Trophy points
- 1,393
- Location
- Norwich, UK
- Activity points
- 13,063
the results
098 136 099 200 098 128 070 000 116 035 244 017
looks like random data - were these the value you could see on the TFT?
not used micro C so don't know which function is suitable
what does the micro C documentation say?
try
see if the RPM text appears correctly each time
098 136 099 200 098 128 070 000 116 035 244 017
looks like random data - were these the value you could see on the TFT?
not used micro C so don't know which function is suitable
what does the micro C documentation say?
try
Code:
if(RPMindex == 1000){
for(i = 0; i < 1000; i++){
char Txt[20]={0};
sprintf(Txt,"RPM %d\n", RPM[i]); // Convert to string
UART_Write_Text(Txt); // transmit the string
}
RPMindex = 0; // reset array index
}