Started following some tutorial on att85 usi. Downloaded example code from make avr book.

This commit is contained in:
Dan
2022-09-20 01:08:01 -04:00
parent d0cbc0000e
commit 361a828c46
295 changed files with 68746 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// Include file for half-stepping order
// You may need to change the software pinouts around to match your motor
// or change your motor connections around to match the software.
const uint8_t stepOrder[] = {
(1 << PB0) | (1 << PB2),
(1 << PB0),
(1 << PB0) | (1 << PB3),
(1 << PB3),
(1 << PB1) | (1 << PB3),
(1 << PB1),
(1 << PB1) | (1 << PB2),
(1 << PB2)
};
#define LAST_PHASE_IN_CYCLE 7