Skip to content

19 use uart communication#20

Merged
FelizCoder merged 2 commits intomainfrom
19-use-uart-communication
Mar 11, 2025
Merged

19 use uart communication#20
FelizCoder merged 2 commits intomainfrom
19-use-uart-communication

Conversation

@FelizCoder
Copy link
Owner

closes #19

Improved the serial communication handling and error logging in the serial module:
- Added comments for clarity on the default UART configuration.
- Enhanced error handling in serial communication by catching ValueError and ensuring the program logs and gracefully handles invalid float values.
- Updated read_sensor_voltages() method to return None instead of raising an exception when encountering empty responses.
- Introduced UART definitions and initialization to support a baud rate of 250000 with customizable TX/RX pins.
- Added configurations for UART using `uart0` and assigned GPIO functions for pins 16 and 17.
- Added initialization call to `init_uart()` in the `main` function for setting up UART communication.

issue #19
@FelizCoder FelizCoder linked an issue Mar 11, 2025 that may be closed by this pull request
@FelizCoder FelizCoder merged commit 09dfbf1 into main Mar 11, 2025
2 checks passed
@FelizCoder FelizCoder deleted the 19-use-uart-communication branch March 11, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use UART communication

1 participant

Comments