t flip flop help

i was making my first code a t-flip flop but when i upload it to my arduino uno the led just burns and when i press the button nothing happens. Can someone help me ??

flip_flop.ino (486 Bytes)

What is "buttonin" supposed to be? it is a boolean that you use as a pin number in digitalWrite().

Use code tags, there is no reason to attach a code that short.

Hello welcome,

boolean buttonin = true; 
...
digitalWrite(buttonin, LOW);

digitalWrite require a pin number as the first argument, not a bool.

if (digitalRead(button) == HIGH);
{
    ...
}

You must not put a semicolon at the end of an if statement.

can you guys tell me how to make a t flip flop or some tips to make a code for it ??

vova:
can you guys tell me how to make a t flip flop or some tips to make a code for it ??

They've given you a great clue (EDIT: two great clues) about what's wrong with your code. How about you make those changes, try it, and let us know how it works. Post it and any new problems and we can continue.

This is a place to get help with your code, not a place to have your homework done for you.

Delta_G:
They've given you a great clue (EDIT: two great clues) about what's wrong with your code. How about you make those changes, try it, and let us know how it works. Post it and any new problems and we can continue.

This is a place to get help with your code, not a place to have your homework done for you.

i want to do it myself but i don't know what a code tag is

Sometimes you have to be willing to read a little. Reading instructions will be an invaluable skill if you want to be able to work with programming and electronics.

Here is a link to the thread at the top of the forum titled "How to Use This Forum"
http://forum.arduino.cc/index.php/topic,148850.0.html

Pay particular attention to point 7.