Arduino opta lite - retrieve code

Hi, I'm new to the Arduino world. I come from using Raspberry Pi and MicroPython.

I'm trying to retrieve the code that was uploaded to an Opta Lite.
I successfully connected the device to Arduino IDE 2.3.2 with a USB-C cable (see screenshot).

However, I don't know how to get the code that is on the Opta Lite.

Can you guys help me?

Thanks.

Yes, we can help, it's quite a common question here.

You can't.

Your code as you know it was never uploaded to the Arduino. Only the compiled binary machine-code version. Even if you could download that, it would bear no resemblance to the code you remember.

Python is an interpreted language. With Python, the code you write is uploaded to the board and executed by another, even larger program called the python interpreter which turns your python code into machine language "on the fly".

C++ is a compiled language. It is converted into machine code once and only that machine code is uploaded to the Arduino.

Are you hoping to retrieve the original sketch or the binary code that was uploaded

The first option is impossible because the sketch is not on the board if you programmed it in C++