Giter VIP home page Giter VIP logo

colorscapegenerator's Introduction

Color Display Pattern Generator Project

This project is designed to display colors and images on a screen controlled by a Raspberry Pi or Windows PC via serial communication. It uses Pygame library to create a graphical interface and handles incoming commands from the serial port to change colors and display images.

Requirements

  • Python 3.x
  • Pygame library
  • Serial library (already included in Python standard library)

Setup

  1. Clone the repository:

git clone https://github.com/your-username/color-display-project.git

  1. Install the required libraries:
pip install pygame
  1. Connect your Raspberry Pi or Windows PC to the display screen via serial port.

Usage

  1. Run the main script or double click the batch file:
python PAT_V01.py.py
  1. Use the following serial commands to interact with the display:
  • F1 [color_index]: Change the display color. color_index is a number from 1 to n, where n is the total number of colors defined in the config.ini file.
  • F2: Toggle fullscreen mode.
  1. Use the following keyboard or mouse click to interact with the display:
  • mouse left click : change the next pattern.
  • Q: Quit the program.

Configuration

You can customize the colors and image paths by editing the config.ini file. Here is an example of the config.ini file:

[colors]
white = 255, 255, 255
red = 255, 0, 0
green = 0, 255, 0
blue = 0, 0, 255
PIC = 0
pic1 = 0,
square1 = 0,
green1 = 0, 255, 0

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

colorscapegenerator's People

Contributors

coolping avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.