mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-30 22:54:44 +03:00 
			
		
		
		
	ssd1327: Modifying C++ example
Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
		 Zion Orent
					Zion Orent
				
			
				
					committed by
					
						 Sarah Knepper
						Sarah Knepper
					
				
			
			
				
	
			
			
			 Sarah Knepper
						Sarah Knepper
					
				
			
						parent
						
							19caf37088
						
					
				
				
					commit
					07c3bf5f25
				
			| @@ -109,16 +109,18 @@ main(int argc, char **argv) | |||||||
| //! [Interesting] | //! [Interesting] | ||||||
| 	upm::SSD1327 *lcd = new upm::SSD1327(BUS_NUMBER, 0x3C); | 	upm::SSD1327 *lcd = new upm::SSD1327(BUS_NUMBER, 0x3C); | ||||||
|  |  | ||||||
|  | 	// If you don't set the display to be white, the seeed logo will appear jagged | ||||||
|  | 	lcd->setGrayLevel(12); | ||||||
|  | 	lcd->draw(SeeedLogo, 96 * 96 / 8); | ||||||
|  |  | ||||||
| 	// Simple print hello world | 	// Simple print hello world | ||||||
|     for (uint8_t i = 0; i < 12; i++) { | 	for (uint8_t i = 0; i < 12; i++) | ||||||
|  | 	{ | ||||||
| 		lcd->setCursor(i, 0); | 		lcd->setCursor(i, 0); | ||||||
| 		lcd->setGrayLevel(i); | 		lcd->setGrayLevel(i); | ||||||
| 		lcd->write("Hello World"); | 		lcd->write("Hello World"); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|     // Simple print hello world |  | ||||||
|     lcd->draw(SeeedLogo, 96 * 96 / 8); |  | ||||||
|  |  | ||||||
| 	lcd->close(); | 	lcd->close(); | ||||||
| //! [Interesting] | //! [Interesting] | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user