telpo_m8 0.0.4
telpo_m8: ^0.0.4 copied to clipboard
A Flutter plugin for interacting with Telpo M8 devices, allowing for operations such as displaying images on LCD, generating QR codes, and printing with a thermal printer.
Telpo M8 Flutter Plugin #
Overview #
The telpo_m8 Flutter plugin provides seamless integration with the Telpo M8 device, enabling developers to leverage key features such as the QR Code scanner, subLCD, and Thermal Printer. This plugin facilitates the development of Flutter applications that can fully utilize the capabilities of the Telpo M8 hardware.
Features #
-
QR Code Scanner: Easily incorporate QR Code scanning functionality into your Flutter app using the Telpo M8 device.
-
SubLCD Integration: Leverage the subLCD feature of the Telpo M8 for displaying additional information or creating a customized user interface.
-
Thermal Printer Support: Print receipts or other important documents using the Thermal Printer functionality of the Telpo M8.
Getting Started #
Installation #
To use this plugin, add telpo_m8 as a dependency in your pubspec.yaml file:
dependencies:
telpo_m8: ^1.0.0
Then run:
$ flutter packages get
Usage #
Import the telpo_m8 package in your Dart code:
import 'package:telpo_m8/telpo_m8.dart';
Initialize the Telpo M8 device:
await TelpoM8.initialize();
QR Code Scanner #
To use the QR Code scanner, invoke the following method:
String result = await TelpoM8.scanQRCode();
print("Scanned QR Code: $result");
SubLCD #
Display text on the subLCD screen:
TelpoM8.showOnSubLCD("Hello, Telpo M8!");
Thermal Printer #
Print a document using the Thermal Printer:
String content = "Your receipt details go here.";
await TelpoM8.printThermal(content);
Documentation #
For more detailed information and additional functionalities, refer to the online documentation.
Support #
If you encounter any issues or have questions, feel free to create an issue on GitHub.
Contributing #
Contributions are welcome! Fork the repository and submit a pull request.
License #
This plugin is released under the MIT License.
Happy coding with Telpo M8!