TEP DOWNLOAD CENTER

Project Files of Arduino Leonardo Library for Proteus: USB Keyboard + Mouse

Libraries Code Projects Simulation
tep://download-terminal arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip ZIP archiveV1.0Verified0 downloadsFree
Arduino Leonardo Library for Proteus: a 16-key macro pad with a TTP229 touch keypad and an ESP-01S
Proteus library · File 1 of 1

Arduino Leonardo Library for Proteus V1.0

Arduino Leonardo Library for Proteus V1.0 comes as a ZIP archive of 197 files (3.1 MB, 6.8 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch, an Arduino library, compiled HEX firmware and source code.

  • LIBProteus library
  • DLLProteus model
  • DSNProteus simulation
  • INOArduino sketch
  • LIBArduino library
  • HEXHEX firmware
  • SRCSource code

Description

Arduino-Leonardo-Library-for-Proteus-v1.0.zip with the Arduino Leonardo in Proteus (your Arduino sketch, RESET, the L and ON LEDs, a serial monitor and a PC window for its USB keyboard and mouse; TEPLEONARDO.LIB, TEPNET.DLL and the TEP Boards for Proteus add-on 1.34.0 with Keyboard and Mouse), the TTP229 and ESP-01S libraries, the Laptop / Mobile WiFi Monitor symbols, the macro pad demo with its sketch and a README.

Read Arduino Leonardo Library for Proteus: USB Keyboard + Mouse

File Structure

arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip197 files · 103 folders · 6.8 MB unpacked
Arduino-Leonardo-TEP-v1.0/197 files · 6.8 MB
Arduino Code/185 files · 821.8 KB
Leonardo_Macro_Pad/1 file · 11.8 KB
INO Leonardo_Macro_Pad.inoArduino sketch 11.8 KB
TEP Boards for Proteus/184 files · 809.9 KB
hardware/184 files · 809.9 KB
tep/184 files · 809.9 KB
avr/184 files · 809.9 KB
cores/55 files · 269.9 KB
tep32/55 files · 269.9 KB
SRC abi.cppSource file 1.1 KB
SRC Arduino.hSource file 7.7 KB
SRC binary.hSource file 11 KB
SRC CDC.cppSource file 8.5 KB
SRC Client.hSource file 1.5 KB
SRC Esp.cppSource file 1.7 KB
SRC Esp.hSource file 1.8 KB
SRC esp32-hal-ledc.cSource file 5.7 KB
SRC esp32-hal-misc.cppSource file 4.9 KB
SRC esp32-hal-rgb.cSource file 1.1 KB
SRC esp32-hal.hSource file 5.8 KB
SRC HardwareSerial.cppSource file 9.6 KB
SRC HardwareSerial.hSource file 7.2 KB
SRC HardwareSerial0.cppSource file 2.5 KB
SRC HardwareSerial1.cppSource file 2.1 KB
SRC HardwareSerial2.cppSource file 1.9 KB
SRC HardwareSerial3.cppSource file 2.1 KB
SRC HardwareSerial_private.hSource file 4.4 KB
SRC hooks.cSource file 1.1 KB
SRC IPAddress.cppSource file 3 KB
SRC IPAddress.hSource file 3 KB
SRC main.cppSource file 1.8 KB
FILE newFile 2.5 KB
SRC new.cppSource file 3.5 KB
SRC new.hSource file 149 B
SRC PluggableUSB.cppSource file 2.7 KB
SRC PluggableUSB.hSource file 2 KB
SRC Print.cppSource file 6.4 KB
SRC Print.hSource file 3.2 KB
SRC Printable.hSource file 1.3 KB
SRC Server.hSource file 963 B
SRC Stream.cppSource file 8.6 KB
SRC Stream.hSource file 5.9 KB
SRC tep32_link.cSource file 5.8 KB
SRC tep32_link.hSource file 9.4 KB
SRC tep32_private.hSource file 1.5 KB
SRC TepGpsSerial.cppSource file 1.3 KB
SRC Tone.cppSource file 14.7 KB
SRC Udp.hSource file 4.3 KB
SRC USBAPI.hSource file 6.1 KB
SRC USBCore.cppSource file 20.1 KB
SRC USBCore.hSource file 8.2 KB
SRC USBDesc.hSource file 2 KB
SRC WCharacter.hSource file 4.5 KB
SRC WInterrupts.cSource file 311 B
SRC wiring.cSource file 12.3 KB
SRC wiring_analog.cSource file 6.7 KB
SRC wiring_digital.cSource file 5.4 KB
SRC wiring_private.hSource file 2.2 KB
SRC wiring_pulse.cSource file 3.4 KB
SRC wiring_pulse.SSource file 5.9 KB
SRC wiring_shift.cSource file 1.5 KB
SRC WMath.cppSource file 1.6 KB
SRC WString.cppSource file 16.6 KB
SRC WString.hSource file 9.7 KB
libraries/90 files · 236.3 KB
Arduino_LED_Matrix/3 files · 7.8 KB
src/2 files · 7.4 KB
LIB Arduino_LED_Matrix.cppArduino library file 3.6 KB
LIB Arduino_LED_Matrix.hArduino library file 3.8 KB
LIB library.propertiesArduino library file 504 B
Arduino_RouterBridge/3 files · 19.8 KB
src/2 files · 19.3 KB
LIB Arduino_RouterBridge.cppArduino library file 8.3 KB
LIB Arduino_RouterBridge.hArduino library file 10.9 KB
LIB library.propertiesArduino library file 522 B
EEPROM/12 files · 22.6 KB
examples/8 files · 11 KB
eeprom_clear/1 file · 918 B
INO eeprom_clear.inoArduino sketch 918 B
eeprom_crc/1 file · 1.4 KB
INO eeprom_crc.inoArduino sketch 1.4 KB
eeprom_get/1 file · 1.8 KB
INO eeprom_get.inoArduino sketch 1.8 KB
eeprom_iteration/1 file · 1 KB
INO eeprom_iteration.inoArduino sketch 1 KB
eeprom_put/1 file · 1.3 KB
INO eeprom_put.inoArduino sketch 1.3 KB
eeprom_read/1 file · 1.4 KB
INO eeprom_read.inoArduino sketch 1.4 KB
eeprom_update/1 file · 1.8 KB
INO eeprom_update.inoArduino sketch 1.8 KB
eeprom_write/1 file · 1.4 KB
INO eeprom_write.inoArduino sketch 1.4 KB
src/1 file · 5.7 KB
LIB EEPROM.hArduino library file 5.7 KB
TXT keywords.txtText file 502 B
LIB library.propertiesArduino library file 463 B
MD README.mdReadme 5 KB
ESP32Servo/2 files · 2 KB
src/1 file · 1.6 KB
LIB ESP32Servo.hArduino library file 1.6 KB
LIB library.propertiesArduino library file 368 B
ESP8266HTTPClient/2 files · 872 B
src/1 file · 406 B
LIB ESP8266HTTPClient.hArduino library file 406 B
LIB library.propertiesArduino library file 466 B
ESP8266mDNS/2 files · 848 B
src/1 file · 404 B
LIB ESP8266mDNS.hArduino library file 404 B
LIB library.propertiesArduino library file 444 B
ESP8266WebServer/2 files · 937 B
src/1 file · 460 B
LIB ESP8266WebServer.hArduino library file 460 B
LIB library.propertiesArduino library file 477 B
ESP8266WiFi/2 files · 1.2 KB
src/1 file · 739 B
LIB ESP8266WiFi.hArduino library file 739 B
LIB library.propertiesArduino library file 448 B
ESPmDNS/2 files · 1.6 KB
src/1 file · 1.3 KB
LIB ESPmDNS.hArduino library file 1.3 KB
LIB library.propertiesArduino library file 350 B
ETH/3 files · 10.3 KB
src/2 files · 9.7 KB
LIB ETH.cppArduino library file 5.7 KB
LIB ETH.hArduino library file 4 KB
LIB library.propertiesArduino library file 562 B
HTTPClient/3 files · 11.6 KB
src/2 files · 11.3 KB
LIB HTTPClient.cppArduino library file 7.2 KB
LIB HTTPClient.hArduino library file 4.1 KB
LIB library.propertiesArduino library file 371 B
Keyboard/3 files · 8.5 KB
src/2 files · 8 KB
LIB Keyboard.cppArduino library file 4.5 KB
LIB Keyboard.hArduino library file 3.5 KB
LIB library.propertiesArduino library file 492 B
LEAmDNS/2 files · 868 B
src/1 file · 390 B
LIB LEAmDNS.hArduino library file 390 B
LIB library.propertiesArduino library file 478 B
Mouse/3 files · 2.8 KB
src/2 files · 2.4 KB
LIB Mouse.cppArduino library file 1.2 KB
LIB Mouse.hArduino library file 1.2 KB
LIB library.propertiesArduino library file 487 B
Preferences/3 files · 10 KB
src/2 files · 9.6 KB
LIB Preferences.cppArduino library file 5.1 KB
LIB Preferences.hArduino library file 4.6 KB
LIB library.propertiesArduino library file 371 B
Servo/2 files · 652 B
src/1 file · 294 B
LIB Servo.hArduino library file 294 B
LIB library.propertiesArduino library file 358 B
SPI/6 files · 24.6 KB
examples/2 files · 6.4 KB
BarometricPressureSensor/1 file · 4.4 KB
INO BarometricPressureSensor.inoArduino sketch 4.4 KB
DigitalPotControl/1 file · 1.9 KB
INO DigitalPotControl.inoArduino sketch 1.9 KB
src/2 files · 16.9 KB
LIB SPI.cppArduino library file 5.8 KB
LIB SPI.hArduino library file 11 KB
TXT keywords.txtText file 835 B
LIB library.propertiesArduino library file 518 B
WebServer/3 files · 13.9 KB
src/2 files · 13.5 KB
LIB WebServer.cppArduino library file 9.1 KB
LIB WebServer.hArduino library file 4.4 KB
LIB library.propertiesArduino library file 439 B
WiFi/15 files · 46.7 KB
src/14 files · 46.2 KB
LIB tep_wifi_link.cppArduino library file 3.9 KB
LIB tep_wifi_link.hArduino library file 1.2 KB
LIB WiFi.cppArduino library file 9.3 KB
LIB WiFi.hArduino library file 7.1 KB
LIB WiFiClient.cppArduino library file 4.4 KB
LIB WiFiClient.hArduino library file 2.4 KB
LIB WiFiClientSecure.hArduino library file 388 B
LIB WiFiEvents.cppArduino library file 5.1 KB
LIB WiFiMulti.hArduino library file 893 B
LIB WiFiServer.cppArduino library file 667 B
LIB WiFiServer.hArduino library file 1.3 KB
LIB WiFiType.hArduino library file 5.5 KB
LIB WiFiUdp.cppArduino library file 2.3 KB
LIB WiFiUdp.hArduino library file 1.8 KB
LIB library.propertiesArduino library file 468 B
WiFiNINA/2 files · 1.4 KB
src/1 file · 882 B
LIB WiFiNINA.hArduino library file 882 B
LIB library.propertiesArduino library file 530 B
WiFiS3/2 files · 1.2 KB
src/1 file · 791 B
LIB WiFiS3.hArduino library file 791 B
LIB library.propertiesArduino library file 487 B
Wire/13 files · 46.1 KB
examples/7 files · 8.5 KB
digital_potentiometer/1 file · 894 B
INO digital_potentiometer.inoArduino sketch 894 B
i2c_scanner/1 file · 2 KB
INO i2c_scanner.inoArduino sketch 2 KB
master_reader/1 file · 730 B
INO master_reader.inoArduino sketch 730 B
master_writer/1 file · 646 B
INO master_writer.inoArduino sketch 646 B
SFRRanger_reader/1 file · 2.6 KB
INO SFRRanger_reader.inoArduino sketch 2.6 KB
slave_receiver/1 file · 977 B
INO slave_receiver.inoArduino sketch 977 B
slave_sender/1 file · 702 B
INO slave_sender.inoArduino sketch 702 B
src/4 files · 36.6 KB
utility/2 files · 22.4 KB
LIB twi.cArduino library file 20.6 KB
LIB twi.hArduino library file 1.8 KB
LIB Wire.cppArduino library file 11.1 KB
LIB Wire.hArduino library file 3.2 KB
TXT keywords.txtText file 596 B
LIB library.propertiesArduino library file 406 B
variants/34 files · 227.9 KB
arduino_due/1 file · 9.3 KB
SRC pins_arduino.hSource file 9.3 KB
blackpill_f411/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
bluepill_f103c8/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
d1_mini/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
d1_r2/1 file · 6.4 KB
SRC pins_arduino.hSource file 6.4 KB
esp32c3_supermini/1 file · 5.3 KB
SRC pins_arduino.hSource file 5.3 KB
esp32c6_devkitc1/1 file · 5.7 KB
SRC pins_arduino.hSource file 5.7 KB
esp32s3_devkitc1/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
esp32_devkitc_v4/1 file · 6.4 KB
SRC pins_arduino.hSource file 6.4 KB
esp32_devkit_v1/1 file · 6.3 KB
SRC pins_arduino.hSource file 6.3 KB
heltec_wifi_lora_32_v3/1 file · 8.5 KB
SRC pins_arduino.hSource file 8.5 KB
leonardo/1 file · 6.6 KB
SRC pins_arduino.hSource file 6.6 KB
lilygo_t_beam/1 file · 7.6 KB
SRC pins_arduino.hSource file 7.6 KB
lilygo_t_display_s3/1 file · 8.3 KB
SRC pins_arduino.hSource file 8.3 KB
lolin_s2_mini/1 file · 7.2 KB
SRC pins_arduino.hSource file 7.2 KB
mkr_wifi_1010/1 file · 6 KB
SRC pins_arduino.hSource file 6 KB
nano_33_iot/1 file · 6.1 KB
SRC pins_arduino.hSource file 6.1 KB
nano_esp32/1 file · 6.3 KB
SRC pins_arduino.hSource file 6.3 KB
nano_every/1 file · 6 KB
SRC pins_arduino.hSource file 6 KB
nano_rp2040_connect/1 file · 6.2 KB
SRC pins_arduino.hSource file 6.2 KB
nodemcu_v2/1 file · 6.1 KB
SRC pins_arduino.hSource file 6.1 KB
nodemcu_v3/1 file · 5.8 KB
SRC pins_arduino.hSource file 5.8 KB
nucleo_f401re/1 file · 7 KB
SRC pins_arduino.hSource file 7 KB
pico2/1 file · 6.5 KB
SRC pins_arduino.hSource file 6.5 KB
pico2_w/1 file · 6.6 KB
SRC pins_arduino.hSource file 6.6 KB
pico_w/1 file · 6.5 KB
SRC pins_arduino.hSource file 6.5 KB
teensy41/1 file · 7.5 KB
SRC pins_arduino.hSource file 7.5 KB
ttgo_t_display/1 file · 7.7 KB
SRC pins_arduino.hSource file 7.7 KB
uno_q/1 file · 7.1 KB
SRC pins_arduino.hSource file 7.1 KB
uno_r4_minima/1 file · 5.8 KB
SRC pins_arduino.hSource file 5.8 KB
uno_r4_wifi/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
uno_wifi_rev2/1 file · 5.9 KB
SRC pins_arduino.hSource file 5.9 KB
wt32_eth01/1 file · 7 KB
SRC pins_arduino.hSource file 7 KB
xiao_esp32c3/1 file · 5.5 KB
SRC pins_arduino.hSource file 5.5 KB
TXT boards.txtText file 17 KB
TXT LICENSE-LGPL-2.1.txtText file 25.9 KB
TXT LICENSE-MIT.txtText file 1.3 KB
TXT platform.txtText file 8.5 KB
TXT README.txtText file 23 KB
Proteus Library Files/5 files · 200.3 KB
LIB TEPESP01S.LIBProteus library 18.5 KB
LIB TEPLAPTOP.LIBProteus library 39.5 KB
LIB TEPLEONARDO.LIBProteus library 35.8 KB
LIB TEPMOBILE.LIBProteus library 13.1 KB
LIB TEPTTP229.LIBProteus library 93.4 KB
Proteus Model Files/2 files · 2.9 MB
DLL TEPNET.DLLSimulation model 2.6 MB
DLL TEPTTP229.DLLSimulation model 311.5 KB
Proteus Simulation/4 files · 2.9 MB
DSN Leonardo-Macro-Pad.pdsprjProteus simulation 27.6 KB
HEX Leonardo_Macro_Pad.hexCompiled HEX file 36.2 KB
DLL TEPNET.DLLSimulation model 2.6 MB
DLL TEPTTP229.DLLSimulation model 311.5 KB
TXT README.txtText file 15.8 KB

README

README.txt 201 lines
ARDUINO LEONARDO LIBRARY FOR PROTEUS - V1.0 (YOUR LEONARDO SKETCH, USB KEYBOARD AND MOUSE, A 16-KEY MACRO PAD)
Designed by The Engineering Projects
www.TheEngineeringProjects.com

IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
  https://www.theengineeringprojects.com/2026/10/arduino-leonardo-library-for-proteus.html
Report a bug or suggest a feature (our forum):
  https://www.theengineeringprojects.com/forum/category/arduino-leonardo-proteus-library
The demo's parts are our libraries (included) - their articles:
  TTP229 touch keypad:
    https://www.theengineeringprojects.com/2026/10/ttp229-touch-keypad-library-for-proteus-v1-0.html
  ESP-01S:
    https://www.theengineeringprojects.com/2026/10/esp-01s-library-for-proteus.html
  Laptop and phone:
    https://www.theengineeringprojects.com/2026/10/laptop-wifi-monitor-library-for-proteus.html
    https://www.theengineeringprojects.com/2026/10/mobile-wifi-monitor-library-for-proteus.html
The Arduino UNO (ATmega328P) of our Arduino Library V4.0:
  https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
  https://www.theengineeringprojects.com/donate

FILE STRUCTURE
Arduino-Leonardo-TEP-v1.0/
|-- Proteus Library Files/
|   |-- TEPESP01S.LIB                                    18.5 KB   the ESP-01S (demo), to LIBRARY
|   |-- TEPLAPTOP.LIB                                    39.5 KB   the laptop (demo), to LIBRARY
|   |-- TEPLEONARDO.LIB                                  35.8 KB   the Arduino Leonardo, to LIBRARY
|   |-- TEPMOBILE.LIB                                    13.1 KB   the phone (demo), to LIBRARY
|   |-- TEPTTP229.LIB                                    93.4 KB   the TTP229 touch keypad (demo), to LIBRARY
|-- Proteus Model Files/
|   |-- TEPNET.DLL                                       2.57 MB   the board + monitors + network, to MODELS
|   |-- TEPTTP229.DLL                                   311.5 KB   the TTP229 touch keypad, to MODELS
|-- Arduino Code/
|   |-- Leonardo_Macro_Pad/Leonardo_Macro_Pad.ino        11.8 KB   the demo sketch
|   |-- TEP Boards for Proteus/hardware/                809.9 KB   the Arduino IDE add-on 1.34.0 (184 files)
|-- Proteus Simulation/
|   |-- Leonardo_Macro_Pad.hex                           36.2 KB   the demo sketch (U1)
|   |-- Leonardo-Macro-Pad.pdsprj                        27.6 KB   the demo: a 16-key macro pad
|   |-- TEPNET.DLL                                       2.57 MB   copy of the model
|   |-- TEPTTP229.DLL                                   311.5 KB   copy of the model
|-- README.txt                                          ~14.7 KB   this file
Total: 6.82 MB (unzipped). The source code of the models is not included.

WHAT IS IT?
Proteus 8 has no Microchip ATmega32U4 model with its USB, so this is NOT a real ATmega32U4. It is the Arduino Leonardo -
the UNO's 68.6 x 53.4 mm board and headers with the ATmega32U4 (USB on the chip itself), micro-USB, the DC jack, RESET,
the ICSP header and the L, TX, RX and ON LEDs - that runs YOUR Leonardo sketch in Proteus:
  * You write a normal Leonardo sketch (D0 .. D13, A0 .. A5, LED_BUILTIN, Serial, Serial1, Wire, EEPROM, analogRead
    0 .. 1023, analogWrite, attachInterrupt, Keyboard, Mouse ...) and compile it in the Arduino IDE with our board
    package "TEP Boards for Proteus" 1.34.0 (in Arduino Code - see INSTALLATION).
  * Inside the board, Proteus's own ATmega2560 model runs the compiled sketch at 16 MHz; our model (TEPNET.DLL) wraps
    it: the Leonardo's pins, 5 V logic, A0 .. A5 (0 .. 1023 for 0 .. 5 V), the RESET button, the L LED on D13, the ON
    LED and the built-in serial monitor on the USB (Serial).
  * The Leonardo's USB is also a keyboard and a mouse for the PC. Keyboard.h and Mouse.h (Arduino's names) send their
    HID reports to the board model, and the board model plays the PC: a click on the ATmega32U4 opens the PC window -
    a notepad that types what the board types (Shift, Caps Lock, Enter, Backspace, Tab; Ctrl+A / C / V / X / Z / S / N
    act on it), the modifiers and keys held, the last shortcuts, a 1920 x 1080 screen with the mouse pointer, its clicks
    (a right click opens a context menu) and the wheel; a Reports tab lists every report with its bytes.
TEP additions: the micro-USB opens the serial monitor, the ATmega32U4 the PC window; the LEDs glow in the simulation.
The board has no radio. For Wi-Fi, put an ESP-01 / ESP-01S on Serial1 (D0 / D1) and talk to it with AT commands, as the
demo does.
Limits (say them before you start): 16 MHz, 8 KB of RAM (the real ATmega32U4: 2.5 KB), the ATmega32U4's own registers
(its USB controller, Timer4, the PLL) are not there - write Arduino code, not registers. See MODEL SCOPE AND LIMITS.

ONE DEVICE (search "LEONARDO" in Pick Devices):
  ARDUINO LEONARDO  "Arduino Leonardo" V1.0 (Microprocessor ICs > Arduino Boards), prefix U, model TEPNET.DLL. The
  serial monitor (115200 baud) has Monitor, Plotter and Board tabs (the Board tab: the ON and L LEDs, the RESET key,
  every pin). The PC window has PC, Reports, Settings and Help tabs. Like every TEP window they have no Windows title
  bar.
The same TEPNET.DLL also runs our other sketch boards, the ESP-01 / ESP-01S modules and the Laptop / Mobile WiFi
Monitors; it replaces any older TEPNET.DLL (keep only this newest one in MODELS).

TEST STATUS
V1.0: verified in Proteus 8.5 on 27 Oct 2026 with the demo project as shipped. What the Proteus run showed:
* Leonardo-Macro-Pad: the PC window opened with "USB HID: keyboard + mouse" (Keyboard.begin and Mouse.begin); the
  monitor printed "Joining TEP-WiFi... connected", "Macro pad page: http://192.168.1.102/" and "Pads free, keys 0,
  characters 0, IP 192.168.1.102, pages 0"; the TTP229's pop-up: 16 keys, single-key, active-low, a read every 20 ms
  with 16 clocks; the ESP-01S's: ONLINE 192.168.1.102.
* The laptop (192.168.1.21) and the phone (192.168.1.41) opened http://192.168.1.102/ (HTTP 200, 653 bytes): the 16
  keys as links.
* Pads 1 and 2 on the TTP229's pop-up: the notepad typed "Hello from the Arduino Leonardo!", "Regards," and "The
  Engineering Projects". Pads 5, 6, 13, 7: Ctrl+A selected the text, Ctrl+C, a left click, Ctrl+V - the text twice.
* Pads 12, 12, 9, 9, 11: the pointer from 960, 540 to 1080, 300 with its trail; pad 14: a right click and the context
  menu; pad 15: the wheel -3. Pad 16 (Ctrl+Z) took the paste back, pad 3 typed "Macro pad: 15 keys, 2 pages, up 24 s",
  pad 8 (Ctrl+S): "notes.txt - Notepad, saved 1 time". The ON and L LEDs lit.
* HELLO tapped on the phone ("Page: /k1", "Key 1 (HELLO) from page") and ENTER on the laptop typed on the PC; the
  Reports tab: 328 reports (e.g. 02 00 0F 00 00 00 00 00 = Shift + L).
* About 35 s of simulation in about 4 minutes with the two pop-ups, the PC window, the monitor and both tools open; no
  errors.

INSTALLATION (about 3 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" to the LIBRARY folder of Proteus, for example:
     C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
   (on some PCs: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\LIBRARY). TEPLEONARDO.LIB is the board;
   the others are the demo's parts: TEPTTP229.LIB, TEPESP01S.LIB, TEPLAPTOP.LIB and TEPMOBILE.LIB.
3. Copy the DLLs from "Proteus Model Files" (TEPNET.DLL, TEPTTP229.DLL) to the MODELS folder
   (...\Proteus 8 Professional\MODELS) - replace an older TEPNET.DLL (this one is the first that knows the Leonardo).
4. Delete TEPLEONARDO.IDX from the LIBRARY folder if it is there.
5. The Arduino IDE (only to compile your own sketches - the demo has its HEX file): copy the folder
   "Arduino Code\TEP Boards for Proteus\hardware" into your sketchbook folder (normally Documents\Arduino), so that
   Documents\Arduino\hardware\tep\avr\boards.txt exists (replace an older copy); restart the IDE. The Arduino AVR Boards
   platform must be installed (it comes with IDE 1.8.x; in IDE 2.x install "Arduino AVR Boards" from the Boards Manager
   once). Tools > Board > TEP Boards for Proteus > Arduino Leonardo (TEP Proteus). Keyboard and Mouse come with the
   package (the IDE takes the board package's copies).
6. Start Proteus. In Pick Devices (P) search "LEONARDO".

RUN THE DEMO
Keep the .hex file and the DLLs beside the project in "Proteus Simulation".
Leonardo-Macro-Pad.pdsprj - U1 the Leonardo (Leonardo_Macro_Pad.hex) is a 16-key macro pad on its own USB: U3 = the
TTP229 16-key touch keypad (Advance; its TP2 pad bridged for 16 keys - the OPTIONS property) with SCL on D8 and SDO on
D7, and U2 = the ESP-01S on Serial1 (its TXD to D0 / RX, its RXD to D1 / TX; 115200 baud, AT commands). PC1 the Laptop
WiFi Monitor and MOB1 the Mobile WiFi Monitor open http://192.168.1.102/ (the ESP-01S is U2): the 16 keys as links.
Press Run. The PC window opens (Keyboard.begin and Mouse.begin: "USB HID: keyboard + mouse"), the ESP-01S joins
TEP-WiFi and the monitor prints the page's address. Click the pads on the TTP229's pop-up (or on the board):
  pads 1 - 4    HELLO (types a line), SIGNATURE (two lines), REPORT (the pad's counts and uptime), ENTER
  pads 5 - 8    SELECT ALL (Ctrl+A), COPY (Ctrl+C), PASTE (Ctrl+V), SAVE (Ctrl+S: "notes.txt - Notepad")
  pads 9 - 12   the mouse UP, DOWN, LEFT, RIGHT (120 pixels in 6 steps)
  pads 13 - 16  CLICK (left), MENU (right click: the context menu), SCROLL (3 notches), UNDO (Ctrl+Z)
Every key flashes the L LED off while it runs and prints "Key n (NAME) from pad" on the monitor. A tap on the phone's
or the laptop's page runs the same macro ("from page"). The monitor takes KEY n, TYPE text, STATUS and AT commands for
the ESP-01S.
The modules' supplies: in the demo the ESP-01S's VCC and the TTP229's VCC go to Proteus' power rail (power terminals) -
their models read the supply as a digital level, which the board's 5V (an analog source) does not give them; on a real
board the ESP-01S needs its own 3.3 V regulator and the TTP229 sits on the 5V pin. Closed the monitor? Click the board's
micro-USB. Closed the PC window? Click the ATmega32U4.

THE PINS (the label on the board, what it can do in the simulation)
  RX<0 / TX>1        D0 / D1: Serial1 (not the USB), GPIO
  2 / 3              D2 / D3: Wire SDA / SCL (I2C, also on the SDA / SCL pins by AREF), GPIO
  4 .. 13            GPIO, interrupt, analogWrite (PWM on 3, 5, 6, 9, 10, 11, 13 on the real board; any pin in the
                     simulation); 13 is also the L LED
  A0 .. A5           analogRead 0 .. 1023 for 0 .. 5 V; also GPIO 18 .. 23
  5V / 3.3V          5 V (the board's logic) and a 3.3 V output
  GND, RESET         ground; RESET LOW holds the board in reset
  AREF, IOREF, Vin   drawn, not modelled
Serial is the USB (the board's monitor), not D0 / D1. SPI is on the ICSP header on a real Leonardo (not on D10 .. D13);
the header is drawn here, not wired. The pins are 5 V logic, as on the real Leonardo.

PROPERTIES (double-click the board > Edit Properties)
  PROGRAM   the sketch's HEX (Arduino IDE: Sketch > Export Compiled Binary with Arduino Leonardo (TEP Proteus))
  MONITOR   YES = the built-in serial monitor on the USB (Serial);  BAUD  its speed (115200, or AUTO)
  AUTOOPEN  YES = the monitor window opens at Run (the demo: YES); the PC window has "Open at Run" in its Settings
One Leonardo per design (its USB serial lines are hidden pins, and Proteus joins hidden pins of the same name across
parts).

TROUBLESHOOTING
* Nothing happens at Run: the HEX was not built with TEP Boards for Proteus - select Arduino Leonardo (TEP Proteus) and
  export the binary again.
* The PC window says "waiting for Keyboard.begin()": the sketch has not called Keyboard.begin() / Mouse.begin() yet.
* Nothing is typed: the sketch sends keys only when its macro runs - check the pins of the keypad (SCL D8, SDO D7 in the
  demo) and that the TTP229 has 16 keys (TP2 bridged) for pads 9 - 16.
* The ESP-01S does not answer, NO POWER on its pop-up: its VCC needs a digital supply (the power terminal, as in the
  demo); TXD to D0 (RX), RXD to D1 (TX); Serial1.begin(115200).
* "Joining TEP-WiFi... FAILED": the sketch's SSID / password differ from the ESP-01S's WIFISSID / WIFIPASS.
* An integer goes wrong above 32767: int is 16 bits, as on the real ATmega32U4.
* The page shows old values: tap REFRESH (the monitors do not reload by themselves).

BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot and the Serial Monitor text:
  https://www.theengineeringprojects.com/forum/category/arduino-leonardo-proteus-library

LICENCES AND THIRD-PARTY NOTES
* The board model and the network (TEPNET.DLL, which also runs the ESP-01S), the symbols and artwork (TEPLEONARDO.LIB,
  TEPESP01S.LIB, TEPLAPTOP.LIB, TEPMOBILE.LIB) and the keypad model (TEPTTP229 .LIB / .DLL) are made by The Engineering
  Projects. The board's processor is Proteus's own ATmega2560 model. The source code of the models is not included.
* TEP Boards for Proteus (Arduino Code): its core, the variants and the EEPROM, SPI and Wire libraries are modified
  copies of the Arduino AVR core 1.8.6 - GNU Lesser General Public License 2.1 (LGPL 2.1, the text:
  LICENSE-LGPL-2.1.txt); its Keyboard and Mouse libraries (written by us with Arduino's names), its other libraries and
  our core files are MIT (LICENSE-MIT.txt).
* The demo sketch uses the package's Keyboard and Mouse libraries and no third-party library (AT commands to the
  ESP-01S, the TTP229 read with its own clock pulses); the .hex is included.
* Proteus is a product of Labcenter Electronics and is not included. Arduino and Leonardo are trademarks of Arduino
  S.r.l.; ATmega32U4 is a name of Microchip Technology; TTP229 of Tontek. This library is not made or endorsed by them
  or by Labcenter.

REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied. Install TEP Boards for Proteus (INSTALLATION step 5), open Arduino Code\Leonardo_Macro_Pad,
select Arduino Leonardo (TEP Proteus) and use Sketch > Export Compiled Binary. For a real Leonardo select "Arduino
Leonardo" (Arduino AVR Boards) and upload - the same sketch, with Arduino's Keyboard and Mouse libraries from the
Library Manager. On a real PC the macro pad types into whatever window has the focus: try it with a text editor open.

MODEL SCOPE AND LIMITS
Modelled: the Leonardo's header pins on a hidden ATmega2560 (Proteus's AVR model, 16 MHz, 5 V); digital I/O,
analogRead (A0 .. A5) 0 .. 1023 for 0 .. 5 V, PWM (analogWrite) and attachInterrupt on any pin through the board model;
the RESET button, the L LED on D13, the ON LED; Serial (the USB, the board's monitor), Serial1 on D0 / D1, Wire on D2 /
D3, EEPROM; the USB HID: Keyboard (the en_US layout, six keys at once plus the modifiers) and Mouse (buttons, moves and
the wheel; one count = one pixel of the PC's 1920 x 1080 screen, no acceleration) with the PC window; Wi-Fi through a
TEP ESP-01 / ESP-01S on Serial1.
Not modelled: the ATmega32U4 itself (2.5 KB RAM, its USB controller and descriptors, Timer4, the PLL), the PC's answers
(the Caps Lock LED state, keyboard layouts other than en_US), media keys (Arduino's Keyboard library sends none, so the
PC window's MEDIA KEYS card stays idle with this board), the TX and RX LEDs (drawn, not driven),
SPI on the ICSP header, A6 .. A11 (the real board's extra analog inputs on D4, D6, D8, D9, D10 and D12: digital
here), VIN (7 - 12 V) and AREF. Upload over USB is not used (Proteus loads the HEX). The simulation
runs below real time.

VERSION
TEP Arduino Leonardo library V1.0 (Oct 2026). Device ARDUINO LEONARDO (TEPLEONARDO.LIB / TEPNET.DLL), TEP Boards for
Proteus 1.34.0 (adds the Leonardo, Keyboard and Mouse). Demo sketch Leonardo_Macro_Pad V1.0. Demo parts: TTP229 Touch
Keypad (the Advance version), ESP-01S WIFI MODULE, LAPTOP WIFI MONITOR and MOBILE WIFI MONITOR.
Advertisement

Development1 release

  1. V1.0Arduino Leonardo Library for Proteus V1.0this page

    V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.

Installation10 steps

From the download to a working project, in order. The steps follow what the package contains.

You will need

  • Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
  • Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
  • The compiler named in the tutorialto build the source files into firmware
  • Any archive toolWindows, macOS and Linux extract ZIP files on their own

Steps

  1. 1

    Extract the archive

    Right-click arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (Arduino-Leonardo-TEP-v1.0) as it is.

  2. 2

    Copy the library files into Proteus

    Move TEPESP01S.LIB, TEPLAPTOP.LIB and TEPLEONARDO.LIB and 2 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.

  3. 3

    Add the simulation model

    Copy TEPNET.DLL and TEPTTP229.DLL into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.

  4. 4

    Restart Proteus and place the component

    Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.

  5. 5

    Install the Arduino library

    In the Arduino IDE choose Sketch → Include Library → Add .ZIP Library and pick the library, or copy its folder into Documents\Arduino\libraries. Restart the IDE to see its examples.

  6. 6

    Open the sketch in the Arduino IDE

    Open Leonardo_Macro_Pad.ino, eeprom_clear.ino and eeprom_crc.ino and 15 more, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.

  7. 7

    Build the source code

    Open abi.cpp, Arduino.h and binary.h and 52 more in the compiler named in the tutorial (MikroC, Keil, MPLAB, Code Composer or the Arduino IDE) and build it to get the firmware.

  8. 8

    Load the HEX file

    In Proteus double-click the microcontroller, set Program File to Leonardo_Macro_Pad.hex and run the simulation. For real hardware, flash the same file with your programmer.

  9. 9

    Open the example simulation

    Open Leonardo-Macro-Pad.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.

  10. 10

    Follow the tutorial

    Arduino Leonardo Library for Proteus: USB Keyboard + Mouse explains every connection and setting in order; keep it open beside the files while you build.

How to add a library in Proteus 8 Run the HEX file in the Uno Test Bench, in your browser

FAQs9 questionsContact TEP

How do I download Arduino Leonardo Library for Proteus V1.0?

Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.

What is inside the archive?

Arduino Leonardo Library for Proteus V1.0 comes as a ZIP archive of 197 files (3.1 MB, 6.8 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch, an Arduino library, compiled HEX firmware and source code. Open the File Structure tab for the full list of 197 files.

What should I do if the download does not start?

Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.

Is this file free?

Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.

How do I check that the file arrived complete?

Compare its SHA-256 with the one on this page, d10869daf236701e8e7e2b44b564780418d3a3c6dcbc42a69a2a99313c7c7351. In PowerShell run Get-FileHash "arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip"; on macOS or Linux run shasum -a 256 "arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.

Do I need WinRAR to open the ZIP file?

No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.

Where do I put the LIB and IDX files?

Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.

Which Proteus version does the library need?

The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.

How do I get the HEX file into the simulation?

Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.

preparing · arduino-leonardo-tep-v1-0-46a5276ece024d80b0d66e1693046e61.zip
Rating
Your download will be ready shortly
Preparing your download…

Members skip the wait. Log in or join TEP.

  • 0Total downloads
  • 4%Popularity
  • ProteusCategory
  • 0Comments
  • ssyedzainnasirUploaded by
  • 28 Oct 2026Uploaded at
Last 14 days0 downloads
SHA-256 d10869daf236701e8e7e2b44b564780418d3a3c6dcbc42a69a2a99313c7c7351
DocumentationArduino Leonardo Library for Proteus: USB Keyboard + Mouse
Advertisement

Comments

0

Join the conversation

Start the conversationAsk a question or share how you used this download.