Driving a zigzag path (Lego Dance)

From cod3v

Introduction

The plan and planned route

Use gyroscope to drive a zigzag path

Theory

The code

Use loop and the properties of exponentation:

Exercises