To start using the sample ESCPOS printer with Lao language support, follow these steps:
- Clone the Repository:
Clone this repository to your local machine using the following command:
git clone https://github.com/Pitpy/escpos-lao-text.git
- Make Virtual Environment:
Navigate to the cloned directory and create a virtual environment:
cd escpos-lao-text python -m venv .venv - Activate the Virtual Environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
- Install Dependencies:
Install the required dependencies using pip:
pip install -r requirements.txt
- Run the Sample Code:
Execute the sample code to test the ESCPOS printer with Lao language support:
python sample.py
- Check Printer Connection: Ensure that your ESCPOS printer is connected and configured correctly. The sample code will attempt to print a test message in Lao language.
- Modify Sample Code:
You can modify the
sample.pyfile to customize the text or add more features as needed. - Troubleshooting:
If you encounter any issues, check the following:
- Ensure that the printer is powered on and connected to your computer.
- Verify that the correct port is specified in the sample code.
- Check for any error messages in the console output.
- Further Customization:
You can explore the
escposlibrary documentation for more advanced features and customization options: - License: This project is licensed under the MIT License. See the LICENSE file for more details.