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

Compiling ReBrewie on the command line #12

Open
spooch99 opened this issue Dec 11, 2023 · 0 comments
Open

Compiling ReBrewie on the command line #12

spooch99 opened this issue Dec 11, 2023 · 0 comments

Comments

@spooch99
Copy link

spooch99 commented Dec 11, 2023

Hi,
I was wondering that I have to use this buggy arduino ide for compiling, which didnt work for me (missing -I library paths), so I created a cli way for compiling. Feel free to integrate it into your readme.md:

On Ubuntu:

Install arduino-cli:

sudo snap install arduino-cli

Install DallasTemperature and OneWire:

arduino-cli lib install DallasTemperature
arduino-cli lib install OneWire

Install core compiler for arduino:avr:

arduino-cli core install arduino:avr

Clone repo:

git clone https://github.com/ronaldombre/ReBrewie.git

Enter repo:

cd ReBrewie

Create build directory:

mkdir build

Compile ReBrewie verbosely (-v) and export it to build-path (-e --build-path build/):

arduino-cli -b arduino:avr:mega:cpu=atmega2560 compile ReBrewie -v -e --build-path build/

Now you wil find ReBrewie.ino.hex and ReBrewie.ino.with_bootloader.hex in your build directory :-)

Hth,
Oliver

@spooch99 spooch99 changed the title Alternate way to compile ReBrewie at command line Compiling ReBrewie at command line Dec 11, 2023
@spooch99 spooch99 changed the title Compiling ReBrewie at command line Compiling ReBrewie on the command line Dec 11, 2023
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

No branches or pull requests

1 participant