generated from atopile/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vrtnis/main
Update README with package details and example code
- Loading branch information
Showing
1 changed file
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,76 @@ | ||
# template | ||
## Overview | ||
|
||
Header configured for use with Saleae debug probes, includes interfaces for signals (io + gnd) as well as a few generic interfaces like I2C and spi. So you can monitor your spi bus as easily as saleae.spi ~ micro.spi ! | ||
|
||
![Saleae Debug Header](https://firebasestorage.googleapis.com/v0/b/atopile.appspot.com/o/saleae-debug-header.png?alt=media&token=84e11ffe-b67d-438b-ae7e-e35b59780a78 "Saleae Debug Header") | ||
|
||
## Usage Example | ||
|
||
``` | ||
import saleae-header from "saleae-header/saleae-header.ato" | ||
import Power from "generics/interfaces.ato" | ||
module SaleaeDebugHeader: | ||
# Power interface | ||
power = new Power | ||
# Header for debugging | ||
debug_header = new saleae-header | ||
debug_header.pins = 8 # Assuming an 8-pin header for simplicity | ||
# Manual Signal Definitions | ||
signal sclk | ||
signal miso | ||
signal mosi | ||
signal cs | ||
signal scl | ||
signal sda | ||
signal vcc | ||
signal gnd | ||
# Connections for SPI-like signals | ||
sclk ~ debug_header.pin1 | ||
miso ~ debug_header.pin2 | ||
mosi ~ debug_header.pin3 | ||
cs ~ debug_header.pin4 | ||
# Connections for I2C-like signals | ||
scl ~ debug_header.pin5 | ||
sda ~ debug_header.pin6 | ||
# Connections for Power and Ground | ||
vcc ~ debug_header.pin7 | ||
gnd ~ debug_header.pin8 | ||
``` | ||
|
||
## Features | ||
|
||
### Debug Interface: | ||
Configured for direct connection with Saleae logic analyzers. | ||
|
||
### Signal Access: | ||
|
||
Provides easy access to signals for monitoring and debugging. | ||
|
||
### SPI Interface: | ||
|
||
Includes connections for SPI bus monitoring. | ||
|
||
### I2C Interface: | ||
Includes connections for I2C bus monitoring. | ||
|
||
### Power Connections: | ||
Accommodates power (VCC) and ground (GND) for the probe. | ||
|
||
|
||
## Contributing | ||
Contribute to this package using pull requests. | ||
|
||
## License | ||
This battery connector module is provided under the MIT License. | ||
|
||
## Contact | ||
For further inquiries or support, please contact me at [email protected]. | ||
|
||
Project description goes here. |