Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow building as normal Arduino project #716

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adammhaile
Copy link

@chamnit & @bdurbrow
As discussed in #715 this is all that's needed to build Grbl as a normal "sketch".
Saw no reason to remove grblUpload at the moment as it's still valid and none of this breaks being able to use it as a library. However, if this was accepted and you wanted to make it the normal way of using Grbl I'd be happy to update the docs to reflect this method.

@Quas7
Copy link

Quas7 commented Oct 17, 2019

Quickly tested this. Works and compiles with Arduino IDE 1.8.9 and 1.8.10 (win-x64).

@zdenekkarny
Copy link

Hi,

You can create an empty file "gbrl.ino" on the "gbrl" directory and run it as normal sketch. The skectch file "gbrl.ino" load "gbrl.h" by defafult!

Zdenek

@drf5n
Copy link

drf5n commented Apr 10, 2022

Adding this grbl.ino file in the directory with the rest of the files works great.

@drf5n
Copy link

drf5n commented Feb 25, 2023

Note that you can even have an empty grbl.ino file -- This works just as well to make grbl.ino compile in the Arduino IDE:

mkdir GRBLTEST
cd GRBLTEST
git clone [email protected]:gnea/grbl.git
touch grbl/grbl/grbl.ino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants