Comments (3)
I started modifying the source in order to make the pin assignments dynamic. I made quite a lot progress for the sensors. However, when I came across the matrix pin, I had to learn that this cannot be done dynamically on a ESP8266.
The following discussion explains the reasons behind this:
FastLED/FastLED#1137
To summarize: in order to gain the required speed even on an ESP8266, the FastLED library tries to make as little decisions during runtime as possible. One of these decisions is the pin used. The pin can only be changed when the software is being compiled.
The only option would be to create as many FastLED objects within the program as pins should be available, then decide dynamically which one to use. Disadvantage of that solution: it consumes quite a lot memory.
Given that @o0shojo0o even moved the webui to github rather than keeping it on flash and in memory, I suppose memory will be an issue.
So, I will try to finish my work on dynamic pins for sensors during the next couple of days and upload the code as PR, which allows @o0shojo0o to decide whether to accept my modifications or not. But LEDs will remain assigned to D4.
from pixelit.
+1 from me as well. I'd love to create an option which allows to shift the D8 pin to D5, as this would allow to re-use components from AWTRIX project (AWTRIX PCB expects DFPlayer on D5).
I am eager to extend the .ino code, however, I have no idea how to extend the WebUi.
from pixelit.
I have finished working on the pin assignment version.
However, I think I might have mixed up my repository, basing the new version on 0.3.14 then merging and reverting, rather than basing it on my recent PR.
@o0shojo0o I guess it would be easiest if you could decide on my recent PR, then I will create a new PR for the pin assignment version.
from pixelit.
Related Issues (20)
- ESP32 d1_mini reconnection every few minutes HOT 1
- ESP32 d1_mini loose all settings after reboot HOT 1
- bme680 Reading Backwards? HOT 3
- Pixel HOT 1
- SAVE CONFIG button not clickable ESP32 d1mini esp32-d0wdq5 rev 3 HOT 27
- MQTT setScreen only works if the master topic ends with "/" HOT 1
- Is that correct? "Pin-Zuordnung: Unbekannter Pin" HOT 4
- Question/Discussion: Reduce MQTT "noise" HOT 5
- Black screen after update new firmware. 2.4.3 HOT 24
- Feature request: config backup/restore HOT 3
- MQTT message is to long HOT 15
- Unable to turn off LEDs HOT 18
- Feature request: Ulanzi TC001 buzzer support HOT 1
- Ulanzi TC001: Add option to disable battery screen on boot HOT 8
- Feature request: 64x32 LED matrix support HOT 1
- [FEATURE REQUEST] Cyrillic font (ready-made font and code) HOT 10
- Node-red Warnung HOT 3
- Android Support ? HOT 1
- Display switches automatically on HOT 1
- Request: use WiFiManager v2.0.17 HOT 3
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.
from pixelit.