Ok so I'm having an issue. I've had the code written by Gemini. However I am unable to copy and paste the code into Arduino IDE.
When I do manage to paste something in, all that is pasted in is [code].
I I've tried lots of different versions of document to copy and paste from. Is this an issue with the code or something else?
Hi @oldmanrex. Are you using Gemini via the gemini.google.com website? Or are you instead using Gemini through an application?
Please provide a detailed, step-by-step description of the procedure you are using to copy the code from Gemini.
Please provide a detailed, step-by-step description of the procedure you are using to paste the code into Arduino IDE.
Which version of Arduino IDE are you using (e.g., "2.3.6")? The version is shown on the window title bar and also in the dialog that opens when you select Help > About (or Arduino IDE > About Arduino IDE for macOS users) from the Arduino IDE menus.
I ask for this information because I want to give you the appropriate instructions for the IDE version you are using.
I just tried the following test:
- Open the gemini.google.com website in my web browser.
- Ask Gemini to write me an Arduino sketch:
Write me an Arduino sketch that blinks an LED connected to pin 12 on an UNO R3 board at 0.5 Hz
- Click the "Copy code" icon at the top right corner of the code block in the response from Gemini:
- Start Arduino IDE 2.3.6.
- Select File > New Sketch from the Arduino IDE menus.
A new sketch opens in an Arduino IDE window. - Select Edit > Select All from the Arduino IDE menus.
The default new sketch code is selected in the Arduino IDE editor. - Select Edit > Paste from the Arduino IDE menus.
The sketch content from the code block in the Gemini response is pasted into the sketch, as expected.
