Shop OBEX P1 Docs P2 Docs Learn Events
How to Save result in a variable in Binary format ?? — Parallax Forums

How to Save result in a variable in Binary format ??

SiriSiri Posts: 220
edited 2008-08-19 15:23 in Propeller 1
After extracting a value using the command " a:=Stepper.Rx and b:=Stepper.Rx"- (in the attached code)
How do I put them in a variable in binary/decimal format - so can use them later.The value are either going to be "1" or "0".

What I want to end up is say - variables "SW1- SW2 " and their contents to be "1 or 0"

Thank you.

Siri

Post Edited (Siri) : 8/18/2008 10:39:39 PM GMT

Comments

  • evanhevanh Posts: 15,438
    edited 2008-08-19 11:10
    Lol, 20 lines of program source that is 658k! Go M$! Might pay to post your actual .spin source code instead.


    Evan
  • SiriSiri Posts: 220
    edited 2008-08-19 15:23
    I resolved the issue by just using the same data format as it is captured and not trying to convert them to binary/decimal.

    Siri
Sign In or Register to comment.