mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fixed ST7735 transfer_byte to write_byte without miso (#1529)
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Jesse Hills
						Jesse Hills
					
				
			
			
				
	
			
			
			
						parent
						
							bc64cf3e47
						
					
				
				
					commit
					ef89249019
				
			| @@ -407,7 +407,7 @@ void HOT ST7735::senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes) { | |||||||
|   this->cs_->digital_write(false); |   this->cs_->digital_write(false); | ||||||
|   this->enable(); |   this->enable(); | ||||||
|   for (uint8_t i = 0; i < num_data_bytes; i++) { |   for (uint8_t i = 0; i < num_data_bytes; i++) { | ||||||
|     this->transfer_byte(pgm_read_byte(data_bytes++));  // write byte - SPI library |     this->write_byte(pgm_read_byte(data_bytes++));  // write byte - SPI library | ||||||
|   } |   } | ||||||
|   this->cs_->digital_write(true); |   this->cs_->digital_write(true); | ||||||
|   this->disable(); |   this->disable(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user