I am new to Arduino and all I want to do is parse a String of binary numbers to an exact integer representation. 

```cpp
char* byte1 = "11111111"
int binary1 = atoi(byte1);
Serial.print(binary1);

```

However this prints out: -19961

Can anyone explain why? I am coming from a Java and JavaScript perspective.