Arduino uno error compile

Hello !
Code for Arduino I have from:
http://www.cnc-club.ru/forum/viewtopic.php?f=41&t=9337&sid=cbc29993481d13f61b5e7c4ebce89544&start=20

This is a PWM power controller controlled by laser MACH3. CODE CREATOR does not want to help. …
During compilation, an error is thrown:
"LCD1602_11.ino: In function ‘int INCR ()’:
LCD1602_11.ino: 139: 23: error: ‘EEPROM_write’ was not declared in this scope
LCD1602_11.ino: 149: 23: error: ‘EEPROM_write’ was not declared in this scope
LCD1602_11.ino: In function ‘int DECR ()’:
LCD1602_11.ino: 165: 23: error: ‘EEPROM_write’ was not declared in this scope
LCD1602_11.ino: 175: 23: error: ‘EEPROM_write’ was not declared in this scope
LCD1602_11.ino: In function ‘void setup ()’:
LCD1602_11.ino: 184: 21: error: ‘EEPROM_read’ was not declared in this scope
LCD1602_11.ino: 193: 23: error: ‘EEPROM_write’ was not declared in this scope "

Can I request a code verification?

LCD1602_11.ino (8.95 KB)

Can't view your code as I'm on a cell phone at the moment. You can try EEPROM.write.

I have a problem with Pin A0 from the attached schema.

Is “swich” supposed to be as opposed as fig2?

fig2.jpg

Thank you "Sterretje"

After replacing "EEPROM_write" with "EEPROM.write", such message "

"LCD1602_11.ino: In function 'void setup ()': 1841: error: 'EEPROM_read' was not declared in this scope "

You're using EEPROM incorrectly - see the examples here:

They all start with EEPROM. - not EEPROM_ - and it looks like you're treating them like get/put, not read/write.

Look at the EEPROM library reference, and the examples there:

https://www.arduino.cc/en/Reference/EEPROM

Code with english comment corrected “EEPROM_” on "EEPROM.
error:

poprawka_eeprom.ino: In function ‘void setup()’:
poprawka_eeprom.ino:184:21: error: no matching function for call to ‘EEPROMClass::read(int, long unsigned int&)’
poprawka_eeprom.ino:184:21: note: candidate is:
In file included from poprawka_eeprom.ino:2:0:
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: uint8_t EEPROMClass::read(int)
uint8_t read(int);
^
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: candidate expects 1 argument, 2 provided
poprawka_eeprom.ino:187:22: error: no matching function for call to ‘EEPROMClass::read(int, long unsigned int&)’
poprawka_eeprom.ino:187:22: note: candidate is:
In file included from poprawka_eeprom.ino:2:0:
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: uint8_t EEPROMClass::read(int)
uint8_t read(int);
^
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: candidate expects 1 argument, 2 provided
poprawka_eeprom.ino:188:22: error: no matching function for call to ‘EEPROMClass::read(int, long unsigned int&)’
poprawka_eeprom.ino:188:22: note: candidate is:
In file included from poprawka_eeprom.ino:2:0:
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: uint8_t EEPROMClass::read(int)
uint8_t read(int);
^
C:\Users\Marek\Downloads\arduino-1.6.0-windows\arduino-1.6.0\hardware\arduino\avr\libraries\EEPROM/EEPROM.h:28:13: note: candidate expects 1 argument, 2 provided
poprawka_eeprom.ino:210:22: error: ‘impuls’ was not declared in this scope
poprawka_eeprom.ino: At global scope:
poprawka_eeprom.ino:251:3: error: expected unqualified-id before ‘{’ token
Błąd kompilacji.

poprawka_eeprom.ino (11.2 KB)

I can not help myself. I can not encode .... Can someone do a good deed and fix the attached * .ino file

See what I said above - you're treating them like get/put, not read/write.

read/write work on a single byte at a time only, and read returns that value, it does not take a second argument to store the value in.

get/put work on any datatype, and you pass the variable to store the value read from the eeprom as the second argument (like you're trying to do on read).

It really sounds like you have not read the EEPROM library reference I linked to above....