Ken Van Hoeylandt d0ca3b16f8
GPS refactored (#262)
- Refactored GPS service and HAL: GPS is no longer part of the HAL configuration. You can now add configure new GPS devices from the GPS settings app.
- T-Deck adds a boot hook to check if a GPS configuration exists and adds it when the config is empty.
- Implemented the concept of ObjectFile to read/write arrays of a raw data type (e.g. struct) to disk.
- Implemented more file utils (e.g. to create all directories of a path)
2025-03-30 01:14:22 +01:00

24 lines
667 B
Markdown

# 4 Pin connectors
Many devices have 4-pin connectors:
Either a [Grove](https://docs.m5stack.com/en/start/interface/grove) connector or a [JST](https://en.wikipedia.org/wiki/JST_connector) one.
Boards that implement an I2C/UART configuration for such a connector are advised to always implement both.
To make it consistent, it's important that the pins are mapped in the same manner:
## I2C Pins
Follow the Grove layout:
Black(GND) - Red(5V) - Yellow(SDA) - White(SCL)
## I2C Pins
Follow this Grove layout on the MCU board:
Black(GND) - Red(5V) - Yellow(RX) - White(TX)
And this Grove layout on the peripheral:
Black(GND) - Red(5V) - Yellow(TX) - White(RX)