QUESTION: Number of Digital pins
Issue #106
resolved
Hi John,
micro:bit docs state:
MicroBlocks blocks “analog” reports 6, and “digital” reports 29.
Is the digital count correct ?
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Question answered.
- Log in to comment
Some of those pins are internal pins and the pin numbers comes from the Arduino framework for the micro:bit. Here’s the comment from the code:
But I agree, it is confusing. The idea is to make the internal pins available for advanced users. For example, if you wanted to write your own low-level code to control the 5x5 display, you’d need to use the internal row and column pins, pins 23-28.