Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload trough webserver not working #4

Open
hakmes opened this issue Nov 13, 2018 · 16 comments
Open

upload trough webserver not working #4

hakmes opened this issue Nov 13, 2018 · 16 comments

Comments

@hakmes
Copy link

hakmes commented Nov 13, 2018

Dear developer,

I've been experimenting with your code to build my own pixel frame with 12x12 pixels.
I have most of it working. I can show gif's when uploaded trough arduino IDE SPIFFS and show the clock (although the time is wrong) and text. I am not able to use the file editer/uploader. As soon as I click the link my Wemos D1 Mini freezes and reboots.
Any idea what I am doing wrong?

so far I love this project! But if I could upload new gif's trough the browser it would be perfect 👍

@hakmes hakmes changed the title upload not working upload trough webserver not working Nov 13, 2018
@hakmes
Copy link
Author

hakmes commented Nov 13, 2018

ps. took me a while to notice that I had to connect RX as datapin instead of the usual D4 pin.

@alanswx
Copy link
Owner

alanswx commented Nov 13, 2018

I made a hat with a pixel display last week. I had to update some of the code and libraries. Let me see if I can get some changes in.

@alanswx
Copy link
Owner

alanswx commented Nov 14, 2018

I think the classes subclasses from the web library need to implement another method.

Isrequesthandlertrivial - needs to return false. I will try to check in the fix tomorrow. It will fix the piskel code too I think.

@alanswx
Copy link
Owner

alanswx commented Nov 14, 2018

This should work now. Let me know.

@hakmes
Copy link
Author

hakmes commented Nov 14, 2018

wow, never had this quick support 👍

Browsing files now work, but I get error 500 when trying to upload a gif and error 400 when I click create. And for some reason now all text is mirrored on my pixel frame. Clock and IP adress scroll mirrored aswell.

@hakmes
Copy link
Author

hakmes commented Nov 14, 2018

typedef ColumnMajorAlternating90Layout MyPanelLayout;
//typedef RowMajor90Layout MyPanelLayout;

I changed these 2 over, but that didn't help. Now everything is unreadable haha.
What does this do? is it related to the the wiring of the leds?

gtg to work now. would have wanted to investigate more.

-edit-
RowMajorAlternatingLayout did the trick

@alanswx
Copy link
Owner

alanswx commented Nov 14, 2018

you can drop some gifs in the data folder and reupload the spiffs. Let me know what is working and what isn't when you are done. What size SPIFFS do you have? It needs to be bigger than 1M.

@hakmes
Copy link
Author

hakmes commented Nov 15, 2018

I've set it to 3M SPIFFS.
I've made some screenshots. Maybe that helps.
I login to the edit interface with admin/admin.

@alanswx
Copy link
Owner

alanswx commented Nov 16, 2018

I uploaded the async web sample spiffs data and it worked. I need to figure out what the differences are. I think I may have checked in the wrong version of the code. That is why the pixel orientation was wrong. I will try to spend some more time on it Monday or Tuesday.

@alanswx
Copy link
Owner

alanswx commented Nov 21, 2018

Give it another try. I was able to get everything working on my esp8266 setup. I got it to compile it on esp32, but i haven't tried it on my esp32 board yet.

@hakmes
Copy link
Author

hakmes commented Nov 22, 2018

Yes! uploading files and deleting them works on my Wemos D1!
Many thanks!

@alanswx
Copy link
Owner

alanswx commented Nov 22, 2018

Did you try the piskel editor? It is pretty cool. You can use it to make your own animations and save them on the device. Then download them as gifs so you can keep a copy if you blow away the spiffs. I should upload some more gifs

@hakmes
Copy link
Author

hakmes commented Nov 23, 2018

The piskel editor saving mechanism works, but live display is going wrong in my case.

When I create this
it will show a different pattern. The part on the right is reminiscence of the clock display. (see issue below)
I guess this is because I am using a 12x12 grid instead of 8x8. Even though I've changed the default size to 12x12 in piskel. It seems that the livepixeldisplay is forced to use 8x8?

The other thing I noticed that when switching from a gif back to clock or text, some parts stay into memory.. Is it possible to send a black command or something before starting the clock or text box?

@alanswx
Copy link
Owner

alanswx commented Nov 23, 2018

Something is probably hard coded to
8x8. I should figure out a way to put a setting or a define in.

@alanswx
Copy link
Owner

alanswx commented Nov 23, 2018

Where did you buy the 12x12?

@hakmes
Copy link
Author

hakmes commented Nov 23, 2018

I didn't buy a 12x12 grid. I made it myself.
I used a pressed board with in total 144 WS2812 LED's from a strip that are routed from left to right, right to left, etc. Then I soldered all LED connections (The grid was bigger than the default size of the LED strip) and covered the LED's with a grid designed for air intake in buildings. Then I've put a piece of paper on top to diffuse the light.

In my first attempt I routed all LED's from left to right and connected them with wire on the back of the board. But after taking a closer look at the instructables page I noticed it was different, so I changed all the wiring. I don't know if this could have been avoided by changing the layout in the code. But it was too late before I figured out that you could change that.
This is my grid. before I changed the direction of the LED's. So in this photo everything is from left to right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants