Data types and casting

18 Nov 2011

Can anyone help me out here?

I am getting data from a uCam module as unsigned char and writing them to a SD Card, and then displaying the data (the data is pixel colour) on a SPI TFT screen (which also reads in unsigned char).

The problem is that the SD Card only accepts char not unsigned char (it throws an error when I change the array to unsigned char). I think (hope) this is causing my program to hang. Is there anyway I can force / trick the SD Card into accepting unsigned char? I tried casting but this didn't seem to work.

Cheers Martin

18 Nov 2011

Show the code and the error message.