Skip to content
No description, website, or topics provided.
Python C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
NeoPy_Fishino
NeoPy_NodeMCU
README.md
examples_matrix.py
examples_star.py
examples_strip.py
neopy.py

README.md

NeoPy

NeoPy is a way to control your NeoPixel LEDs via WiFi in Python.

Hardware

  • Fishino Guppy or NodeMCU
  • (optional) Raspberry Pi

Steps

  1. Setup Fishino Guppy or NodeMCU sketch with your WiFi credentials and LEDs number and flash the sketch
  2. Include neopy.py in your Python script to control LEDs over WiFi

NeoPy.py usage

  • Instance one NeoPy object with 90 LEDs, send commands to these IP (default port = 4242):
    strip = NeoPy(90, "192.168.1.123")
  • Set the third LED to RED:
    strip.Set(2, (255, 0, 0))
  • Set all LEDs to blue:
    strip.SetAll((0, 0, 255))
  • Set all LEDs half brightness (input values from 0 to 100):
    strip.SetBrightness(50)
  • Retrieve one RGB color from Wheel (input values from 0 to 255) and set to all LEDs:
    color = strip.Wheel(128)
    strip.SetAll(color)
  • LED matrix mode (True/False, Number of matrix, Width, Height, First pixel position [TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT]):
    strip.IsMatrix(True, 1, 12, 12, strip.BOTTOM_LEFT)
  • Set pixel color of a LED matrix at position X, Y (position 2,4 and color green):
    strip.SetPixel(2, 4, (0, 255, 0))
  • Refresh the strip (send command over WiFi):
    strip.Show()

Notice

If you use NeoPicture (12x12 NeoPixel matrix) you must use a Fishino Guppy with Fishino Guppy sketch due to memory optimization.

You can’t perform that action at this time.