Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play with trinkey #669

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from
Draft

Play with trinkey #669

wants to merge 47 commits into from

Commits on Jan 22, 2023

  1. Working copy pasted base code.

    paulz committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    15d5c85 View commit details
    Browse the repository at this point in the history
  2. Adding so far unused import

    paulz committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    b16e310 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ba13a1a View commit details
    Browse the repository at this point in the history
  4. Modify (inelegantly) the readme

    paulz committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    226ed1b View commit details
    Browse the repository at this point in the history
  5. Starting to build morse output...

    I am definitely struggling a bit with what's coming back from the
    USB calls, and I don't know yet how really to initialize the neopixel
    
    There's a bunch of commented out code that is in the direction of what
    I mean to do.
    imf committed Jan 22, 2023
    Configuration menu
    Copy the full SHA
    375ee59 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7adafe3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    466a02d View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2023

  1. add blinking led to usb example

    paulz committed Jan 23, 2023
    Configuration menu
    Copy the full SHA
    c7d6419 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. Configuration menu
    Copy the full SHA
    c293f33 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. Rename board interface.

    WIP: trying to have the morse code generation at least emit .__. to
    the serial port, but reinitializing the interface doesn't make
    sense. Need to refactor so that the global abstraction for the hardware
    we've configured is more globally accessible (or easier to pass around.)
    imf committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    6986c20 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2023

  1. Configuration menu
    Copy the full SHA
    3edb47e View commit details
    Browse the repository at this point in the history
  2. Start extracing env.

    paulz committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    5981dfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16119c4 View commit details
    Browse the repository at this point in the history
  4. Extract core.

    paulz committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    cb8c4c1 View commit details
    Browse the repository at this point in the history
  5. Use core.

    paulz committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    b3209a9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cdef9dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    82c1043 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ead7a9a View commit details
    Browse the repository at this point in the history
  9. Add a character queue.

    imf committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    a64cd92 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Configuration menu
    Copy the full SHA
    5c84491 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98bb044 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9dfe17 View commit details
    Browse the repository at this point in the history
  4. Remove commented code.

    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    4a7cf1a View commit details
    Browse the repository at this point in the history
  5. Speed up loop.

    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    bd63fc8 View commit details
    Browse the repository at this point in the history
  6. When the pin state queue is empty, return an low voltage request

    with a duration of 1.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    5d6de9e View commit details
    Browse the repository at this point in the history
  7. We drain the queue of pin states. We don't refill it yet, but

    we do handle an empty queue.
    
    Next, make the queue into a circular buffer, and push stuff into
    it.
    
    It would sure be nice to have some tests.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    bd78698 View commit details
    Browse the repository at this point in the history
  8. Adjust fake data.

    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    14add25 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    11ed143 View commit details
    Browse the repository at this point in the history
  10. Correct fake data to send S-M-S.

    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    8d30654 View commit details
    Browse the repository at this point in the history
  11. Fix off by one error in next state queue drain. (It would never

    drain the last state.)
    
    Board now blinks S-N-S, followed after an interval with a 10 unit
    long ON pulse.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    c42e772 View commit details
    Browse the repository at this point in the history
  12. Make the queue into a circular queue to push into... (But the pop

    doesn't honor this yet.)
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    21db3f9 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c699856 View commit details
    Browse the repository at this point in the history
  14. Make the read and writ heads on the pin control queue move

    independently.
    
    Note that the queue doesn't (currently) worry about overflow. It
    CAN and WILL overflow if it's filled faster than it drains.
    That said, all that results is some states not being rendered to
    the pins.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    3c6369c View commit details
    Browse the repository at this point in the history
  15. Working morse emitter.

    It still would benefit from a letter queue, but this works as long
    as you don't type too fast.
    
    Needs some cleanup though.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    6a0d04d View commit details
    Browse the repository at this point in the history
  16. Clean up some cruft. Conform to more rust standard naming.

    I left the stubs of the character queue in place, so I can finish
    that out, but this is way shorter now.
    
    I wish I had a way to generate the initial queue state, but iterators
    are part of std, which we don't have access to.
    imf committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    2a229ed View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Implenent a char queue.

    Next we should use it.
    imf committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    8913d3a View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    3c30b80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85332af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    958d4e1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6ea95d5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3509349 View commit details
    Browse the repository at this point in the history
  6. Increased char buffer size to 1K.

    Tried to make the USB loop provide queue length stats, but not having
    std in embedded rust meant I wasn't sure how to convert my usize into
    a string. (I made it a u32 at least.)
    imf committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    8e93323 View commit details
    Browse the repository at this point in the history
  7. Fix incorrect 'n' encoding.

    QA'd all letters and numbers but haven't verified punctuation.
    imf committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    10408db View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2023

  1. Extract morse queues and character generation into a module.

    The module isn't used yet.
    imf committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    dc0c558 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bad9fb8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    410cf03 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6ab56ba View commit details
    Browse the repository at this point in the history