Arduino-Debug icon indicating copy to clipboard operation
Arduino-Debug copied to clipboard

set variables

Open pille opened this issue 7 years ago • 3 comments

it would be nice being able to set variables to a certain value. e.g.: !VARIABLE VALUE should assign VALUE to VARIABLE. !duration 100 sets duration to 100.

it would be ok to:

  • have this implemented for integers only as the main point would be fine-tuning those.
  • ignore type checking, as this is for debugging and the user should know what he's doing.

pille avatar Jul 17 '18 11:07 pille

I actually wrote a version that allows that but there is a significant growth in program and data size so I omitted that. The simplest version is to add a byte/block level modification and then build on that.

mikaelpatel avatar Jul 17 '18 17:07 mikaelpatel

could you publish that branch? you've modularized all features using #ifdefs, and i won't need most of them...

pille avatar Jul 18 '18 11:07 pille

I might be able to manually merge the code back into the main branch but too much has happened since I tested it so it is simply easier to rewrite it when I get the time.

mikaelpatel avatar Jul 18 '18 13:07 mikaelpatel