Skip to content

KodzghlyCZ/cyber_ttl_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyber TTL

This package provides very limited functionality for communication with CYBER TTL boards from n.e.t. . Since I don't have much time to do things the proper way, I'm open to any PRs to help me make the package contain all the features according to the documentation

Installation

You can install the package using pip:

pip install git+https://github.com/KodzghlyCZ/cyber_ttl_python.git

Usage

from cyber_ttl import open_serial_connection, close_serial_connection, calculate_concentration

# Main function
def main():
    try:
        open_serial_connection('/dev/ttyUSB0') #Modify this to fit your needs
        concentration = calculate_concentration()
        if concentration is not None:
            print(f"Gas Concentration: {concentration:.2f} ppm")
    finally:
        close_serial_connection()

if __name__ == "__main__":
    main()

Dependencies

  • pyserial

About

Python package to interface n.e.t. CYBER TTL board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages