toggle or count?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Just increment a variable and only pay attention to the LSB of that variable...
    i.e.

    x = x + 1

    if x.0 = 0 then -the variable is an even number

    if x.0 = 1 then -the variable is an odd number

  2. #2
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Talking

    That makes perfect sence.
    Perhaps in 10 more years I will be ready to apply for work with Lock Head Martin and propel the next Mars vehicle to welll... Mars. Until then, I will press on and keep learning the basics. Thanks again!
    Padawan-78

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    Perhaps in 10 more years I will be ready to apply for work with Lock Head Martin and propel the next Mars vehicle to welll... Mars.
    Looks like the boys (and girls) in Pasadena have pretty much got Mars handled for now...as of tonight anyways...
    Maybe you should shoot for something a wee bit farther out

Similar Threads

  1. Toggle command
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th December 2011, 03:07
  2. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 05:52
  3. Can't get COUNT to count
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th March 2009, 00:14
  4. TOGGLE code space and ICD
    By duncan303 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 25th October 2006, 17:08
  5. Count command
    By hawk72501 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th September 2005, 20:04

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