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

added scan() function #14

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

mjtlx
Copy link
Contributor

@mjtlx mjtlx commented Dec 20, 2023

Added very simple scan() command available to userland REPL and user codebase.

from PiicoDev_Unified import scan
from machine import I2C
scan()

Returns:
[nn,nn,...] # list of addresses discovered on i2c bus

@CoreProduction
Copy link
Collaborator

It looks like the indentation for all the new scan() functions are broken in different ways.
I'll merge into a new feature-scan branch and tidy them up to get this PR underway.

@CoreProduction CoreProduction changed the base branch from main to feature-scan December 20, 2023 04:39
@CoreProduction CoreProduction merged commit c085245 into CoreElectronics:feature-scan Dec 20, 2023
CoreProduction added a commit that referenced this pull request Dec 20, 2023
* added scan() function (#14)

* fix indentation

---------

Co-authored-by: mjtlx <110594493+mjtlx@users.noreply.github.com>
@mjtlx mjtlx deleted the scan branch December 20, 2023 04:58
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.

None yet

2 participants