Need some examples using Lookup( I'm playing with led matrix sample code)


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223


    Did you find this post helpful? Yes | No

    Default Re: Need some examples using Lookup( I'm playing with led matrix sample code)

    Good Day Henrik, Thanks for helping me out. I searched a little on SERIN2 to capture string of characters from PC to MCU.
    My study code:
    Code:
    DEFINE    OSC 4
    
    str1 var byte[10]
    pause 200
    
    main:
           Serin2 PortC.7,84,[ str str1\30]    ' From PC
           Serout2 PORTC.6, 84,[str str1\30,13] ' Check if everything is okay
    goto main
    End
    You can not execute LOOKUP on an array of bytes, and there's really no need to. You can just do something like myByte = myArray[n] where n is the location in the array you want to "get".
    Correct if I'm wrong, you mean to say I would not need to use LOOKUP if I use my variable (str1)? I'm sorry if I'm still confuse.

    Regards,
    tacbanon
    Last edited by tacbanon; - 5th February 2012 at 23:58.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts