lib/SSD1306_Shim/SSD1306_Shim.cpp
// Issue single command to SSD1306, using I2C or hard/soft SPI as needed.
// Because command calls are often grouped, SPI transaction and selection
// must be started/ended in calling function for efficiency.
// This is a private function, not exposed (see ssd1306_command() instead).
Issue single command to SSD1306, using I2C or hard/soft SPI as needed.
Because command calls are often grouped, SPI transaction and selection
must be started/ended in calling function for efficiency.
This is a private function, not exposed  instead).
Issue single command to SSD1306 using I2C or hard / soft SPI as needed . Because command calls are often grouped SPI transaction and selection must be started / ended in calling function for efficiency . This is a private function not exposed instead ) .
void SSD1306_Shim::ssd1306_command1(uint8_t c) {
  if (wire) { 
    wire->beginTransmission(i2caddr);
    WIRE_WRITE((uint8_t)0x00); 
    WIRE_WRITE(c);
    wire->endTransmission();
  } else { 
    SSD1306_MODE_COMMAND
    SPIwrite(c);
  }
}
void SSD1306_Shim :: ssd1306_command1 ( uint8_t c ) { if ( wire ) { wire -> beginTransmission ( i2caddr ) ; WIRE_WRITE ( ( uint8_t ) 0x00 ) ; WIRE_WRITE ( c ) ; wire -> endTransmission ( ) ; } else { SSD1306_MODE_COMMAND SPIwrite ( c ) ; } }
Issue single command to SSD1306, using I2C or hard/soft SPI as needed.
Issue single command to SSD1306 using I2C or hard / soft SPI as needed .
// I2C // Co = 0, D/C = 0 // SPI (hw or soft) -- transaction started in calling function