Skip to content

Instantly share code, notes, and snippets.

@giljr
Last active November 2, 2018 23:58
Show Gist options
  • Save giljr/734d7ec1b56bb4b6cb4384437b9d2a8d to your computer and use it in GitHub Desktop.
Save giljr/734d7ec1b56bb4b6cb4384437b9d2a8d to your computer and use it in GitHub Desktop.
/*  Project name: L298N - Dual Full-Bridge Driver
Darlington Transistor Arrays Based - 3A@50v peak
Flavour I - 1 Motor @5v
*/
#define IN1 6
#define IN2 7
void setup() {
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
// Set initial direction
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
}
void loop() {
// nothing here:)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment