arduino-ws2811-rotary-rgb-led-strip's People
arduino-ws2811-rotary-rgb-led-strip's Issues
random flashes every few seconds when running at max speed
Hey, I followed your guide:
https://github.com/mcgurk/Arduino-WS2811-rotary-RGB-led-strip/blob/master/OrangePi.md
with my OrangePi 3 LTS to run a 256 led matrix
It works great, except when I'm running it at full speed without any delays, there's an occasional unexpected high intensity white flash from all LEDs.
my code is very simple:
n = 0
fnum = 0
start_time = time.time()
while True:
ws2812.write2812(spi, data[n])
n = (n + 1) % 6
fnum += 1
# time.sleep(0.02)
now = time.time()
if now - start_time > 1:
print(fnum)
fnum = 0
start_time = now
just running through 6 preset patterns
When I'm running it like this, it prints around 111 FPS, (with numpy imported)
And I'm seeing these flashes every 4-5 seconds
if I uncomment the time.sleep(), it goes down to 33 FPS, and the flashes are less frequent but they still happen about every 20 seconds.
Any idea what's going on?
OS I installed is Ubuntu server, so there's no X or desktop running in the background and I'm connected to the OrangePi via SSH.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.