This tutorial will show you how to program a script that displays which direction the micro:bit is pointing. Let's get started! Online editor - https://makecode.microbit.org
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.