Attempting to blink D7 LED on the particle Argon

Hello Everyone,

I am attempting to run my first project on my newly bought Particle Argon.

I have added my device to my particle account and it shows up as online. In the event logs however, it tends to go online and offline but the general information says device is consistently online.

I am able to compile my code locally on vscode with particle workbench. When I attempt to flash my particle argon the terminal states that it flashed successfully.

However, the code that I have written is intended to flash the D7 LED on and off. This code was from another source who stated it works. The LED does not flash but the Argon’s status light switched from the Yellow flashing light to the Green flashing light to finally breathing blue.

Any help would be appreciated. I am a complete beginner.

this is my code:

// We define MY_LED to be the LED that we want to blink.

//

// In this tutorial, we’re using the blue D7 LED (next to D7 on the Photon

// and Electron, and next to the USB connector on the Argon and Boron).

const pin_t MY_LED = D7;

// The following line is optional, but recommended in most firmware. It

// allows your code to run before the cloud is connected. In this case,

// it will begin blinking almost immediately instead of waiting until

// breathing cyan,

SYSTEM_THREAD(ENABLED);

// The setup() method is called once when the device boots.

void setup()

{

// In order to set a pin, you must tell Device OS that the pin is

// an OUTPUT pin. This is often done from setup() since you only need

// to do it once.

pinMode(MY_LED, OUTPUT);

}

// The loop() method is called frequently.

void loop()

{

// Turn on the LED

digitalWrite(MY_LED, HIGH);

// Leave it on for one second

delay(1000);

// Turn it off

digitalWrite(MY_LED, LOW);

// Wait one more second

delay(1000);

// And repeat!

}

//end of the coding section, next is proof of successful flash:

"> Executing task: make -f ‘C:\Users\dylan.particle\toolchains\buildscripts\1.10.0\Makefile’ flash-user -s <

:::: PUTTING DEVICE INTO DFU MODE

Done.

:::: FLASHING APPLICATION

Creating c:/Users/dylan/Dropbox/DylansFiles/SeniorProject/ParticleTest/ParticleTest/target/1.4.4/argon/platform_user_ram.ld …
Creating c:/Users/dylan/Dropbox/DylansFiles/SeniorProject/ParticleTest/ParticleTest/target/1.4.4/argon/platform_user_ram.ld …
text data bss dec hex filename
5532 104 1068 6704 1a30 c:/Users/dylan/Dropbox/DylansFiles/SeniorProject/ParticleTest/ParticleTest/target/1.4.4/argon/ParticleTest.elf
dfu-suffix (dfu-util) 0.9

Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Suffix successfully added to file
Serial device PARTICLE_SERIAL_DEV : not available
Flashing using dfu:
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device…
ID 2b04:d00c
Run-time device DFU version 011a
Claiming USB DFU Interface…
Setting Alternate Setting #0
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x000d4000, size = 5636
Download [=========================] 100% 5636 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state

*** FLASHED SUCCESSFULLY ***"