define output as int variable

KeithRB:
You need to set _ABVAR_1_pin13 to 13 in set up to set the correct pin to an OUTPUT.

Thanks for this information. But... In fact i m a teacher for young people and this "c code is produce" using a plugin 'Ardublock' for arduino. (A kind of graphical coding ).
Sure, it s not the kind of code i would write in C, but It should work, as there is no real error.

  • the int variable is initialized as 0 before the setup
  • the pin is set in the setup as output usin the int_variable
  • the pin is set in the loop as 13.

In fact, i discovered this strange behavior of the arduino bd due to the poor amout of light from the led.
It works, but, we need to use transistors to light the led !!. ( only 1.6 v on output.

here is example of graphical programme from ardublock.

http://hpics.li/e32b5cc

thanks