My problem is;
In my program when I use EEPROM_Write code in Main program, it is work. Bu when ı use it "void B1 (void)" is don't work. I can explain my problem. I use two variable (Hs and Mode). When I pushed to button (GPIO20) Hs is increase, or (GPIO21) Hs is decrease. If I don't use the EEPROM_Write function Hs is work, after I use EEPROM_Write function Hs isn't work exactly. For exampla Hs = 9, and I push button first (GPIO20 it must be increase), Hs = 10, after I push button again Hs = 11, after again push button again Hs = 10, after Hs = 9, But if I push buttoon (GPIO20) Hs is always inrease. The same problem for GPIO21. I looked Write_buffer value, it is changeable. I said; Write_buffer[0] = Hs; Write_buffer[1] = Mode, but when for example Hs = 7, Write_buffer[0] = 145. I don't understand why Write_buffer changeble and when I use EEPROM_write function it isn't work correctly? Can you help me ?