slave_comms.cpp

Sat, 07 Nov 2015 13:24:46 +0100

author
mbayer
date
Sat, 07 Nov 2015 13:24:46 +0100
changeset 1
b584642d4f58
parent 0
2c8ba1964db7
permissions
-rw-r--r--

several modifications to support laser enable - still needs cleanup

0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
2 #include "Marlin.h"
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
4 #ifdef REPRAPPRO_MULTIMATERIALS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
5
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
6 float txyz[EXTRUDERS];
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
7 char slaveBuffer[64];
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
8 long timeout;
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
9
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
10 void setup_slave()
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
11 {
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
12 MYSERIAL1.begin(250000);
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
13 SET_OUTPUT(SLAVE_CLOCK);
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
14 digitalWrite(SLAVE_CLOCK, 1);
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
15 }
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
16
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
17 #endif

mercurial