Skip to content

Instantly share code, notes, and snippets.

View arifbalik's full-sized avatar
:octocat:

Arif Balik arifbalik

:octocat:
  • ENDA Automation
  • Istanbul, Turkey
  • 22:57 (UTC +03:00)
View GitHub Profile
@arifbalik
arifbalik / Rotary_mew.ino
Last active November 25, 2020 07:26
Rotary MEW
#define X_STEP_PIN 54
#define X_ENABLE_PIN 38
#define ANALOG_PIN 4
void setup(){
pinMode(X_STEP_PIN, OUTPUT);
pinMode(X_ENABLE_PIN, OUTPUT);
TCCR0A = _BV(COM2A1) | _BV(COM2B1) | _BV(WGM21) | _BV(WGM20); // non-Inverting PWM,
OCR0A = 255;