CNAP

Using the Playground

The CNAP playground is a four-panel layout. Each panel can be resized by dragging the dividers between them.

Palette Panel

The Palette (left panel) shows every component available in the playground. Components are grouped by category:

  • LEDs & Displays — LEDs, bar graphs, rings, NeoPixels, LCD, OLED, TFT
  • Buttons & Switches — pushbuttons, slide switches, DIP switches, keypads
  • Sensors — DHT22, ultrasonic, PIR, joystick, gyroscope and more
  • Actuators — buzzer, servo, stepper motor, relay

Click the + button to add a component to the canvas. Click × next to a placed component to remove it.

Canvas Panel

The Canvas is powered by Wokwi elements. It shows a realistic simulation of your circuit:

  • Drag components to reposition them
  • Click a pin to start a wire, then click another pin to connect
  • Click a wire to delete it
  • Click a component to select it and see its properties

The Arduino Uno is always present and cannot be removed.

Editor Panel

The Editor is powered by Monaco — the same engine as VS Code:

  • Full C++ / Arduino syntax highlighting
  • Auto-complete for digitalWrite, analogRead, Serial, and more
  • Inline error markers for syntax mistakes

Your code is automatically saved as you type.

Serial Monitor

The Serial Monitor (bottom panel) shows output from Serial.println() and Serial.print(). It updates in real time while the simulation is running.

Toolbar

ButtonAction
RunCompile and start the simulation
StopHalt the simulation
ResetRestart the simulation from the beginning
TemplatesLoad a pre-built template

Beginner Mode

Toggle Beginner Mode in the toolbar to show helpful hints and pin labels on the canvas. This is great for learning which pin does what.