/* Writes a command to the display controller. 
This functions pull pin D/C# low before writing to the controller. Different data write function is called based on the selected interface. */
void ssd1306_write_command(uint8_t command)
/* Writes a command to the display controller. 
This functions pull pin D/C# low before writing to the controller. Different data write function is called based on the selected interface. */
void ssd1306_write_command(uint8_t command)
{
	spi_select_slave(&ssd1306_master, &ssd1306_slave, true);
	port_pin_set_output_level(SSD1306_DC_PIN, false);
	spi_write_buffer_wait(&ssd1306_master, &command, 1);
	spi_select_slave(&ssd1306_master, &ssd1306_slave, false);
}