0.2.4 • Published 6 months ago

imin-lcd-manager v0.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

LcdManagerModule

LcdManagerModule is a powerful React Native module for Android that provides a variety of methods to interact with an LCD manager.

📦 Installation

To install the package, use npm:

npm install @iminlcdmanager/lcdmanager

📚 Usage

First, import the module in your React Native file:

import { LcdManager } from '@iminlcdmanager/lcdmanager';

Then, you can use the methods provided by the module:

// Send an LCD command
LcdManager.sendLCDCommand(flag);

// Send a string to the LCD
LcdManager.sendLCDString(string);

// Send multiple strings to the LCD
LcdManager.sendLCDMultiString(text, align);

// Send a double string to the LCD
LcdManager.sendLCDDoubleString(topText, bottomText);

// Send a bitmap from a file to the LCD
LcdManager.sendLCDBitmapFromFile(filePath);

// Send a bitmap from a URL to the LCD
LcdManager.sendLCDBitmapFromURL(url);

// Set the text size
LcdManager.setTextSize(size);

📝 Methods

Here are the methods provided by the LcdManagerModule:

sendLCDCommand(flag): Sends an LCD command.
sendLCDString(string): Sends a string to the LCD.
sendLCDMultiString(text, align): Sends multiple strings to the LCD.
sendLCDDoubleString(topText, bottomText): Sends a double string to the LCD.
sendLCDBitmapFromFile(filePath): Sends a bitmap from a file to the LCD.
sendLCDBitmapFromURL(url): Sends a bitmap from a URL to the LCD.
setTextSize(size): Sets the text size.

📝 Flags

Here are the flag values that can be used with the sendLCDCommand method:

FlagDescription
INITInitializes the LCD.
WAKEWakes up the LCD.
HIBERNATEPuts the LCD into hibernation mode.
CLEARClears the LCD.

📄 License

This project is licensed under the MIT License.

💡 Contribution

We're open to contributions! Please read our contribution guide before submitting a pull request.

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

7 months ago