Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPIO functions (I2C, trigger, and sleep) to SplashKit #187

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

XQuestCode
Copy link
Contributor

Pull Request Description

Title: Add GPIO functions (I2C, trigger, and sleep) to SplashKit

Description:
This PR introduces new GPIO-related functionalities to SplashKit, including I2C communication, GPIO pin triggering, and sleep functions. These additions allow users to interact with hardware at a low level, specifically designed for Raspberry Pi GPIO operations. The added functions include:

  • I2C communication (open, close, read, write).
  • GPIO pin triggering.
  • Sleep functionality to delay GPIO operations.

These changes will enhance the capability of SplashKit for hardware-level control, especially in embedded systems and Raspberry Pi applications.

Type of change:

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?:
The new GPIO functions were tested by running:

cmake .
make

in the /splashkit-core/projects/cmake directory, followed by performing unit tests to ensure proper functionality.

Testing Checklist:

  • Tested with skunit_tests
  • Validated that the functions work on Raspberry Pi for GPIO control and I2C communication.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.
  • I have ensured that the new functionality integrates well with existing SplashKit features.

This PR adds important GPIO features to SplashKit, providing users with enhanced capabilities for controlling Raspberry Pi hardware. Please review the changes and provide feedback. Thank you!

@macite macite merged commit 524c01a into splashkit:develop Oct 19, 2024
3 checks passed
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.

2 participants