Back to Parent

Last Writes Pseudocode / Script Outline

[launcher.py]Display "Push the Red button to start."
    Runs subprocess for [last_writes.py]
    Push button -> Run program (if press_count = 1, run)
        Runs [last_writes.py]

    [last_writes.py]
        [clear terminal]
        Print "loading..." + "." 
        [clear terminal]
        Print "Waiting for device to connect. Please connect a device."
        User connects a device
        [clear terminal]
        Print "USB connection detected...Please wait..."
        Print "." 
        [clear terminal]
        Print "USB device loaded. Press the blue button to continue."
            (if press_count = 2)
            [clear terminal]
        "Reading data..." "."
        "Generating response..."
        [clear terminal]
        [Send request to GPT3, receive response, parse, and generate]
        Print to terminal Usb Device name date
        Print "obit_print"
        Print "Press the blue button to print."
        User presses button (button press event if press_count = 3)
        [clear terminal]
        Printing "Printing" 
        [send obituary to thermal printer]
        [clear terminal]
        [print to thermal printer "Please recycle your device..."]
        Print "Thank you for using your Last Writes machine."
        [end subprocess and restart]
        [clear terminal]

[launcher.py] Display "Push the blue button to start. Push the Red button at anytime to exit."
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0