Identify running sketch

how can I identify what sketch is running on a board??

I generally do not use all the memory in the part so in the hello message I add the file name, version and revision. This I always send to the terminal and the display if there is one. This has save my sanity more then once.

1 Like

Get your sketch to flash a unique ID in Morse code using LED_BUILTIN.

:rofl: :rofl: :rofl:

@lgbtrains, your topic has been moved to a more suitable location on the forum.

It takes some time to find out the need. Which sketch, which version is running on this board. I have probably 10 different UNOs doing different things. What was the code.....
Doing as gilshultz says and adding a suitable delay, 5 - 10 seconds before the sketch takes command, quickly pays off.

1 Like

A label.
Then you don’t even have to connect it up.

1 Like

I serial.print the file name from setup
If i have a display i show it on that.

I tried using a blink but the message was. Big toe send cheese.
I think maybe i did something wrong there.

1 Like

Hi,
In your setup do something like this;

void setup() {
  Serial.begin(115200);
  Serial.println("===ssd1306_128x32_i2cWindChargerTG_11===");

Tom.... :grinning: :+1: :coffee: :australia:

tape a sticker onto the chip … and ready

Fixed.

Serial.println(F(

does not work for me.
I'm running 1.8..... something.
Serial.print()
Is what i have to use.

You're kidding?
The F() macro has been here since like, what, 1.0?

Scrimshaw

I created a new thread in programming questions so I would not hijack this thread.
and posted the example program and all the error codes when trying to compile.