![]() ![]() ![]() The exact registers and details are given in the atmega328p datasheet, but I'll give an overview of a simple approach. Additionally, you might not get the performance benefits you are looking for, since the relative overhead of analogRead is not as large as the overhead of digitalRead, and most of the time is spent actually waiting for the ADC to do a conversion. More information can be found at readthedocs.The analog readings for pins are obtained using the ADC peripheral, not a GPIO port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |