You are not logged in.

#1 2018-09-15 18:50:05

pokoj42bnaintru
Guest

LED on Arduino does not blink

Hi.

I successful installed arduino, added me to uucp and lock and loaded cdc_acm module.

I use Arduino Uno R3, so I also installed arduino-avr-core.

I have Arduino on /dev/ttyUSB0.

I configured with:

stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

I have this folder with these files:
~/Documents/Arduino

build.options.json
------------------------------------------------------------
{
    "fqbn": "archlinux-arduino:avr:uno",
    "hardwareFolders": "/usr/share/arduino/hardware",
    "toolsFolders": "/usr/bin"
}

sketch.ino
------------------------------------------------------------
void setup() {
    pinMode(13, OUTPUT);
}

void loop() {
    digitalWrite(13, HIGH);
    delay(1000);
    digitalWrite(13, LOW);
    delay(1000);
}

After this commands I got output:

arduino-builder -build-options-file build.options.json sketch.ino

Sketch uses 914 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

But nothing happened on my Arduino, what's my problem?

Thanks.

P.S. I don't have external LED, I try to use bultin LED.

Last edited by pokoj42bnaintru (2018-09-15 18:52:17)

#2 2018-09-15 20:03:28

jenz
Member
From: Oslo
Registered: 2018-09-15
Posts: 1

Re: LED on Arduino does not blink

Haha, this is totally the wrong place to ask.

Though, as seemingly no errors were thrown, there's probably something wrong with your code.

Are you sure that you're supposed to be using pin 13 for the builtin? Try using the constant:

LED_BUILTIN

instead of 13. smile

Offline

Board footer

Powered by FluxBB