Questions tagged [arduino-cli]

Arduino CLI is an all-in-one solution that provides builder, boards/library manager, uploader, discovery and many other tools needed to use any Arduino compatible board and platforms.

Arduino CLI is an all-in-one solution that provides builder, boards/library manager, uploader, discovery and many other tools needed to use any Arduino compatible board and platforms.

Arduino-CLI on GitHub

7 questions
6
votes
3 answers

Access serial monitor on linux cli? Using arduino-cli?

I have an arduino uno connected via USB to a raspberry pi, the raspi is accessible via ssh only. Just started a bit with arduino-cli ; I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data??
groovehunter
  • 169
  • 1
  • 4
5
votes
3 answers

Using Arduino as a standalone compiler

I mostly program in C/C++ so I conviniently have a GCC compiler for all my compilations. I was wondering if there is a special compiler for Arduino that can be used just like the GCC Compiler? Because just taking a .ino sketch and passing it to the…
4
votes
1 answer

Library not found when using the arduino-cli command (although working with the Arduino IDE)

I have a sketch which I can upload without problem with the Arduino IDE. I installed the arduino-cli Version: 0.28.0 Commit: 06fb1909 Date: 2022-10-18T15:53:04Z. I want to compile and upload a code on an arduino uno and use the command…
ecjb
  • 145
  • 5
3
votes
1 answer

How to install Adafruit motorshield library in arduino-cli

I need to install this library using the arduino-cli software. I don't know what name to use for the library. Using arduino-cli lib install I have tried Adafruit_MotorShield, Adafruit_MotorShield_V2, and other random combinations and…
user171780
  • 151
  • 1
  • 6
2
votes
1 answer

Servo doesn't move if I detach it AFER the write?

So this is a bit weird, and I don't understand anything. Basically, I'm just playing with my servo. I wrote a small program, which can be found at this link: https://pastebin.pl/view/8e9c9573 (Note: It's three files, I left some comments there, and…
stfn
  • 23
  • 4
1
vote
1 answer

Error while uploading the sketch to Arduino UNO using CLI

I have connected my Arduino UNO through USB to Raspberry pi 3B. I am using CLI for editing, compiling and uploading sketches > arduino-cli upload --fqbn arduino:avr:uno cli-test. However, after attempting to upload the sketch, it throws the error,…
DaSnipeKid
  • 113
  • 3
1
vote
3 answers

Function declared in another file not recognized (undefined reference to)

I am making a multi-file arduino project, but the compiler can't recognize a function. I am using the arduino-cli version 0.10.0 This is the error I received undefined reference to pin_init() collect2.exe: error: ld returned 1 exit status Error…