Close

Project Log Entry 2 - Shawn

A project log for Barnabas Blocks Upgrade - BIG 2021

Webserial API webtool to upload Arduino code.

sion-hwangSion Hwang 07/26/2021 at 21:063 Comments

Apologies for the delayed post, but I worked on this week's assignment mostly yesterday and this morning.

First, with the help of Mr. Richard and the online Blockly Toolbox, I updated the color and text of the controls_wait block to a color of 0 and also to state: "FREEZE! You're under arrest for _ seconds!". This website was particularly helpful for further understanding the Blockly program's code: https://developers.google.com/blockly/guides/overview.

Furthermore, I edited the code portion of this block to state as shown:

Obviously, I would need to change the delay function accordingly to allow "frozen" to mean to wait that many miliseconds.

I used the Developer Tools function in order to update my saved code and see the changes live.

Here is the new block I created: "WAIT twice the seconds."

Simply, whatever amount of seconds the user inputs gets doubled in arduino_compressed and is reflected on the editor tab:

As for the shape of the blocks, I was also a bit confused on this part. Thus, I decided to leave it for now, and I will be attempting the challenge questions later today.

Discussions

Edward Li wrote 07/27/2021 at 05:38 point

Awesome, Sion!  Thanks for the nice screenshots.  Great work

  Are you sure? yes | no

richard wrote 07/27/2021 at 02:10 point

Good stuff! LOL, bro, I was totally kidding when i said call me Mr. Richard haha. please just call me richard.

  Are you sure? yes | no

Sion Hwang wrote 07/27/2021 at 02:31 point

I was just joking around! haha

  Are you sure? yes | no