B4R Question EEPROM

Rrobyy

Member
I was trying to use EEPROM,

Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Private buffer() As Byte
Private eeprom As EEPROM
Private bc As ByteConverter
End Sub

Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
Dim data() As Byte = Array As Byte( 1,2,3 )
eeprom.WriteBytes(data,0)
buffer = eeprom.ReadBytes(0,3)
Log(buffer)
End Sub

but it said
"Cannot set a Const variable ( global non-primitive variables are always constants)."

what should i do ?
Thank You
 
Top