EloiStree / HelloInput

Collect of information about old project on Input in aim to do a workshop on the topic
0 stars 0 forks source link

Hardware: Micro:bit #21

Open EloiStree opened 3 months ago

EloiStree commented 3 months ago

image

Pin Type Function Function V2
0 Touch Pad 0 Pad 0
1 Touch Pad 1 Pad 1
2 Touch Pad 2 Pad 2
3 Analog Column 1 Column 3
4 Analog Column 2 Column 1
5 Digital Button A Button A
6 Digital Column 9 Column 4
7 Digital Column 8 Column 2
8 Digital    
9 Digital Column 7  
10 Analog Column 3 Column 5
11 Digital Button B Button B
12 Digital    
13 Digital SPI SCK SPI SCK
14 Digital SPI MISO SPI MISO
15 Digital SPI MOSI SPI MOSI
16 Digital    
       
19 Digital I2C SCL I2C SCL
20 Digital I2C SDA I2C SDA

Doc: https://microbit.org/get-started/features/overview/ Firmware: https://microbit.org/get-started/user-guide/firmware/

EloiStree commented 2 weeks ago
Pin Description
3 GPIO shared with LED Col 3 of the LED screen; can be used for ADC and digital I/O when the LED screen is turned off.
4 GPIO shared with LED Col 1 of the LED screen; can be used for ADC and digital I/O when the LED screen is turned off.
5 GPIO shared with Button A. This lets you trigger or detect a button “A” click externally. This pin has a pull-up resistor, which means that by default it is at voltage of 3V. To replace button A on the micro:bit with an external button, connect one end of the external button to pin 5 and the other end to GND. When the button is pressed, the voltage on pin 5 is pulled down to 0, which generates a button click event.
6 GPIO shared with LED Col 2 of the LED screen; can be used for digital I/O when the LED screen is turned off.
7 GPIO shared with LED Col 4 of the LED screen; can be used for digital I/O when the LED screen is turned off.
8, 9 Dedicated GPIO, for sending and sensing digital signals; can also be configured for NFC.
10 GPIO shared with LED Col 5 of the LED screen; can be used for ADC and digital I/O when the LED screen is turned off.
11 GPIO shared with Button B. This lets you trigger or detect a button “B” click externally.
12 This GPIO pin has been reserved to provide support for accessibility.
13 GPIO that is conventionally used for the serial clock (SCK) signal of the 3-wire Serial Peripheral Interface (SPI) bus.
14 GPIO that is conventionally used for the Master In Slave Out (MISO) signal of the SPI bus.
15 GPIO that is conventionally used for the Master Out Slave In (MOSI) signal of the SPI bus.
16 Dedicated GPIO (conventionally also used for SPI ‘Chip Select’ function).
17, 18 These pins are wired to the 3V supply, like the large ‘3V’ pad.
19, 20 Implement the clock signal (SCL) and data line (SDA) of the I2C bus communication protocol. With I2C, several devices can be connected on the same bus and send/read messages to and from the CPU. Internally, the accelerometer and the compass are connected to i2c.
21, 22 These pins are wired to the GND pin and serve no other function.

https://makecode.microbit.org/device/pins