A little knowledge and difficulty about E2PROM storage in embedded blue bridge cup

A little knowledge and difficulty about E2PROM storage in embedded blue bridge cup

In fact, it’s not difficult to see it at a glance.
No, I’ve thought about it for a long time and haven’t figured it out. Insert picture description here
This is actually a simple code
that uses its initial value when it is not powered on, and uses its set value after power on.
Can help you achieve

	if(My_IIC_Read(0xfc)!=20)
	{
    
    
			my_iic_write(0xff,30);
			Delay_Ms(20);
			my_iic_write(0xfe,50);
			Delay_Ms(20);
			my_iic_write(0xfd,70);
			Delay_Ms(20);
			my_iic_write(0xfc,20);
			Delay_Ms(20);
	}
	IIC_Read_Data();
void IIC_Read_Data(void)
{
    
    
	Thre_1_num=My_IIC_Read(0xff);
	Delay_Ms(20);
  Thre_2_num=My_IIC_Read(0xfe);
	Delay_Ms(20);
	Thre_3_num=My_IIC_Read(0xfd);
	Delay_Ms(20);
}

Guess you like

Origin blog.csdn.net/m0_46179894/article/details/108897133