Menu

typo in online help-Peek

Help
2009-02-14
2013-05-30
  • Edward LaBudde

    Edward LaBudde - 2009-02-14

    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.

     
    • kent_twt4

      kent_twt4 - 2009-02-14

      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.

       
    • Edward LaBudde

      Edward LaBudde - 2009-02-14

      Kent, I did no know that, thanks.  Ed.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.