HMC5883 compass module using the Quickstart board
MisterAJ
Posts: 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.
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.
spin
18K