Really simple test program not working.


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Really simple test program not working.

    Max value for raw is 1024? assuming 10 bit a/d. 1024/10=102. this is ALWAYS less the 205. So you will never be able to turn on the LED. If its a 12 bit A/D, then IDK
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Really simple test program not working.

    You are correct and I did remove the /10.

    However, the fix was left vs right justification of the result. It works as expected.

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