RS485

Arduino: 1.5.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all

SLAVE_RS485.ino: In function 'void sendMSG(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte)':
SLAVE_RS485.ino:153:26: error: 'BYTE' was not declared in this scope
SLAVE_RS485.ino: In function 'void sendACK(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte)':
SLAVE_RS485.ino:185:26: error: 'BYTE' was not declared in this scope
SLAVE_RS485.ino: In function 'void sendNAK(byte, byte, byte, byte, byte, byte, byte, byte, byte, byte)':
SLAVE_RS485.ino:214:26: error: 'BYTE' was not declared in this scope
Ошибка компиляции.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

RS485.zip (3.26 KB)

This code uses an old definition that doesn't exist anymore. See here:
http://forum.arduino.cc/index.php?topic=85382.0

I do not understand how to solve this problem ???

I do not understand how to solve this problem

Perhaps you should read the responses in ALL of the places you posted this EXACT same question.

Thread locked in the presence of cross-posting and absence of a working thread merging mechanism

DO NOT CROSS-POST, IT WASTES TIME