kuenyls
02-25-2010, 09:26 AM
··I am·writing data from an accelerometer into eeprom. I am·able to display the accelerometer data as I record the data. After writing the code and reading it to display the two values do not match. I am able to match the sign value with a 0 or 1. The first whole number value matches but the decimals do not. Can you tell me why.. Here is a copy of the complete code and the corresponding output data.
·················································· ······························ ' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - DatalogAcceleration.bs2
' Datalogs 500 x and y-axis acceleration measurements.
'{$STAMP BS2pe}
'{$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Reset········· DATA··· 0
Records······· DATA··· (500)
RecordsEnd···· DATA
' -----[ I/O Definitions ]-------------------------------------------------
Xin············ PIN···· 8······················ ' X input from Memsic 2125
Yin············ PIN···· 9······················ ' Y input from Memsic 2125
' -----[ Constants ]-------------------------------------------------------
' Set scale factor for PULSIN
#SELECT $STAMP
· #CASE BS2PE
··· Scale······ CON···· $1E1··················· ' 1.88 us per unit
#ENDSELECT
HiPulse········ CON···· 1······················ ' measure high-going pulse
LoPulse········ CON···· 0
DegSym········· CON···· 176···················· ' degrees symbol
' -----[ Variables ]----------------------------------------------------------
char·········· VAR···· Byte
eeIndex······· VAR···· Word
value········· VAR···· Word
'x············· VAR···· value
'y············· VAR···· Word
xRaw··········· VAR···· Word··················· ' pulse from Memsic 2125
xmG············ VAR···· Word··················· ' g force (1000ths)
xmG1············ VAR···· Word··················· ' g force (1000ths)
'xTilt·········· VAR···· Word··················· ' tilt angle
yRaw··········· VAR···· Word
ymG············ VAR···· Word
ymG1············ VAR···· Word
xmG2············ VAR···· Word
xmG3············ VAR···· Word
ymG2············ VAR···· Word
ymG3············ VAR···· Word
··· ' g force (1000ths)
'yTilt·········· VAR···· Word
disp··········· VAR···· Byte··················· ' displacement (0.0 - 0.99)
'angle·········· VAR···· Byte··················· ' tilt angle
' -----[ Initialization ]-----------------------------------------------------
Init:
READ Reset, value
value = value + 1
WRITE Reset, value
IF value // 2 = 0 THEN
· FOR char = 10 TO 0
··· DEBUG CLS, "Datalogging starts", CR,
·············· "in ", DEC2 char, " seconds",
·············· CR, CR,
·············· "Press/release Reset", CR,
·············· "for menu..."
··· PAUSE 950
· NEXT
· GOSUB Record_Data
ENDIF
' -----[ Main Routine ]-------------------------------------------------------
DO
· DEBUG CLS,
······· "Press/Release Reset", CR,
······· "to arm datalogger ", CR, CR,
······· " - or - ", CR, CR,
······· "Type C, R or W", CR,
······· "C - Clear records", CR,
······· "R - Record records", CR,
······· "W - Display records", CR,
······· ">"
· DEBUGIN char
· DEBUG CR
· SELECT char
··· CASE "C", "c"
····· GOSUB Clear_Data
··· CASE "R", "r"
····· GOSUB Record_Data
··· CASE "W", "w"
····· GOSUB Display_Data
··· CASE ELSE
····· DEBUG CR, "Not a valid entry.",
··········· CR, "Try again."
····· PAUSE 1500
· ENDSELECT
LOOP
' -----[ Subroutine - Clear_Data ]--------------------------------------------
Clear_Data:
· DEBUG CR, "Clearing..."
· FOR eeIndex = Records TO RecordsEnd
··· WRITE eeIndex, 0
· NEXT
· DEBUG CR, "Records cleared."
· PAUSE 1000
· RETURN
' -----[ Subroutine - Record_Data ]-------------------------------------------
Record_Data:
· PAUSE 200
· DEBUG CLS, "Recording..."
· FOR eeIndex = Records TO RecordsEnd STEP 6
··· PULSIN Xin, HiPulse, xRaw···················· ' read pulse output
····· xRaw = xRaw */ Scale························· ' convert to uSecs
····· xmG = ((xRaw / 10) - 500) * 8················ ' calc 1/1000 g
··· PULSIN Yin, HiPulse, yRaw
····· yRaw = yRaw */ Scale
····· ymG = ((yRaw / 10) - 500) * 8
····· DEBUG DEC eeIndex, CRSRX, 7, (xmG.BIT15 * 13 + " "),
········· DEC (ABS xmG / 1000), ".", DEC3 (ABS xmG), " gs", CRSRX, 14, (ymG.BIT15 * 13 + " "),
········· DEC (ABS ymG / 1000), ".", DEC3 (ABS ymG), " gs", CR
··· WRITE eeIndex,Word (xmG.BIT15)
··· WRITE eeIndex +1, Word (ABS xmG / 1000)
··· WRITE eeIndex +2, Word (ABS xmG)
··· WRITE eeIndex +3 , Word (ymG.BIT15)
··· WRITE eeIndex +4, Word (ABS ymG / 1000)
··· WRITE eeIndex +5, Word (ABS ymG)
· NEXT
· PAUSE 950
· DEBUG CR, "End of records.",
······· CR, "Press Enter for menu..."
· DEBUGIN char
· RETURN
' -----[ Subroutine - Display_Data ]------------------------------------------
Display_Data:
· DEBUG CR, "Index· x-axis· y-axis",
······· CR, "-----· ------· ------",
······· CR
·· eeIndex = 0
· FOR eeIndex = Records TO RecordsEnd STEP 6
·READ eeIndex,· xmG1
· READ eeIndex +1 , xmG2
· READ eeIndex +2, xmG3
·READ eeIndex +3, ymG1
· READ eeIndex +4, ymG2
· READ eeIndex +5, ymG3
··· 'DEBUG DEC eeIndex, CRSRX, 7, (xmG1 + " "),
······· '· DEC (xmG2), ".", DEC3 (xmG3), " g", CRSRX, 14, (ymG1 + " "),
········ 'DEC (ymG2), ".", DEC3 (ymG3), " g", CR
··· DEBUG DEC eeIndex, CRSRX, 7,·· DEC (xmG1), " ", DEC1 (xmG2),".", DEC1 xmG3,
···· " g·· " , CRSRX, 14, DEC ymG1, " ", DEC1 (ymG2), ".", DEC1 (ymG3), "g", CR
· NEXT
· DEBUG CR, "Press Enter for menu..."
· DEBUGIN char
· RETURN
'Get_Gforce:
·' DO
· '· PAUSE 25··························· ' small loop pad
·· ' OWIN 6, 4, [Xin]··················· ' check status (bit transfer)
·' LOOP UNTIL (Xin)····················· ' 1 when complete
· 'OWOUT 6, 1, ["b", 1, SDEC4 xmG]··············· ' read DS1822 scratchpad
· 'OWIN· 6, 2, [Xin, Yin]··············· ' get raw temp data
· 'RETURN
Here is the output from the debug window.
Recordi-0.280 -0.288 gs
7····· -0.280 -0.288 gs
13···· -0.280 -0.288 gs
19···· -0.280 -0.296 gs
25···· -0.280 -0.296 gs
31···· -0.280 -0.304 gs
37···· -0.464· 0.136 gs
43···· -0.792· 0.000 gs
49····· 1.776 -2.008 gs
55···· -3.200· 1.560 gs
61···· -1.120 -0.184 gs
67····· 1.424 -2.888 gs
73···· -2.200 -0.016 gs
79···· -1.432· 0.536 gs
85····· 2.496 -3.480 gs
91···· -2.488 -0.912 gs
97···· -1.472· 0.920 gs
103···· 2.280 -2.664 gs
109··· -3.920· 1.360 gs
115···· 2.960 -2.568 gs
121··· -3.584· 1.016 gs
127···· 1.480 -3.728 gs
133··· -2.936 -0.048 gs
139··· -1.312· 0.640 gs
145···· 2.232 -2.144 gs
151··· -4.000· 1.112 gs
157··· -0.080 -2.736 gs
163··· -1.000 -0.144 gs
169··· -1.520· 0.616 gs
175···· 1.304 -1.320 gs
181··· -3.792· 1.912 gs
187···· 0.768 -2.528 gs
193··· -3.688· 1.600 gs
199···· 2.168 -2.904 gs
205··· -3.792· 1.048 gs
211···· 1.344 -3.040 gs
217··· -3.752· 1.176 gs
223···· 3.416 -3.312 gs
229··· -3.696 -0.128 gs
235···· 2.592 -4.000 gs
241··· -3.600· 0.712 gs
247···· 3.416 -3.936 gs
253··· -3.576· 1.904 gs
259···· 1.800 -3.896 gs
Press/Release Reset
to arm datalogger
·- or -
Type C, R or W
C - Clear records
R - Record records
W - Display records
>w
Index· x-axis· y-axis
-----· ------· ------
1····· 1 0.4 g1 0.2g
7····· 1 0.4 g1 0.2g
13···· 1 0.4 g1 0.2g
19···· 1 0.4 g1 0.0g
25···· 1 0.4 g1 0.0g
31···· 1 0.4 g1 0.8g
37···· 1 0.8 g0 0.6g
43···· 1 0.4 g0 0.0g
49···· 0 1.0 g1 2.6g
55···· 1 3.8 g0 1.4g
61···· 1 1.6 g1 0.4g
67···· 0 1.4 g1 2.2g
73···· 1 2.2 g1 0.6g
79···· 1 1.2 g0 0.4g
85···· 0 2.2 g1 3.2g
91···· 1 2.4 g1 0.4g
97···· 1 1.2 g0 0.2g
103··· 0 2.2 g1 2.4g
109··· 1 3.0 g0 1.0g
115··· 0 2.4 g1 2.8g
121··· 1 3.0 g0 1.8g
127··· 0 1.0 g1 3.4g
133··· 1 2.0 g1 0.8g
139··· 1 1.2 g0 0.8g
145··· 0 2.4 g1 2.6g
151··· 1 4.0 g0 1.8g
157··· 1 0.0 g1 2.6g
163··· 1 1.2 g1 0.4g
169··· 1 1.0 g0 0.4g
175··· 0 1.4 g1 1.0g
181··· 1 3.8 g0 1.0g
187··· 0 0.0 g1 2.4g
193··· 1 3.4 g0 1.4g
199··· 0 2.0 g1 2.8g
205··· 1 3.8 g0 1.4g
211··· 0 1.4 g1 3.4g
217··· 1 3.8 g0 1.2g
223··· 0 3.8 g1 3.0g
229··· 1 3.2 g1 0.8g
235··· 0 2.2 g1 4.0g
241··· 1 3.6 g0 0.0g
247··· 0 3.8 g1 3.6g
253··· 1 3.8 g0 1.2g
259··· 0 1.8 g1 3.6g
265··· 1 4.0 g0 2.6g
271··· 0 2.0 g1 3.6g
277··· 1 3.2 g0 1.4g
283··· 0 2.6 g1 2.6g
289··· 1 3.6 g0 0.2g
295··· 1 0.0 g1 3.4g
301··· 1 3.2 g0 1.8g
307··· 0 2.6 g1 2.8g
313··· 1 2.8 g0 1.8g
319··· 1 0.0 g0 1.2g
325··· 0 0.6 g0 0.8g
331··· 0 0.0 g1 3.4g
337··· 1 3.4 g0 2.2g
343··· 1 0.2 g0 0.8g
349··· 1 0.4 g0 0.0g
355··· 1 0.6 g0 0.8g
361··· 1 0.6 g1 2.0g
367··· 1 1.0 g1 1.6g
373··· 0 0.4 g1 0.8g
379··· 1 0.0 g0 1.0g
385··· 1 0.2 g0 0.0g
391··· 1 0.4 g1 1.2g
397··· 1 2.2 g1 0.8g
403··· 1 0.0 g0 1.8g
409··· 1 0.6 g0 0.8g
415··· 1 0.6 g0 0.6g
421··· 1 0.2 g0 0.6g
427··· 1 0.0 g0 0.8g
433··· 0 0.2 g0 0.0g
439··· 1 0.4 g0 0.8g
445··· 1 0.2 g1 0.2g
451··· 0 0.6 g1 0.2g
457··· 1 0.0 g1 0.2g
463··· 1 0.8 g1 0.0g
469··· 1 0.8 g1 0.0g
475··· 1 0.0 g1 0.0g
481··· 1 0.8 g1 0.2g
487··· 1 0.8 g1 0.2g
493··· 1 0.8 g1 0.2g
499··· 1 0.8 g1 0.4g
While printing the debug after reading we have tried a number of combinations of DEC, DEC1, DEC2, DEC3 etc. None of these quite match.
·Thank you Thank you Thank you.·
All my love http://forums.parallax.com/images/smilies/freaked.gif· this is me pulling my hair out ......
·
·················································· ······························ ' -----[ Title ]--------------------------------------------------------------
' Smart Sensors and Applications - DatalogAcceleration.bs2
' Datalogs 500 x and y-axis acceleration measurements.
'{$STAMP BS2pe}
'{$PBASIC 2.5}
' -----[ DATA Directives ]----------------------------------------------------
Reset········· DATA··· 0
Records······· DATA··· (500)
RecordsEnd···· DATA
' -----[ I/O Definitions ]-------------------------------------------------
Xin············ PIN···· 8······················ ' X input from Memsic 2125
Yin············ PIN···· 9······················ ' Y input from Memsic 2125
' -----[ Constants ]-------------------------------------------------------
' Set scale factor for PULSIN
#SELECT $STAMP
· #CASE BS2PE
··· Scale······ CON···· $1E1··················· ' 1.88 us per unit
#ENDSELECT
HiPulse········ CON···· 1······················ ' measure high-going pulse
LoPulse········ CON···· 0
DegSym········· CON···· 176···················· ' degrees symbol
' -----[ Variables ]----------------------------------------------------------
char·········· VAR···· Byte
eeIndex······· VAR···· Word
value········· VAR···· Word
'x············· VAR···· value
'y············· VAR···· Word
xRaw··········· VAR···· Word··················· ' pulse from Memsic 2125
xmG············ VAR···· Word··················· ' g force (1000ths)
xmG1············ VAR···· Word··················· ' g force (1000ths)
'xTilt·········· VAR···· Word··················· ' tilt angle
yRaw··········· VAR···· Word
ymG············ VAR···· Word
ymG1············ VAR···· Word
xmG2············ VAR···· Word
xmG3············ VAR···· Word
ymG2············ VAR···· Word
ymG3············ VAR···· Word
··· ' g force (1000ths)
'yTilt·········· VAR···· Word
disp··········· VAR···· Byte··················· ' displacement (0.0 - 0.99)
'angle·········· VAR···· Byte··················· ' tilt angle
' -----[ Initialization ]-----------------------------------------------------
Init:
READ Reset, value
value = value + 1
WRITE Reset, value
IF value // 2 = 0 THEN
· FOR char = 10 TO 0
··· DEBUG CLS, "Datalogging starts", CR,
·············· "in ", DEC2 char, " seconds",
·············· CR, CR,
·············· "Press/release Reset", CR,
·············· "for menu..."
··· PAUSE 950
· NEXT
· GOSUB Record_Data
ENDIF
' -----[ Main Routine ]-------------------------------------------------------
DO
· DEBUG CLS,
······· "Press/Release Reset", CR,
······· "to arm datalogger ", CR, CR,
······· " - or - ", CR, CR,
······· "Type C, R or W", CR,
······· "C - Clear records", CR,
······· "R - Record records", CR,
······· "W - Display records", CR,
······· ">"
· DEBUGIN char
· DEBUG CR
· SELECT char
··· CASE "C", "c"
····· GOSUB Clear_Data
··· CASE "R", "r"
····· GOSUB Record_Data
··· CASE "W", "w"
····· GOSUB Display_Data
··· CASE ELSE
····· DEBUG CR, "Not a valid entry.",
··········· CR, "Try again."
····· PAUSE 1500
· ENDSELECT
LOOP
' -----[ Subroutine - Clear_Data ]--------------------------------------------
Clear_Data:
· DEBUG CR, "Clearing..."
· FOR eeIndex = Records TO RecordsEnd
··· WRITE eeIndex, 0
· NEXT
· DEBUG CR, "Records cleared."
· PAUSE 1000
· RETURN
' -----[ Subroutine - Record_Data ]-------------------------------------------
Record_Data:
· PAUSE 200
· DEBUG CLS, "Recording..."
· FOR eeIndex = Records TO RecordsEnd STEP 6
··· PULSIN Xin, HiPulse, xRaw···················· ' read pulse output
····· xRaw = xRaw */ Scale························· ' convert to uSecs
····· xmG = ((xRaw / 10) - 500) * 8················ ' calc 1/1000 g
··· PULSIN Yin, HiPulse, yRaw
····· yRaw = yRaw */ Scale
····· ymG = ((yRaw / 10) - 500) * 8
····· DEBUG DEC eeIndex, CRSRX, 7, (xmG.BIT15 * 13 + " "),
········· DEC (ABS xmG / 1000), ".", DEC3 (ABS xmG), " gs", CRSRX, 14, (ymG.BIT15 * 13 + " "),
········· DEC (ABS ymG / 1000), ".", DEC3 (ABS ymG), " gs", CR
··· WRITE eeIndex,Word (xmG.BIT15)
··· WRITE eeIndex +1, Word (ABS xmG / 1000)
··· WRITE eeIndex +2, Word (ABS xmG)
··· WRITE eeIndex +3 , Word (ymG.BIT15)
··· WRITE eeIndex +4, Word (ABS ymG / 1000)
··· WRITE eeIndex +5, Word (ABS ymG)
· NEXT
· PAUSE 950
· DEBUG CR, "End of records.",
······· CR, "Press Enter for menu..."
· DEBUGIN char
· RETURN
' -----[ Subroutine - Display_Data ]------------------------------------------
Display_Data:
· DEBUG CR, "Index· x-axis· y-axis",
······· CR, "-----· ------· ------",
······· CR
·· eeIndex = 0
· FOR eeIndex = Records TO RecordsEnd STEP 6
·READ eeIndex,· xmG1
· READ eeIndex +1 , xmG2
· READ eeIndex +2, xmG3
·READ eeIndex +3, ymG1
· READ eeIndex +4, ymG2
· READ eeIndex +5, ymG3
··· 'DEBUG DEC eeIndex, CRSRX, 7, (xmG1 + " "),
······· '· DEC (xmG2), ".", DEC3 (xmG3), " g", CRSRX, 14, (ymG1 + " "),
········ 'DEC (ymG2), ".", DEC3 (ymG3), " g", CR
··· DEBUG DEC eeIndex, CRSRX, 7,·· DEC (xmG1), " ", DEC1 (xmG2),".", DEC1 xmG3,
···· " g·· " , CRSRX, 14, DEC ymG1, " ", DEC1 (ymG2), ".", DEC1 (ymG3), "g", CR
· NEXT
· DEBUG CR, "Press Enter for menu..."
· DEBUGIN char
· RETURN
'Get_Gforce:
·' DO
· '· PAUSE 25··························· ' small loop pad
·· ' OWIN 6, 4, [Xin]··················· ' check status (bit transfer)
·' LOOP UNTIL (Xin)····················· ' 1 when complete
· 'OWOUT 6, 1, ["b", 1, SDEC4 xmG]··············· ' read DS1822 scratchpad
· 'OWIN· 6, 2, [Xin, Yin]··············· ' get raw temp data
· 'RETURN
Here is the output from the debug window.
Recordi-0.280 -0.288 gs
7····· -0.280 -0.288 gs
13···· -0.280 -0.288 gs
19···· -0.280 -0.296 gs
25···· -0.280 -0.296 gs
31···· -0.280 -0.304 gs
37···· -0.464· 0.136 gs
43···· -0.792· 0.000 gs
49····· 1.776 -2.008 gs
55···· -3.200· 1.560 gs
61···· -1.120 -0.184 gs
67····· 1.424 -2.888 gs
73···· -2.200 -0.016 gs
79···· -1.432· 0.536 gs
85····· 2.496 -3.480 gs
91···· -2.488 -0.912 gs
97···· -1.472· 0.920 gs
103···· 2.280 -2.664 gs
109··· -3.920· 1.360 gs
115···· 2.960 -2.568 gs
121··· -3.584· 1.016 gs
127···· 1.480 -3.728 gs
133··· -2.936 -0.048 gs
139··· -1.312· 0.640 gs
145···· 2.232 -2.144 gs
151··· -4.000· 1.112 gs
157··· -0.080 -2.736 gs
163··· -1.000 -0.144 gs
169··· -1.520· 0.616 gs
175···· 1.304 -1.320 gs
181··· -3.792· 1.912 gs
187···· 0.768 -2.528 gs
193··· -3.688· 1.600 gs
199···· 2.168 -2.904 gs
205··· -3.792· 1.048 gs
211···· 1.344 -3.040 gs
217··· -3.752· 1.176 gs
223···· 3.416 -3.312 gs
229··· -3.696 -0.128 gs
235···· 2.592 -4.000 gs
241··· -3.600· 0.712 gs
247···· 3.416 -3.936 gs
253··· -3.576· 1.904 gs
259···· 1.800 -3.896 gs
Press/Release Reset
to arm datalogger
·- or -
Type C, R or W
C - Clear records
R - Record records
W - Display records
>w
Index· x-axis· y-axis
-----· ------· ------
1····· 1 0.4 g1 0.2g
7····· 1 0.4 g1 0.2g
13···· 1 0.4 g1 0.2g
19···· 1 0.4 g1 0.0g
25···· 1 0.4 g1 0.0g
31···· 1 0.4 g1 0.8g
37···· 1 0.8 g0 0.6g
43···· 1 0.4 g0 0.0g
49···· 0 1.0 g1 2.6g
55···· 1 3.8 g0 1.4g
61···· 1 1.6 g1 0.4g
67···· 0 1.4 g1 2.2g
73···· 1 2.2 g1 0.6g
79···· 1 1.2 g0 0.4g
85···· 0 2.2 g1 3.2g
91···· 1 2.4 g1 0.4g
97···· 1 1.2 g0 0.2g
103··· 0 2.2 g1 2.4g
109··· 1 3.0 g0 1.0g
115··· 0 2.4 g1 2.8g
121··· 1 3.0 g0 1.8g
127··· 0 1.0 g1 3.4g
133··· 1 2.0 g1 0.8g
139··· 1 1.2 g0 0.8g
145··· 0 2.4 g1 2.6g
151··· 1 4.0 g0 1.8g
157··· 1 0.0 g1 2.6g
163··· 1 1.2 g1 0.4g
169··· 1 1.0 g0 0.4g
175··· 0 1.4 g1 1.0g
181··· 1 3.8 g0 1.0g
187··· 0 0.0 g1 2.4g
193··· 1 3.4 g0 1.4g
199··· 0 2.0 g1 2.8g
205··· 1 3.8 g0 1.4g
211··· 0 1.4 g1 3.4g
217··· 1 3.8 g0 1.2g
223··· 0 3.8 g1 3.0g
229··· 1 3.2 g1 0.8g
235··· 0 2.2 g1 4.0g
241··· 1 3.6 g0 0.0g
247··· 0 3.8 g1 3.6g
253··· 1 3.8 g0 1.2g
259··· 0 1.8 g1 3.6g
265··· 1 4.0 g0 2.6g
271··· 0 2.0 g1 3.6g
277··· 1 3.2 g0 1.4g
283··· 0 2.6 g1 2.6g
289··· 1 3.6 g0 0.2g
295··· 1 0.0 g1 3.4g
301··· 1 3.2 g0 1.8g
307··· 0 2.6 g1 2.8g
313··· 1 2.8 g0 1.8g
319··· 1 0.0 g0 1.2g
325··· 0 0.6 g0 0.8g
331··· 0 0.0 g1 3.4g
337··· 1 3.4 g0 2.2g
343··· 1 0.2 g0 0.8g
349··· 1 0.4 g0 0.0g
355··· 1 0.6 g0 0.8g
361··· 1 0.6 g1 2.0g
367··· 1 1.0 g1 1.6g
373··· 0 0.4 g1 0.8g
379··· 1 0.0 g0 1.0g
385··· 1 0.2 g0 0.0g
391··· 1 0.4 g1 1.2g
397··· 1 2.2 g1 0.8g
403··· 1 0.0 g0 1.8g
409··· 1 0.6 g0 0.8g
415··· 1 0.6 g0 0.6g
421··· 1 0.2 g0 0.6g
427··· 1 0.0 g0 0.8g
433··· 0 0.2 g0 0.0g
439··· 1 0.4 g0 0.8g
445··· 1 0.2 g1 0.2g
451··· 0 0.6 g1 0.2g
457··· 1 0.0 g1 0.2g
463··· 1 0.8 g1 0.0g
469··· 1 0.8 g1 0.0g
475··· 1 0.0 g1 0.0g
481··· 1 0.8 g1 0.2g
487··· 1 0.8 g1 0.2g
493··· 1 0.8 g1 0.2g
499··· 1 0.8 g1 0.4g
While printing the debug after reading we have tried a number of combinations of DEC, DEC1, DEC2, DEC3 etc. None of these quite match.
·Thank you Thank you Thank you.·
All my love http://forums.parallax.com/images/smilies/freaked.gif· this is me pulling my hair out ......
·