Skip to content

Commit

Permalink
Merge pull request #1 from vrtnis/main
Browse files Browse the repository at this point in the history
Update README with package details and example code
  • Loading branch information
mawildoer authored Oct 18, 2024
2 parents b473d20 + 5dbe660 commit d8281da
Showing 1 changed file with 75 additions and 2 deletions.
77 changes: 75 additions & 2 deletions README.md
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.

0 comments on commit d8281da

Please sign in to comment.