Timeline for Use digital pins as analog - Arduino Micro
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 1, 2018 at 22:52 | comment | added | Majenko | Yes, they are followed by ; | |
| May 1, 2018 at 16:29 | comment | added | scv | What are those pin numbers followed by ; ? | |
| Nov 4, 2016 at 0:32 | comment | added | Alex | Good to know. I'll have to look at the pins_arduino file for future ref! | |
| Nov 4, 2016 at 0:29 | comment | added | Majenko |
I just looked the file up - you cannot use 8, you have to use A8 or 26.
|
|
| Nov 4, 2016 at 0:29 | history | edited | Majenko | CC BY-SA 3.0 |
added 748 characters in body
|
| Nov 4, 2016 at 0:27 | vote | accept | Alex | ||
| Nov 4, 2016 at 0:27 | comment | added | Alex | I guess I just found it strange that one pin could be used both as analog and as a digital! | |
| Nov 4, 2016 at 0:26 | comment | added | Majenko | If A8 equals 8 then they are interchangeable. If not, then not. | |
| Nov 4, 2016 at 0:26 | comment | added | Ignacio Vazquez-Abrams | When referring to the pin in a digital context you can use either label. | |
| Nov 4, 2016 at 0:23 | comment | added | Alex | so conversely (and for my own understanding), to use these pins as a digital pin (which they are also capable of) I can also do a digitalRead(8)? Furthermore, is the 'A' required? I've read that it automatically assigns A if its an analogRead. | |
| Nov 4, 2016 at 0:19 | history | answered | Majenko | CC BY-SA 3.0 |