This function is used to refresh the OLED display. It loops through the rows (from 2 to 7) and sets the page address (0xb0 + i) and column address (0x00 and 0x10) for each row. Then it writes the data stored in the OLED_GRAM array to the display using OLED_WR_Byte function. OLED_GRAM is a 128x8 array that stores the data to be displayed on the OLED. Each element in the array represents a single pixel on the display. The function updates only the rows from 2 to 7, as the first two rows are reserved for the control commands and do not display any data

void OLED_Refresh_Gramvoid	u8 in;		 	fori=2;i8;i++ oledÏÔÊ¾ÇøÓòÖ»ÓеÚ3Ðе½µÚ8ÐÐ	 		OLED_WR_Byte 0xb0+iOLED_CMD; ÉèÖÃÒ³µØÖ·£¨0~7£©		OLED_WR_Byte 0x00OLED_CMD; ÉèÖÃÏÔʾλÖáªÁе͵ØÖ·		OLED_

原文地址: https://www.cveoy.top/t/topic/cqhS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录