This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
echoz89's profile picture

Touchscreen redstone control

Started by echoz89, 27 May 2013 - 09:14 AM
echoz89 #1
Posted 27 May 2013 - 11:14 AM
Help needed:

I'm needing help with coding as I am pretty new to it and don't really get it quite yet. I'm trying to set up a touch screen monitor with 3 buttons on it that when clicked will output a wireless redstone signal to a mob farm.
Basically:
Hit button "Pigman" -> signal to 2001
Hit button "Witch" -> signal to 2002
Hit button "Wither Skele" -> signal to 2003

this is upon a 4w x 3h advanced monitor, if it'd be possible to get the button to stay active until pressed again (basically like a lever) then that'd be perfect

I tried looking around for a few, but honestly the code destroys my brain so would be nice to get some help, maybe a few pointers on where to find some already made codes and maybe how to edit them to my liking. I've done a few simple things with turtles so far, melee turtle and also a computerized sign. But other than that quite new to LUA, I can write some html & php, but wouldn't class myself as a coder. Anyhelp would be great :)/>
Lyqyd #2
Posted 27 May 2013 - 02:35 PM
Split into new topic. A title was provided for you.
Xenthera #3
Posted 27 May 2013 - 03:13 PM
Sorry that took a while.

http://pastebin.com/7f8y6GCZ


pastebin get 7f8y6GCZ <name>

Use bundled cable from redpower. The output face is the back, white is pigman, orange is witch, and magenta is wither. Like so:



hmm what else… Oh yeah, go through the code and look for –comments.

(in the lua editor in game they'll be bright green)

They explain the parts you need to mess with to get it how you want it.

Final result (more or less)



Any problems pm me.
echoz89 #4
Posted 27 May 2013 - 05:25 PM
Thanks a bunch, that would be greatly appreciated. If possible would you be able to put a coloured background to state when on and off (I.e red button = off, green button = on)
Take you're time with it I'm not in a mega rush just want the final build of this server mob farm to be nice looking :)/>