standupmaths / xmastree2020 Goto Github PK
View Code? Open in Web Editor NEWMy 500 LED xmas tree
License: MIT License
My 500 LED xmas tree
License: MIT License
Following the instructions at https://learn.adafruit.com/neopixels-on-raspberry-pi/python-usage on how to install the
neopixel library, I get this:
Collecting sysv-ipc (from Adafruit-Blinka->adafruit-circuitpython-neopixel)
Using cached https://files.pythonhosted.org/packages/0c/d7/5d2f861155e9749f981e6c58f2a482d3ab458bf8c35ae24d4b4d5899ebf9/sysv_ipc-1.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-p029qfz7/sysv-ipc/setup.py", line 11, in <module>
import prober
File "/tmp/pip-build-p029qfz7/sysv-ipc/prober.py", line 137
d["SYSV_IPC_VERSION"] = f'"{version}"'
^
SyntaxError: invalid syntax
I checked that I have python3 installed.
The second command doesn't work either:
pi@kano4:~/xmastree2020-main $ sudo python3 -m pip install --force-reinstall adafruit-blinka
Collecting adafruit-blinka
Using cached https://www.piwheels.org/simple/adafruit-blinka/Adafruit_Blinka-5.13.1-py3-none-any.whl
Collecting sysv-ipc (from adafruit-blinka)
Using cached https://files.pythonhosted.org/packages/0c/d7/5d2f861155e9749f981e6c58f2a482d3ab458bf8c35ae24d4b4d5899ebf9/sysv_ipc-1.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-5yeeu738/sysv-ipc/setup.py", line 11, in <module>
import prober
File "/tmp/pip-build-5yeeu738/sysv-ipc/prober.py", line 137
d["SYSV_IPC_VERSION"] = f'"{version}"'
^
SyntaxError: invalid syntax
Ignoring the error and trying to run anyway didn't work...
pi@kano4:~/xmastree2020-main $ python3 xmaslights-spin.py
Traceback (most recent call last):
File "xmaslights-spin.py", line 144, in <module>
xmaslight()
File "xmaslights-spin.py", line 9, in xmaslight
import neopixel
ImportError: No module named 'neopixel'
pi@kano4:~/xmastree2020-main $ python xmaslights-spin.py
Traceback (most recent call last):
File "xmaslights-spin.py", line 144, in <module>
xmaslight()
File "xmaslights-spin.py", line 43, in xmaslight
pixels = neopixel.NeoPixel(board.D18, PIXEL_COUNT, auto_write=False)
AttributeError: 'module' object has no attribute 'NeoPixel'
Any suggestions what to do next? (btw python newbie, so can I ask you to spell it out and not assume I know much about how python works)
thanks
Graham
Some mathematicians purists could argue that the code in not functional!
There are many animations that can (and should) be expressed as a function of 4d space+time.
Thus colors of pixels are just a samples of this function at the LED coordinate t the time of the animation c_i = f(X_i)
.
So in the video you say there is much better ways to track the LEDs. Fun Fact, there is not. is there any way we can grab a copy of your tracking code and a list of dependency's. Not after a full tutorial just enough that I can stumble uphill instead of downhill.
P.S. Love your work.
gphoto is a great CLI tool for controlling DSLRs. It currently has support for around 2700 models according to their website.
This could be used for the first calibration/initialisation instead of the webcam potentially getting better results because:
I wated to implement this in the holidays but there was too much stuff regarding university.
I might have a look another time but thought I might share this idea
EDIT: sadly it seems like the part calculating the coordinates and exporting them to the coordinates.txt is not in this repo :(
Matt,
Did you post the code to map a tree to the coordinates?
Sergey
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.