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 ??

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