display.h
void displayInit(void) {
    
	// initialize the GPIO pins
	gpioInit();
	gpioIn(ILI9340_DATA_CMD_PIN);
	gpioOut(ILI9340_DATA_CMD_PIN);
	gpioIn(ILI9340_CHIPSELECT_PIN);
	gpioOut(ILI9340_CHIPSELECT_PIN);

	// initialize SPI
	spiInit();

	// basic display setup
	display.width = 320;
	display.height = 240;
	displaySetup();

}
/** initialize all needed components and perform basic display setup */
initialize all needed components and perform basic display setup
initialize all needed components and perform basic display setup
void displayInit(void) {
	gpioInit();
	gpioIn(ILI9340_DATA_CMD_PIN);
	gpioOut(ILI9340_DATA_CMD_PIN);
	gpioIn(ILI9340_CHIPSELECT_PIN);
	gpioOut(ILI9340_CHIPSELECT_PIN);
	spiInit();
	display.width = 320;
	display.height = 240;
	displaySetup();
}
void displayInit ( void ) { gpioInit ( ) ; gpioIn ( ILI9340_DATA_CMD_PIN ) ; gpioOut ( ILI9340_DATA_CMD_PIN ) ; gpioIn ( ILI9340_CHIPSELECT_PIN ) ; gpioOut ( ILI9340_CHIPSELECT_PIN ) ; spiInit ( ) ; display . width = 320 ; display . height = 240 ; displaySetup ( ) ; }
initialize all needed components and perform basic display setup
initialize all needed components and perform basic display setup
// initialize the GPIO pins // initialize SPI // basic display setup