Hi i am batteling with this software this is a small piece of software in a library.
When i compile the complete code with all the libraries there is no errors,(still finding my way around c).
When i create a new project and only use the main part and copy these two routines from the library and paste it just under the #defines i get a error ''com'' not defined.
I want to break the source code (that is scattered over several libraries)up into small pieces to understand the working of C .
How must this be structured to work outside the original library????
void ili9341_spi_send(unsigned char spi_data)//send spi data to display
SPDR=spi_data;//move data into spdr
while(!(SPSR & (1<<SPIF)));//wait till the transmission is finished
void ili9341_writecommand8(uint8_t com)//command write-------GET ERROR FROM THIS LINE------COM not defined
controlport &=~((1<<dc)|(1<<cs));//dc and cs both low to send command
controlport |=(1<<cs);//pull high cs