Hi,
Can someone please help me out here, I cant see what is wrong with this code...
When I set line 10 high the variable bang is never set to 1...?
Thanks.
int inn = 10;
int wire = 0;
static int bang = 0;
void setup()
{
pinMode(inn, INPUT);
}
void loop()
{
wire = digitalRead(inn);
if (wire = 1)
{
bang == 1;
}
else
{
bang == 0;
}
}