I have trouble using the serial interface of my calculator. I thought that the following code would output tons of 'A's, but it does not. I would be happy if anyone could help me out with this.
Code:
Code:
#include <fxcg/serial.h>
int main() {
unsigned char writes = 'A';
if (Serial_IsOpen() == 1) {
Serial_Close((int)1);
}
unsigned char mode[6] = {0, 5, 0, 0, 0, 0};
Serial_Open(mode);
while(1) {
Serial_WriteUnbuffered(writes);
}
return 0;
}