Marlin 1.1.9 Mks Gen L Fan Always on
Boards
General data
Marlin supports a ample variety of 3D printers, including all RAMPS variants, and is adaptable to virtually any Arduino/Genuino-based electronics through pin-mapping - associating pins with their functions. With the addition of a hardware abstraction layer, Marlin 1.2 will address an even wider variety of boards.
Several files in the Marlin source code ply hardware support, but the files supporting the core electronics are:
| File | Verbal description |
|---|---|
boards.h | Contains the full list of boards supported by Marlin. Put away MOTHERBOARD to i of the boards listed Here. |
pins.h | Manages pin definitions, including the conquer pins_BOARD.h file for the specified MOTHERBOARD. |
pins_BOARDNAME.h | Each of these files contains the pin definitions for a separate control board. Some pins files form the basis for other pins files, virtually notably pins_RAMPS.h. |
To build Marlin for a peculiar board, set the MOTHERBOARD option in Constellation.h. This example selects a RAMPS 1.4 add-in with the 12V power MOSFET connectors unreal in Extruder, Sports fan, Bed (EFB) order:
#delimitate MOTHERBOARD BOARD_RAMPS_EFB Experience the boards list at the nates of this page for a complete list of boards supported in the stylish release of Marlin.
FastIO and Pin Mapping
FastIO is a set of macros that allows Marlin to read and write pins speedily, victimisation the same code on all processors. Marlin uses FastIO macros whenever possible because direct port manipulation is many times faster than the pin functions provided away Arduino.h.
Pin Mapping refers to the relationship between assigned "pin numbers" and the actualized hardware ports on the CPU. For instance, pins might atomic number 4 mapped starting with 0 to represent Port A Pin 0, then numbered sequentially up to Embrasure L Pin 15.
FastIO allows Marlin to manipulation any stick mapping conceivable, simply we've decided that the "Arduino mapping" As used by the Arduino headers is the best choice for respective reasons. Most importantly, all standard Arduino code uses this mapping, and the mapping smartly uses the documented DIO tholepin numbers game.
Note: When writing code for Marlin, never use digitalRead or digitalWrite.
AT90USB pins
Since version 1.1.4, Marlin too uses Arduino pin mapping for Teensy++, Sanguino, and other AT90USB-based processors, so we can however use the documented appendage pin numbers game even up in the Teenyduino shape environment. Previous versions of Marlin provided an option to use either Teensyduino or Arduino mapping, depending on the what the progressive pins file supported.
Linear pins
Analog inputs are always assigned using an index from 0-15. Marlin doesn't need to know their digital pin numbers.
Adding a new board
The easiest way to add a new board to Marlin is to start with indefinite of the present pins files that has pin mappings similar to the new board, make a copy, and modify the pins that differ. Once your pins file is ready, simply attention deficit hyperactivity disorder a early define to the boards.h file and a conditional let in to pins.h. And you're finished! Posit a Public relations to share IT with the world.
If you'ray developing a made-to-order Arduino-based board, try to utilize standard RAMPS 1.4 pinouts as far as possible, operating theatre choose a PIN-mapping similar to another board Marlin supports. The more a new board resembles an existing table, the easier it volition be to integrate.
Board number
Marlin 1.1.9 Mks Gen L Fan Always on
Source: https://marlinfw.org/docs/hardware/boards.html
Post a Comment for "Marlin 1.1.9 Mks Gen L Fan Always on"