https://github.com/spaceteam/waveform_tools
https://github.com/spaceteam/waveform_tools
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/spaceteam/waveform_tools
- Owner: SpaceTeam
- Created: 2022-09-20T03:17:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T15:44:41.000Z (over 3 years ago)
- Last Synced: 2025-01-24T16:28:19.031Z (over 1 year ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Waveform Tools
Logic Analyzers from Digilent (such as the Analog Discovery 2) can be used with the WaveForms software, which comes with a nice library. The scripts in this repository wrap it in an easy to use python API, which can then be used to automate test.
### Prerequisites
- Python 3
- WaveForms (https://digilent.com/shop/software/digilent-waveforms/download)
### How to use
Connect the logic analyzer to power and your PC. Then do something like this:
```python
logan = WF_Device()
logan.connect()
pin5 = WF_DIO(logan, 5, True) # connect to pin 5 of the logic analyzer and enable its output
pin5.set_high()
uart = WF_Uart(logan, baudrate=115200, tx_pin=0, rx_pin=1, bits_per_word=8, parity=2, stop_length=1)
uart.send(b'Hello')
```