Objective:
To become familiar with controlling drive motors using the L298N Motor Controller
To learn to write functions to make code more comprehensible
To learn to use the Duplicate, Format, Collapse, and Comment tools to make code both faster and more comprehensible
Below: This code should make both motors turn forwards. If a motor turns backwards, reverse the motor wiring to the motor controller.
MakeCode IDE Editor Functions: Right-clicking on Makecode makes available various editing tools:
Duplicate- useful for duplicating similar functions
Collapse Blocks- shrinks size of long functions
Format Code- lines up blocks
Comment- add explanations to code
Snapshot- Screenshot of code