Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Genereated code for number var is incorrect (Constant Blocks) #3
As they are constants I want to have them in the setup loop (it's unwanted to executed these every loop), and that's where they are generated now. Although without value. When I manually edit the code by replacing the zeros by the correct pin numbers, it's works fine on the Arduino. So I think what I did in ArduBlock should work.
Hi HBL, thanks for the feedback. I think this makes good case of either having a "setup" block or a "constant." Or make a spacial case for "set var" block outside of "loop."
Maybe a "constant" block is best and we can use the #define in the language to save a few bytes in the resulting binary.