The sketch and Python interpreters
What Coppa’s Arduino and Python interpreters run, and what they don’t.
Coppa runs sketches and Python in its own interpreters, so you don’t need a compiler installed. They cover what most hobby and teaching programs use, and say clearly when something isn’t supported.
Arduino sketches#
Supported: setup() and loop(), functions, variables and arrays, enums, #define (with parameters), and the Arduino core: pinMode, digitalRead and digitalWrite, analogRead and analogWrite, delay, millis, micros, tone, shiftOut and shiftIn, pulseIn and pulseInLong (timed from real edges), attachInterrupt, map, constrain and the bit functions.
Objects: Serial (and Serial1–3 on the Mega), Wire, EEPROM and SPI: begin, transfer and transfer16, beginTransaction with SPISettings, endTransaction, and bit order, mode and clock divider.
Libraries: LiquidCrystal, LiquidCrystal_I2C, Servo, Adafruit_NeoPixel, Keypad, LedControl (MAX7219), Adafruit_SSD1306 and PS2Keyboard.
Not supported: pointers, structs and classes of your own, templates, namespaces and using. Coppa stops with a message such as structs and classes aren’t supported by Coppa’s sketch interpreter; load the compiled .hex to run them. Other libraries stop with isn’t a library Coppa’s interpreter has.
Serial output starts after Serial.begin().
Python#
Supported modules: time (utime), machine (Pin, PWM, ADC, I2C, SoftI2C, UART, Timer and more), math, random, neopixel, RPi.GPIO and gpiozero (LED, PWMLED, Button, Buzzer and output and input devices).
Not supported: classes, dictionaries, with, lambda, list comprehensions and nested functions.
When you need everything#
On the Arduino boards and the ATmega328P, compile the sketch in the Arduino IDE and load the firmware. It then runs exactly as compiled, with nothing left out.
Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.