Procházet zdrojové kódy

Merge pull request #675 from forrestg/master

Added support for Cheaptronic v1 electronic
ErikZalm před 10 roky
rodič
revize
e016a720f4
2 změnil soubory, kde provedl 102 přidání a 0 odebrání
  1. 1
    0
      Marlin/Configuration.h
  2. 101
    0
      Marlin/pins.h

+ 1
- 0
Marlin/Configuration.h Zobrazit soubor

@@ -36,6 +36,7 @@
36 36
 // 11 = Gen7 v1.1, v1.2 = 11
37 37
 // 12 = Gen7 v1.3
38 38
 // 13 = Gen7 v1.4
39
+// 2  = Cheaptronic v1.0
39 40
 // 20 = Sethi 3D_1 
40 41
 // 3  = MEGA/RAMPS up to 1.2 = 3
41 42
 // 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)

+ 101
- 0
Marlin/pins.h Zobrazit soubor

@@ -2288,6 +2288,107 @@
2288 2288
 
2289 2289
 #endif
2290 2290
 
2291
+/****************************************************************************************
2292
+* Cheaptronic v1.0
2293
+*
2294
+****************************************************************************************/
2295
+#if MOTHERBOARD == 2
2296
+ #define KNOWN_BOARD 1
2297
+
2298
+ #ifndef __AVR_ATmega2560__
2299
+ #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
2300
+ #endif
2301
+
2302
+ #define LARGE_FLASH        true
2303
+
2304
+ //X motor stepper
2305
+ #define X_STEP_PIN 14
2306
+ #define X_DIR_PIN 15
2307
+ #define X_ENABLE_PIN 24
2308
+ 
2309
+ //X endstop
2310
+ #define X_MIN_PIN 3
2311
+ #define X_MAX_PIN -1
2312
+
2313
+ //Y motor stepper
2314
+ #define Y_STEP_PIN 35
2315
+ #define Y_DIR_PIN 36
2316
+ #define Y_ENABLE_PIN 31
2317
+
2318
+ //Y endstop
2319
+ #define Y_MIN_PIN 2
2320
+ #define Y_MAX_PIN -1
2321
+ 
2322
+ //Z motor stepper
2323
+ #define Z_STEP_PIN 40
2324
+ #define Z_DIR_PIN 41
2325
+ #define Z_ENABLE_PIN 37
2326
+
2327
+ //Z endstop
2328
+ #define Z_MIN_PIN 5
2329
+ #define Z_MAX_PIN -1
2330
+ 
2331
+ //Extruder 0 stepper
2332
+ #define E0_STEP_PIN 26
2333
+ #define E0_DIR_PIN 28
2334
+ #define E0_ENABLE_PIN 25
2335
+
2336
+ //Extruder 1 stepper
2337
+ #define E1_STEP_PIN 33
2338
+ #define E1_DIR_PIN 34
2339
+ #define E1_ENABLE_PIN 30
2340
+
2341
+ #define SDPOWER -1
2342
+ #define SDSS -1
2343
+ #define LED_PIN -1
2344
+
2345
+ //FAN
2346
+ #define FAN_PIN -1
2347
+
2348
+ #define PS_ON_PIN -1
2349
+ #define KILL_PIN -1
2350
+
2351
+ #define HEATER_0_PIN 19 // EXTRUDER 1
2352
+ #define HEATER_1_PIN 23 // EXTRUDER 2
2353
+ //HeatedBad
2354
+ #define HEATER_BED_PIN 22
2355
+ //Cheaptronic v1.0 hasent EXTRUDER 3
2356
+ #define HEATER_2_PIN -1
2357
+ 
2358
+ //Temperature sensors
2359
+ #define TEMP_0_PIN 15
2360
+ #define TEMP_1_PIN 14
2361
+ #define TEMP_2_PIN -1
2362
+ #define TEMP_BED_PIN 13
2363
+
2364
+ //Cheaptronic v1.0 dont support LCD
2365
+ #define LCD_PINS_RS -1
2366
+ #define LCD_PINS_ENABLE -1
2367
+ #define LCD_PINS_D4 -1
2368
+ #define LCD_PINS_D5 -1
2369
+ #define LCD_PINS_D6 -1
2370
+ #define LCD_PINS_D7 -1
2371
+
2372
+ //Cheaptronic v1.0 dont support keypad
2373
+ #define BTN_EN1 -1
2374
+ #define BTN_EN2 -1
2375
+ #define BTN_ENC -1
2376
+
2377
+ #define BLEN_C 2
2378
+ #define BLEN_B 1
2379
+ #define BLEN_A 0
2380
+
2381
+ //Cheaptronic v1.0 does not use this port
2382
+ #define SDCARDDETECT -1
2383
+
2384
+ //encoder rotation values
2385
+ #define encrot0 0
2386
+ #define encrot1 2
2387
+ #define encrot2 3
2388
+ #define encrot3 1
2389
+
2390
+#endif
2391
+
2291 2392
 
2292 2393
 
2293 2394
 #ifndef KNOWN_BOARD

Loading…
Zrušit
Uložit