Shop OBEX P1 Docs P2 Docs Learn Events
HMC5883 compass module using the Quickstart board — Parallax Forums

HMC5883 compass module using the Quickstart board

MisterAJMisterAJ Posts: 1
edited 2012-01-07 13:41 in Propeller 1
Hello all I am new here. I am doing a school project that involves the HMC5883 compass module. I need to set up a variable that would be displayed on the Parallax Serial Terminal. When the program is run, the user would be prompted to enter in a value. When the value entered equals the raw value of X a keyword that I made up would be displayed on the serial terminal. Right now I am confused on how to write this in SPIN. Heres what my pseudo code looks like.

variable:= " " 'this would allow the user to enter in a value

If x = variable
go 'this would say that if the raw value of x equaled the value entered in by the user, the word go would be
displayed on the serial terminal

I am working with the compass test code which I have put in attachments. And to anyone who helps, thank you.
Sign In or Register to comment.