Upload Blocks file?
twm47099
Posts: 867
I tried to upload the pixy2.svg file (30028-Pixy2_Demo_2020-18-01.svg) to Blockly using "upload blocks file" from the dropdown menu. That opened a window that allowed me to browse & select the svg file and gave the option of replacing or appending the file. I selected the file and it told me "The selected file appears valid." good. I selected "replace".
Nothing happened. I thought that since it was a large file that it might take some time, so I went off and did other things. Came back - still nothing.
So I wrote a short Blockly program (increment, loop and print a variable to the terminal) verified that the program complied and then used the download the blocks file option to my computer. Then went and tried the upload blocks file on that short svg file. Again nothing happened.
I have the latest version of the client software (v0.7.5) and tried both firefox and chrome browsers. I am connecting to the "http://blockly.parallax.com/" site through the client software.
Any ideas?
Thanks
Tom
Nothing happened. I thought that since it was a large file that it might take some time, so I went off and did other things. Came back - still nothing.
So I wrote a short Blockly program (increment, loop and print a variable to the terminal) verified that the program complied and then used the download the blocks file option to my computer. Then went and tried the upload blocks file on that short svg file. Again nothing happened.
I have the latest version of the client software (v0.7.5) and tried both firefox and chrome browsers. I am connecting to the "http://blockly.parallax.com/" site through the client software.
Any ideas?
Thanks
Tom
Comments
Success?
Ken Gracey
Thanks.
I was able to get the program to upload.
When I click on the verify button, I get a lot of errors. I have to look through them to try to see what is happening.
Tom
Go to the serial initialization block, set the states to 0 for Tx/Rx, then to the Tx/Rx pins you want to use.
Fixed?
Ken Gracey
The error was that wherever an array-variable-element block was used, the variable name was the default "list". "list" was never initialized.
However, array "pixybuf" was initialized so I figured that was what should replace "list". I made all the changes, and it compiles successfully.
I still have to do the hardware build.
Tom
I'll have the BlocklyProp boffins (a name Phil coined) look at this thread.
Send me your e-mail address and I'll share a tutorial with you kgracey@parallax.com. It'll help you get started (we've not posted it yet on Learn).
Ken Gracey
kgracey@parallax.com
PM sent
Thanks
Tom
Thanks. I got the pdf and will spend some time understanding it.
Tom