Closed kgracey closed 8 years ago
Looks like this is just a matter of setting the DIRA
register with DIRA |= mask;
as the last line in toggle()
, is that all that is being asked? I'll submit a merge request for this tonight. It seems like a good idea so that toggle()
is consistent with high()
and low()
.
Done, and now compiled and ready to test. Thanks DavidZemon!
I created the following code from Blockly and had to add the low(26) and low(27) to make it work properly:
It seems that SimpleTools.h should default the pin to low so this isn't needed in the code. @AndyLindsay is aware of the issue and proper solution. Until this is fixed I will work around it by having Blockly add the low into the two cogs. - KG