Micro:bit Coding Project: Compass - Arrow on Screen that Can Indicate the Direction Currently Facing

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025
  • НаукаНаука

Комментарии • 3

  • @Paulik11051988
    @Paulik11051988 3 года назад

    if micro:bit turns left north direction turns right. that's why we need use next expression: set direction to round ((360 - compass heading) / 45). arrow will be show north

  • @Paulik11051988
    @Paulik11051988 3 года назад

    hi, thanks for video. Why in my makecode East 270 and west 90? )

    • @KidsRobot
      @KidsRobot  3 года назад +1

      Hi, we are not sure what went wrong. It can be a bug in the program. If you followed the tutorial exactly the result should be the same. You can also learn more about the "compass heading" in MakeCode from their reference page: makecode.microbit.org/reference/input/compass-heading