Close

Starting to make a button block

A project log for Barnabas Robotics ArduBlock Upgrade

An upgrade for ArduBlock

grace-kullGrace Kull 06/28/2019 at 01:530 Comments

Today I managed to continue with making a button block. The main takeaway was figuring out what Java code to put in its file, especially since I haven't used Java in 3 years. I basically looked at other blocks' Java code and from that, figured out what snippets of code to put in my block's file. Then I had to make sure it could properly upload to Arduino. To do that, I had to find a block that would allow me to write setup code. I searched through many files before finding the LED block's Java file. I then used its methods to implement the proper setup code. I had a few issues with uploading my block's code to Arduino at first, but I figured out matching the different variable names between different files, and it eventually worked!

Above is the code for my block :)

Discussions