A framework developed from the labs that enables testing of each driver based on the parameter provided at runtime.
- Errors: Introduced a fail function that accepts an error type and message, improving error reporting and simplifying logging
- RTC: Provides access to the current date and time, from year down to seconds
- Timer: Enables precise time measurement and interval tracking
- Keyboard: Captures and interprets keyboard scancodes
- Mouse: Handles mouse input, including movement, clicks, and scrolling
- Video: Supports rendering mode configuration and on-screen drawing operations
- Serial Port: Supports data transfer between machines (Not fully implemented and Untested)
LCode is a code editor built for Minix, providing an interactive environment for navigating the file tree and editing files.
Building and launching LCode with ./run.sh proj
Writing C with live syntax highlighting
Saving from the status bar and browsing the file tree
Copy, cut and paste
Files written in LCode compile and run in Minix
- File editor: Supports writing, text selection, and page scrolling
- File tree: A navigable menu for traversing the file system and opening files
- Shortcuts: Includes essential keyboard shortcuts and support for important special characters
- Status Bar: Displays the current open folder, session uptime, and current time; also allows creating new files and opening files via full path
- Mouse Support: Both the file tree and file editor support full mouse interaction, including scrolling, clicking, and text selection
- Ctrl + b: Opens and closes file tree
- Ctrl + s: Saves file
- Ctrl + o: Opens file
- Ctrl + c: Copies selected text
- Ctrl + v: Pastes selected text
- Ctrl + x: Cut selected text
- Ctrl + q: Leave LCode
After creating the framework, we quickly realized that compiling the framework and the project separately every time a change was made was neither practical nor efficient.
The development environment should adapt to our workflow, not constrain it. To achieve this, we created run.sh, a simple shell script that automates the process of building both the framework and the project. It also provides the flexibility to run either the framework for testing purposes or the project itself, streamlining development and reducing repetitive manual steps.
To run the project simply do:
./run.sh projTo test a single driver from the framework:
./run.sh fw <driver>We declare that:
- We are responsible for all code and documentation in this repository, and we understand that we must be able to explain and justify any part of it on request.
- We have used AI-based tools (e.g., code assistants, chatbots, or generators) only to support my learning, not to bypass the intended learning outcomes or any assessment rules.
- Wherever AI tools contributed to this work, we have:
- Used them within the limits set by the course policies and institutional regulations.
- Reviewed, tested, and, where necessary, edited the outputs, taking full responsibility for their correctness, originality, and legality.
- Ensured that no confidential, personal, or sensitive data were shared with AI tools.
- We have not used AI tools to generate complete solutions that we present as entirely our own unaided work, and we have avoided plagiarism, whether from AI outputs or other sources.
- If asked, we will provide details of which tools we used, for which files or parts of the project, and how we verified and adapted their outputs.
Signed: Luís Costa, Miguel Rocha, Pedro Teixeira, Rafael Silva
Date: 05/06/2025
LCOM Project for group GRUPO_2LEIC14_2.
- Luís Costa (up202404078@up.pt)
- Miguel Rocha (up202405484@up.pt)
- Pedro Teixeira (up202404987@up.pt)
- Rafael Silva (up202406334@up.pt)





