' This program stores the numbers
' 1, 2, 3, 4 & 5 into the EEProm
' at compiler time.
' It then reads those numbers
' at run time.
Dim A As New oEEProm
Dim B1 As New oByte
Dim B2 As New oByte
Dim B3 As New oByte
Dim B4 As New oByte
Dim B5 As New oByte
Sub Main()
A.Data(1,2,3,4,5)
B1 = A
B2 = A
B3 = A
B4 = A
B5 = A
End Sub | // This program stores the numbers
// 1, 2, 3, 4 & 5 into the EEProm
// at compiler time.
// It then reads those numbers
// at run time.
oEEProm A = New oEEProm;
oByte B1 = New oByte;
oByte B2 = New oByte;
oByte B3 = New oByte;
oByte B4 = New oByte;
oByte B5 = New oByte;
Void Main(Void){
A.Data(1,2,3,4,5);
B1 = A;
B2 = A;
B3 = A;
B4 = A;
B5 = A;
} |
' This program stores the numbers
' 1, 2, 3, 4 & 5 into the EEProm
' at compiler time.
' It then reads those numbers
' at run time.
A As oEEProm
B1 As oByte
B2 As oByte
B3 As oByte
B4 As oByte
B5 As oByte
A.Data(1,2,3,4,5)
B1 = A
B2 = A
B3 = A
B4 = A
B5 = A | |