Sign in to follow this  
Marten Palu

Computer programming for a Coffee shop - looking for smarter people than me :)

Recommended Posts


So I am building a coffee shop similar to this one:

I have the coffee making system done, so far only one type.

I am stuck with the computer part of it.

The goal seems to have three wires going from under 3 different buttons to a computer, which tells filters and deployers, which coffee will be made.

And the most confusing part: how can I make the screen comment on the progress?

If I find help from here, I will be very VERY happy! :)

Share this post

Link to post
Share on other sites

This question really has nothing to do with coffee, it seems, and everything to do with 2 of the computercraft APIs: terminal commands and bundled wire commands.

To set various wires in a bundled cable (let's assume the cable is connected to the BACK of the computer), you do:

>> rs.setBundledOutput("back", + colors.yellow +

^That will turn the red, yellow, and black wires in the bundle on, and everything else off.


^That will turn all wires off.

Then you simple run your insulated colored wires to whatever devices are necessary to route the coffee through to the desired machines that make it the correct type.

To display stuff on the screen, use terminal commands. They are all pretty self explanatory:

("cursor" is where the little blinking line is that determines where the next character will be printed)

To display stuff on a monitor, you use the exact same terminal commands, but you run them from the monitor itself (which is its own computer, with its own programs). Usually people do this by having the main computer tell the monitor to run a pre-programmed file that has a script for a sequence of display things, using (for a monitor attached on the left):

>>"monitor" "left" "[name of program saved on monitor that has the display script]")

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this