When i added 0b with the binary value it worked….
I defined adcout as int.
I have variation of 0x00 to 0x32 (0d50).
So i just multiplied adcout by 2 (0b10)
Converted into decimal charactor by itoa()
Now it is working…
I also have a 4×4 keypad.
And i need to change the limits using it
The keys are like
Menu 1 2 3
Back 4 5 6
Exit 7 8 9
Delete Left 0 Right
So while working if i type 50 for lower limit and 95 for higher limit and set it, after that the motor should turn on when level goes below 50%. and off above 95%.
I was doing like this.
When higher limit option is selected it will call the function higher_limit()
char h_l ;
how can i make it ? ……