newbie and array


Closed Thread
Results 1 to 2 of 2
  1. #1
    siklosi's Avatar
    siklosi Guest

    Default newbie and array

    Hi,
    I made IR receiver board with lcd. It works and I found codes for remote that i will be using. I used example from web to read values from IR. Now I have 8 bit value in array that is stored like:

    if IRpulse_length[9] < 100 then
    Command[0] = 0
    Else
    Command[0] = 1
    endif

    It goes from Command[0] to Command [7] and fills array.
    I managed to display it on lcd using
    for i = 0 to 7
    print at 1,i+1, bin Command[i]
    next i

    Question is now that i know that for example play button is 00001000 how can i compare it with array. I tried diferent combinations with val(array1,bin) etc etc but nothing is working...

  2. #2
    siklosi's Avatar
    siklosi Guest


    Did you find this post helpful? Yes | No

    Default

    Sorry, solved using command.x

Similar Threads

  1. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 04:51
  2. byte compression
    By Norbert in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th June 2007, 18:04
  3. explanation of step array
    By Rabm in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th September 2006, 18:00
  4. newbie and array
    By siklosi in forum mel PIC BASIC
    Replies: 0
    Last Post: - 18th December 2005, 21:00

Members who have read this thread : 0

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