Bits, Bytes Words and Arrays


Results 1 to 25 of 25

Threaded View

  1. #20
    Join Date
    Feb 2007
    Posts
    55


    Did you find this post helpful? Yes | No

    Default Re: Bits, Bytes Words and Arrays

    ok... I've built an 8x8x8 LED cube using 18F452, I have encountered a problem with my array

    each of the 512 leds as 1 bit assigned to it from leddata array

    0 = bottom corner
    511 = the top corner of the cube


    leddata VAR BYTE[64]
    litled VAR WORD

    litled = 511
    leddata.0(lilted) = 1

    the above 2 lines lights up an led half way down the cube (I think it would correspond to 255)

    but if I write this:

    leddata.0(511) = 1

    the correct LED lights up at the top corner of the cube

    Any ideas?
    Last edited by wellyboot; - 13th June 2016 at 19:56. Reason: error

Similar Threads

  1. LP Instant Interrupts Error
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th December 2009, 10:13
  2. how to store a very large amount of data
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 2nd April 2008, 07:05

Members who have read this thread : 2

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