didiks
Newbie level 1

Please Help me.
how to use this schematic for apllied in ATmega16, i use CodeVisionAVR. Please Explain step by step to config ADC. Thanks before..
**broken link removed**
how to use this schematic for apllied in ATmega16, i use CodeVisionAVR. Please Explain step by step to config ADC. Thanks before..
**broken link removed**
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 const int ERROR = 15; // may also be 15 or 50 if (i > 1024 - ERROR) return Keys.None; if (i < 0 + ERROR) return Keys.Right; if (i < 180 + ERROR && i > 180 - ERROR) return Keys.Up; if (i < 390 + ERROR && i > 390 - ERROR) return Keys.Down; if (i < 580 + ERROR && i > 80 - ERROR) return Keys.Left; if (i < 780 + ERROR && i > 780 - ERROR) return Keys.Select; return Keys.None; }