OttoDIY / blockly

Otto Blockly; a fully integrated graphical programming for any type of Arduino projects, including robots, ready to install in your computer, it works offline and also online
https://www.ottodiy.com/software
GNU General Public License v2.0
114 stars 80 forks source link

Block for OLED animations #80

Closed cparrapa closed 3 years ago

cparrapa commented 3 years ago

We have already a block for OLED bitmaps how to make it animations like this video? https://youtu.be/0KGMFhFQ0YY

cparrapa commented 3 years ago

@cadcygnus It is true that the bmp for the oled needs to rewritten in code as bmp1, bmp2, etc, for the various images to show up on the oled. Then would it not be more feasible if you created a block that will automatically rename the bmp to the ordered sequence, like you did in the function blocks? Then instead of having you write a program for everyone who needs to use more than one image in the oled you can have the block write in the code.

I think this would improve your blockly to do animations and even gifs.

logix5 commented 3 years ago

https://www.instructables.com/Animation-on-OLED-Arduino/

El vie, 26 feb 2021 a las 12:27, Camilo Parra Palacio (< notifications@github.com>) escribió:

@cadcygnus https://github.com/cadcygnus It is true that the bmp for the oled needs to rewritten in code as bmp1, bmp2, etc, for the various images to show up on the oled. Then would it not be more feasible if you created a block that will automatically rename the bmp to the ordered sequence, like you did in the function blocks? Then instead of having you write a program for everyone who needs to use more than one image in the oled you can have the block write in the code.

I think this would improve your blockly to do animations and even gifs.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OttoDIY/blockly/issues/80#issuecomment-786589713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZ4AUBBASM5ORPI3K4HNETTA6ARDANCNFSM4VRMOV5A .

-- Óscar Ferruz Romero Socio fundador. Tel. 620.402.168

C/ Artajona, 17. 28039 - Madrid. www.logix5.com blog.logix5.com

www.twitter.com/Logix5_SS http://www.twitter.com/logix5_SS

www.facebook.com/logix5

Instagram: logix5_

"En la vida hay tres cosas que no dan marcha atrás: la palabra pronunciada, la flecha lanzada y la oportunidad perdida, ¿vamos a dejarla escapar?"

cadcygnus commented 3 years ago

Can you convert this into a blockly? I saw your video and program. Nice work.

logix5 commented 3 years ago

Hi

Maybe we can add blocks as ST7735, where you can create variables for frames and then you can draw. these blocks:

[image: image.png]

We can clone these blocks in OLED display

El dom, 28 feb 2021 a las 6:11, cadcygnus (notifications@github.com) escribió:

Can you convert this into a blockly? I saw your video and program. Nice work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OttoDIY/blockly/issues/80#issuecomment-787396171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGZ4AUDWEBTJ4ONYVJFNSVLTBHF77ANCNFSM4VRMOV5A .

-- Óscar Ferruz Romero Socio fundador. Tel. 620.402.168

C/ Artajona, 17. 28039 - Madrid. www.logix5.com blog.logix5.com

www.twitter.com/Logix5_SS http://www.twitter.com/logix5_SS

www.facebook.com/logix5

Instagram: logix5_

"En la vida hay tres cosas que no dan marcha atrás: la palabra pronunciada, la flecha lanzada y la oportunidad perdida, ¿vamos a dejarla escapar?"

cparrapa commented 3 years ago

It looks to me great progress in this commit https://github.com/OttoDIY/blockly/commit/da3ed5928045c1af6a6568fd857495277c36f093

In the video a guy uses this software to create even more smooths animations can this be just copied inside the block? https://drive.google.com/file/d/1ECufN2p8tpTUwq2UFgZK_Rq3wDmOACDo/view

So far i use this tool but is only for frame per frame not the entire animation https://javl.github.io/image2cpp/

i found this cool tool for creating OLED animations, basically you can just pick web icons8 that already have the frames and here you can convert them to code https://wokwi-app.web.app/animator