luc-github / Repetier-Firmware-4-Davinci

Repetier-Firmware-0.92 based for DaVinci printer (Beta - so far so good)
GNU General Public License v3.0
194 stars 99 forks source link

[FR]Add platformIO support #380

Open luc-github opened 3 years ago

luc-github commented 3 years ago

I will add platformIO support - it should allow to patch the due source automaticaly and so no need to do any manual changes also it should allow to not change anything in configuration.h but use specific env for each config

So firmware should be easy to build in this way this will be first step as repetier 2.0 use platformio , so need to prepare the porting

Edit: patching seems supported https://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#override-package-files So it should be too hard to do it

luc-github commented 3 years ago

PlatformIO support is implemented but not tested - I have just checked the files are corrects image

Patching happen once image

I do not have bandwith to test right now so if anyone want give a try and report would be great 😸

Still need to modify src\ArduinoDUE\Repetier\Configuration.h according targeted printer I will add corresponding env in platformIO.ini once PIO build is confirmed as Ok

stale[bot] commented 3 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ybott commented 3 years ago

I gave this a run on my DaVinci AiO. Build, upload, and monitor works.

Nice one!

luc-github commented 3 years ago

great thank you for the feedback, I will add corresponding env

ybott commented 3 years ago

I presume the work to integrate platformio is to merge all your work into the dev2 Repetier (https://github.com/repetier/Repetier-Firmware/tree/dev2) branch, is that correct?

luc-github commented 3 years ago

everything is different in Davinci : specific screen , specific screen resolution( 16x4 ), specific SPI, specific features (auto bed leveling , manual bed leveling, dripbox, extruder cleaner, key pad, thermistors tables, etc...)

I will integrate repetier 2.0 when stable but push all davinci specific to repetier is big work and has few chance to be accepted, only some features may be

no mention that Davinci 1.0(a)/2.0 (a) are now end of life I think, compare to recent xyz models

linpp commented 2 years ago

On a Mac, this complains there are no source files to build. It does build after changing src_dir to use forward slashes in platformio.ini:

src_dir = src/ArduinoDUE/Repetier

hyx0329 commented 2 years ago

On my ArchLinux setup, this works smoothly with my davinci 1.0. Thank you for your work!