8. Case 06: Compass¶
8.4. Programming¶
Save the returned value of the compass direction as varible i and judge it, if i<45 or i>315, display “N”; if i<135, display “E”; if i<225, display “S”, or display “W”.
Link¶
You can also download it direcly below: