Hi,
I’m new to particle and trying to figure out some of the code. In the relay shield example:
https://docs.particle.io/datasheets/particle-shields/#relay-shield-sample-code
there is a line of code:
int relayNumber = command.charAt(1) - ‘0’;
I understand everything except why
='0’
is at the end of the line.
Can anyone shed light on this?
Thanks,
Rich