int ellipX; // ellips coords, unscaled.
int ellipY;
boolean doEllip = F;
An Arduino Nano usually has a Atmega328P CPU. There are some clones that where the CPU is Atmega328PB. Initially the Arduino IDE can’t load a program into them but this can be corrected.
Go here MiniCore and install the software. See “How to Install”
This only needs to be done once on each board. It’s not an action for a beginner, and needs a spare Arduino UNO. Follow the instructions here Arduino UNO as ISP. Use the connection diagram with Arduino UNO and Nano.
Set the IDE for the Arduino UNO
Load the Arduino UNO with File, Examples, ArduinoISP
Set the IDE for
- Board: Atmega32P from the MiniCore library.
- Variant: 32PB
- Port: the port for the Arduino UNO
- Programmer “Arduino as ISP”
Select Tools, Burn Bootloader
Disconnect the Nano from the UNO and connect it directly to the PC. Now it should load normallly (next section).
Set the IDE for
- Board: Atmega32P from the MiniCore library.
- Variant: 32PB
- Port: the port for the Arduino UNO
Connect your Nano to the PC. Find its com port name from device manager or Arduino IDE. In the IODE, tools, port, select the port.
File, examples, basics, blink.
Load the program normally with ctr-U.