- Apr 18, 2001
- 19,720
- 1
- 0
I can't seem to think of how to do this, but there must be a simple way.
I've got an ADC coming in, dumping the value into a char.. so 0...255.
I need to take the value and split each decimal digit into its own char.
eg.
adc in = 123
char A = 1
char B = 2
char C = 3
I can't seem to think of an easy way to do it though?
I've got an ADC coming in, dumping the value into a char.. so 0...255.
I need to take the value and split each decimal digit into its own char.
eg.
adc in = 123
char A = 1
char B = 2
char C = 3
I can't seem to think of an easy way to do it though?