Skip to content

Any interest in adding an example that lets a user exercise microcontroller I/O from the console? #590

Description

@potto216

I have a program I'm working on in a fork of libtock-rs https://github.com/potto216/libtock-rs/blob/c3872d49b1a86600f9c6ce4f323c8548bdaf83e7/examples/signal_generator_cli.rs that allows a user or Python script to manipulate an embedded device's I/O from the console. So, for example if a user wants to send the bytes 0x01, 0xaa, 0x03 over the SPI interface they would type over the console

spi tx aa

and the console would reply

OK spi tx tx_len=3 truncated=0 tx=0x01aa03

and over the spi port one sees:

Image

I'm currently testing the code for the other I/O. If there is interest let me know otherwise, I am going to create a separate repo for it and link it to libtock-rs, but I'm not sure how to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions