constrain(x, a, b)
map(value, fromLow, fromHigh, toLow, toHigh)
Note that- Everything is case sensitive
- doubles are only floats on standard 8-bit Arduino board
- there is shift operator, but no rotate operator
most common "easy" errors:
- not setting pinMode() to ouput,
- using = instead of == for conditional tests
- wrong capitalization for functions like Serial.print()