teensytoany


Nameteensytoany JSON
Version 0.11.1 PyPI version JSON
download
home_pagehttps://github.com/ramonaoptics/python-teensytoany
SummaryA pythonic way to access the teensytoany board
upload_time2025-07-18 15:35:02
maintainerNone
docs_urlNone
authorRamona Optics Inc.
requires_python>=3.9
licenseBSD license
keywords teensytoany
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python TeensyToAny


[![pypi](https://img.shields.io/pypi/v/teensytoany.svg)](https://pypi.python.org/pypi/teensytoany)
[![Travis](https://travis-ci.com/ramonaoptics/python-teensytoany.svg?branch=master)](https://travis-ci.com/ramonaoptics/python-teensytoany)
[![Docs](https://readthedocs.org/projects/python-teensytoany/badge/?version=latest)](https://python-teensytoany.readthedocs.io/en/latest/?badge=latest)

A pythonic way to access the teensytoany board

* See: https://github.com/ramonaoptics/teensy-to-any

To program the teensy to any devices you will need the following additional dependencies:

* `click`
* `appdirs`
* `requests`

You can install them with:

```bash
conda install click appdirs requests
# or
pip install click appdirs requests
```

Features
--------

* TODO

Credits
-------

This package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter)
and the
[hmaarrfk/cookiecutter-pypackage](https://github.com/hmaarrfk/cookiecutter-pypackage)
project template.



# History

## 0.11.1 (2025-07-18)

* Provide an ability to define the device name at initialization time.

## 0.11.0 (2025-06-14)

* Try to automatically connect to devices with Manufacturer TeensyToAny. This
  requires firmware version 0.13.0 and up.

## 0.10.2 (2025-06-02)

* Fix I2C scanning command line utility by absorping the errors when no device
  is detected on the bus. Tested with a Teensy 4.0 and Sparkfun ISM330DHCX
  QWIIC board.

## 0.10.1 (2025-05-27)

* Attempt to fix i2c command line utility by correctly initializing the I2C bus.

## 0.10.0 (2025-05-26)

* Provide an i2c scan capabilities through the python api as well as a command
  line utility: `teensytoany_i2c_scan`.

## 0.9.0 (2025-05-16)

* Provide capabilities to program devices with board specific firmwares. #38

## 0.8.0 (2025-04-10)

* Automatically increase the timeout when issuing pulse commands to enable
  longer pulse durations.

## 0.7.0 (2025-03-12)

* Add support for Wire1 I2C interface.

## 0.6.0 (2025-03-09)

* Provide a method to control LEDs through FastLED.

## 0.5.0 (2024-11-10)

* Provide control over the startup and demo commands.
* Ensure that potentially undefined variable is defined.

## 0.4.0 (2024-04-05)

* Provide functions to fetch local and remote firmware versions.
* Provide a static method to program the latest firmware version and a CLI to
  do so from the terminal.

## 0.3.0 (2024-04-02)

* Add a `timeout` property to the functions that deal with updating the firmware.

## 0.2.0 (2023-11-07)

* Add a `timeout` property to simplify modifying the command timeout.

## 0.1.0 (2023-09-29)

* Provide access the new `mcu` command that reveals the microcontroller used at
  the time of firmware programming.

* Provide an internal method that can be used by developers to update to the
  latest firmware.

## 0.0.34 (2023-08-26)

* Small fixup in how reading the Teensy's registers is done to ensure better
  forward compatibility.

## 0.0.33 (2023-08-26)

The following features require teensy-to-any version 0.0.23 or greater
* Add support for `gpio_digital_pulse`.
* Add support for `analog_pulse`.
* Add support for new `value` parameter for `gpio_pin_mode`.
* Add support to read the data returned from `spi_transfer_bulk`.

## 0.0.32 (2023-08-30)

* Address bugs in reading the values from Teensy's registers.

## 0.0.31 (2023-08-21)

* Add the ability to read and write to the teensy's registers.

## 0.0.30 (2023-04-03)

* Increase default timeout to 0.2 seconds from 0.1. This helps receive error
  messages from missed I2C communications.
* Return an error if no response is returned from a standard command indicating
  a timeout.

## 0.0.29 (2023-03-06)

* Try to avoid racy conditions in version reading
* Flush buffers upon startup to help with crash recovery.

## 0.0.28 (2023-03-04)

* Make the error message when no device is found more human friendly.

## 0.0.27 (2022-10-16)

* Use packaging instead of distutils for version identification

## 0.0.26 (2021-09-13)

* added function `spi_read_byte` enabling the user to read SPI register.

## 0.0.25 (2021-07-14)

* added function `analog_read` enabling the user to read analog signals.

## 0.0.24 (2021-06-03)

* added `i2c_read_payload and` `i2c_write_payload functions` which allows users to read and write a contiguous payload of bytes

## 0.0.23 (2021-02-13)

* Ensure compatibility with pyserial 3.X
* Power a ``start_poweroff`` parameter to ``TeensyPower`` to start the device
  in the on state.
* Added the ability to close and open the device without deleting the python
  object.

## 0.0.22 (2020-06-18)

* Added the ability to control a power switch that is connected to the
  nominally on port.

## 0.0.20 (2019-12-14)

* Added capabilities for SPI and Analog functions

## 0.0.16 (2019-11-30)

* `TeensyPower` destructor will not raise an error when the device had failed
   to open.

## 0.0.15 (2019-11-29)

* `TeensyPower` devices will automatically poweroff the output when
  closed.

## 0.0.14 (2019-11-29)

* Added the specialized `TeensyPower` driver.

## 0.0.13 (2019-11-20)

* Added a few more serial numbers to the `teensytoany.known_devices`

## 0.0.1 (2019-11-07)

* First release on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ramonaoptics/python-teensytoany",
    "name": "teensytoany",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "teensytoany",
    "author": "Ramona Optics Inc.",
    "author_email": "info@ramonaoptics.com",
    "download_url": "https://files.pythonhosted.org/packages/e6/d6/42d83738d3dd1246ee0ed4f8b03c69a77c698ac60a2e0afe99b59e69c0d9/teensytoany-0.11.1.tar.gz",
    "platform": null,
    "description": "# Python TeensyToAny\n\n\n[![pypi](https://img.shields.io/pypi/v/teensytoany.svg)](https://pypi.python.org/pypi/teensytoany)\n[![Travis](https://travis-ci.com/ramonaoptics/python-teensytoany.svg?branch=master)](https://travis-ci.com/ramonaoptics/python-teensytoany)\n[![Docs](https://readthedocs.org/projects/python-teensytoany/badge/?version=latest)](https://python-teensytoany.readthedocs.io/en/latest/?badge=latest)\n\nA pythonic way to access the teensytoany board\n\n* See: https://github.com/ramonaoptics/teensy-to-any\n\nTo program the teensy to any devices you will need the following additional dependencies:\n\n* `click`\n* `appdirs`\n* `requests`\n\nYou can install them with:\n\n```bash\nconda install click appdirs requests\n# or\npip install click appdirs requests\n```\n\nFeatures\n--------\n\n* TODO\n\nCredits\n-------\n\nThis package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter)\nand the\n[hmaarrfk/cookiecutter-pypackage](https://github.com/hmaarrfk/cookiecutter-pypackage)\nproject template.\n\n\n\n# History\n\n## 0.11.1 (2025-07-18)\n\n* Provide an ability to define the device name at initialization time.\n\n## 0.11.0 (2025-06-14)\n\n* Try to automatically connect to devices with Manufacturer TeensyToAny. This\n  requires firmware version 0.13.0 and up.\n\n## 0.10.2 (2025-06-02)\n\n* Fix I2C scanning command line utility by absorping the errors when no device\n  is detected on the bus. Tested with a Teensy 4.0 and Sparkfun ISM330DHCX\n  QWIIC board.\n\n## 0.10.1 (2025-05-27)\n\n* Attempt to fix i2c command line utility by correctly initializing the I2C bus.\n\n## 0.10.0 (2025-05-26)\n\n* Provide an i2c scan capabilities through the python api as well as a command\n  line utility: `teensytoany_i2c_scan`.\n\n## 0.9.0 (2025-05-16)\n\n* Provide capabilities to program devices with board specific firmwares. #38\n\n## 0.8.0 (2025-04-10)\n\n* Automatically increase the timeout when issuing pulse commands to enable\n  longer pulse durations.\n\n## 0.7.0 (2025-03-12)\n\n* Add support for Wire1 I2C interface.\n\n## 0.6.0 (2025-03-09)\n\n* Provide a method to control LEDs through FastLED.\n\n## 0.5.0 (2024-11-10)\n\n* Provide control over the startup and demo commands.\n* Ensure that potentially undefined variable is defined.\n\n## 0.4.0 (2024-04-05)\n\n* Provide functions to fetch local and remote firmware versions.\n* Provide a static method to program the latest firmware version and a CLI to\n  do so from the terminal.\n\n## 0.3.0 (2024-04-02)\n\n* Add a `timeout` property to the functions that deal with updating the firmware.\n\n## 0.2.0 (2023-11-07)\n\n* Add a `timeout` property to simplify modifying the command timeout.\n\n## 0.1.0 (2023-09-29)\n\n* Provide access the new `mcu` command that reveals the microcontroller used at\n  the time of firmware programming.\n\n* Provide an internal method that can be used by developers to update to the\n  latest firmware.\n\n## 0.0.34 (2023-08-26)\n\n* Small fixup in how reading the Teensy's registers is done to ensure better\n  forward compatibility.\n\n## 0.0.33 (2023-08-26)\n\nThe following features require teensy-to-any version 0.0.23 or greater\n* Add support for `gpio_digital_pulse`.\n* Add support for `analog_pulse`.\n* Add support for new `value` parameter for `gpio_pin_mode`.\n* Add support to read the data returned from `spi_transfer_bulk`.\n\n## 0.0.32 (2023-08-30)\n\n* Address bugs in reading the values from Teensy's registers.\n\n## 0.0.31 (2023-08-21)\n\n* Add the ability to read and write to the teensy's registers.\n\n## 0.0.30 (2023-04-03)\n\n* Increase default timeout to 0.2 seconds from 0.1. This helps receive error\n  messages from missed I2C communications.\n* Return an error if no response is returned from a standard command indicating\n  a timeout.\n\n## 0.0.29 (2023-03-06)\n\n* Try to avoid racy conditions in version reading\n* Flush buffers upon startup to help with crash recovery.\n\n## 0.0.28 (2023-03-04)\n\n* Make the error message when no device is found more human friendly.\n\n## 0.0.27 (2022-10-16)\n\n* Use packaging instead of distutils for version identification\n\n## 0.0.26 (2021-09-13)\n\n* added function `spi_read_byte` enabling the user to read SPI register.\n\n## 0.0.25 (2021-07-14)\n\n* added function `analog_read` enabling the user to read analog signals.\n\n## 0.0.24 (2021-06-03)\n\n* added `i2c_read_payload and` `i2c_write_payload functions` which allows users to read and write a contiguous payload of bytes\n\n## 0.0.23 (2021-02-13)\n\n* Ensure compatibility with pyserial 3.X\n* Power a ``start_poweroff`` parameter to ``TeensyPower`` to start the device\n  in the on state.\n* Added the ability to close and open the device without deleting the python\n  object.\n\n## 0.0.22 (2020-06-18)\n\n* Added the ability to control a power switch that is connected to the\n  nominally on port.\n\n## 0.0.20 (2019-12-14)\n\n* Added capabilities for SPI and Analog functions\n\n## 0.0.16 (2019-11-30)\n\n* `TeensyPower` destructor will not raise an error when the device had failed\n   to open.\n\n## 0.0.15 (2019-11-29)\n\n* `TeensyPower` devices will automatically poweroff the output when\n  closed.\n\n## 0.0.14 (2019-11-29)\n\n* Added the specialized `TeensyPower` driver.\n\n## 0.0.13 (2019-11-20)\n\n* Added a few more serial numbers to the `teensytoany.known_devices`\n\n## 0.0.1 (2019-11-07)\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": "BSD license",
    "summary": "A pythonic way to access the teensytoany board",
    "version": "0.11.1",
    "project_urls": {
        "Homepage": "https://github.com/ramonaoptics/python-teensytoany"
    },
    "split_keywords": [
        "teensytoany"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4c7567bb3df6d1b33f9cfed9d0046a2089d7bb6191f391b03d054571bd16164e",
                "md5": "f2b31d825ec6fd4f32e525553a5d0966",
                "sha256": "2575b085265e3c53c71c0115bde6ecf09dfe20791e563f4338275e1d5f5e695c"
            },
            "downloads": -1,
            "filename": "teensytoany-0.11.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f2b31d825ec6fd4f32e525553a5d0966",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 18426,
            "upload_time": "2025-07-18T15:35:01",
            "upload_time_iso_8601": "2025-07-18T15:35:01.167806Z",
            "url": "https://files.pythonhosted.org/packages/4c/75/67bb3df6d1b33f9cfed9d0046a2089d7bb6191f391b03d054571bd16164e/teensytoany-0.11.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e6d642d83738d3dd1246ee0ed4f8b03c69a77c698ac60a2e0afe99b59e69c0d9",
                "md5": "f40d572414e325f71c5f4fd0f2e74ef9",
                "sha256": "eb579f10c0ab441079c87f4fc1ebe6716556035ca38ed42aba734797c9c89b37"
            },
            "downloads": -1,
            "filename": "teensytoany-0.11.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f40d572414e325f71c5f4fd0f2e74ef9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 23267,
            "upload_time": "2025-07-18T15:35:02",
            "upload_time_iso_8601": "2025-07-18T15:35:02.027720Z",
            "url": "https://files.pythonhosted.org/packages/e6/d6/42d83738d3dd1246ee0ed4f8b03c69a77c698ac60a2e0afe99b59e69c0d9/teensytoany-0.11.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-18 15:35:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ramonaoptics",
    "github_project": "python-teensytoany",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "teensytoany"
}
        
Elapsed time: 1.64575s