Hi, all, newbie here. found this error under Peek:
'This program will read and check a value from PORTA
Temp = PEEK(5)
IF Temp.Z ON THEN SET green ON
IF Temp.Z OFF THEN SET red ON
should be Temp.2
Regards, Ed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Temp.Z is the same as Temp.0, its a Microchip mnemonic thing. Use the Port pin or a constant and save some program space. Not to mention, who knows where PortA, GPIO or whatever is in memory from one device to the next. I think it must be for those used to Basic Stamp syntax, or something like it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, all, newbie here. found this error under Peek:
'This program will read and check a value from PORTA
Temp = PEEK(5)
IF Temp.Z ON THEN SET green ON
IF Temp.Z OFF THEN SET red ON
should be Temp.2
Regards, Ed.
Temp.Z is the same as Temp.0, its a Microchip mnemonic thing. Use the Port pin or a constant and save some program space. Not to mention, who knows where PortA, GPIO or whatever is in memory from one device to the next. I think it must be for those used to Basic Stamp syntax, or something like it.
Kent, I did no know that, thanks. Ed.