-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
27 lines (22 loc) · 916 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CONFIG_H
#define CONFIG_H
#include <avr/io.h>
#if defined(__AVR_ATmega328P__)
#include "config_328.h"
#elif defined(__AVR_ATmega2560__)
#include "config_2560.h"
#endif
#define LOOP_DELAY 10 // number of millis between loops
#define DEBOUNCE 100 // number of millis between debounce checks
#define BUTTON_COUNT 5
#define DISPLAY_COUNT 8 // how many display boards?
#define DISPLAY_INTENSITY 5
#define IDX_Z_DELTA 10000 // number of pulses between index pulses
#define TICK_Z_MM 0.005 // distance between pulses
#define IDX_X_DELTA 10000 // number of pulses between index pulses
#define TICK_Z_MM 0.005 // distance between pulses
#define IDX_W_DELTA 10000 // number of pulses between index pulses
#define TICK_Z_MM 0.005 // distance between pulses
#define IDX_C_DELTA 360 // number of pulses between index pulses
#define TICK_Z_DEG 0.005 // angular distance (on spindle) between pulses
#endif