+ Reply to Thread
Results 1 to 10 of 10

Thread: Wired Numerator Input Chip?

  1. #1
    ins
    ins is offline
    Wire Amateur ins's Avatar
    Join Date
    May 2007
    Posts
    60

    Default

    You know what really Grinds my gears?

    The fact that we don't have some code chip! I mean , Like , you do stuff , and instead of y+x+z = whatever y+x+z equals , it should be yxz ( Aka. A pin device )
    Basically something that the input is added on instead of added .
    The example is crap.

    Let's say I put it into Number Mode.
    If I make wired buttons to 1 - 9 , and press 14325
    I want to get 14325 instead of 15.
    I think this is a really good idea , but explaining it isn't.
    Say " CPU can do that " all you want ,
    Some people know shit all about CPU. So all you " OMG CPU IS AWESOME SHUT UP CPU IS EASY TO LEARN LOL " ( which it is not ) Don't read this.

    Thankyou for reading , I hope you take this into consideration. Possibly a keyboard input via Keyboard tool?
    But definately a 0 - 9 Mode. Definately.
    Thanks for reading and thanks to whoever gives this a shot.

  2. #2
    Wirererer cadde's Avatar
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    266

    Default

    Ok, CPU is hard if you have zero experience with programming or eaven basic "computer" logic...

    However, the e-gate is easier than the CPU.

    And this is how it would work for you...

    Code:
    N@Input gate
    I@B1 B2 B3 B4 B5 B6 B7 B8 B9 B0
    O@Value
    (~B1 & B1) -> I = 1, Pressed = 1;
    (~B2 & B2) -> I = 2, Pressed = 1;
    (~B3 & B3) -> I = 3, Pressed = 1;
    (~B4 & B4) -> I = 4, Pressed = 1;
    (~B5 & B5) -> I = 5, Pressed = 1;
    (~B6 & B6) -> I = 6, Pressed = 1;
    (~B7 & B7) -> I = 7, Pressed = 1;
    (~B8 & B8) -> I = 8, Pressed = 1;
    (~B9 & B9) -> I = 9, Pressed = 1;
    (~B0 & B0) -> I = 0, Pressed = 1;
    Pressed -> Digit += 1, Value = (Value + (10^Digit)) + I, Pressed = 0;

    Tell me if that works, otherwise i messed something up.
    But it works in theory!

  3. #3
    Wire Amateur sukasa's Avatar
    Join Date
    Nov 2007
    Posts
    54

    Default

    Ok, CPU is hard if you have zero experience with programming or eaven basic "computer" logic...

    However, the e-gate is easier than the CPU.

    And this is how it would work for you...

    Code:
    N@Input gate
    I@B1 B2 B3 B4 B5 B6 B7 B8 B9 B0
    O@Value
    (~B1 & B1) -> I = 1, Pressed = 1;
    (~B2 & B2) -> I = 2, Pressed = 1;
    (~B3 & B3) -> I = 3, Pressed = 1;
    (~B4 & B4) -> I = 4, Pressed = 1;
    (~B5 & B5) -> I = 5, Pressed = 1;
    (~B6 & B6) -> I = 6, Pressed = 1;
    (~B7 & B7) -> I = 7, Pressed = 1;
    (~B8 & B8) -> I = 8, Pressed = 1;
    (~B9 & B9) -> I = 9, Pressed = 1;
    (~B0 & B0) -> I = 0, Pressed = 1;
    Pressed -> Digit += 1, Value = (Value + (10^Digit)) + I, Pressed = 0;
    Tell me if that works, otherwise i messed something up.
    But it works in theory![/b]
    I will also go out and say that the code should work, however, I see no 'clear' button, I'll try my hand at adding one (Ironically, I won't even have wiremod until christmas, but eh)

    Code:
    N@Input gate
    I@B1 B2 B3 B4 B5 B6 B7 B8 B9 B0 Rst
    O@Value
    (~B1 & B1) -> I = 1, Pressed = 1;
    (~B2 & B2) -> I = 2, Pressed = 1;
    (~B3 & B3) -> I = 3, Pressed = 1;
    (~B4 & B4) -> I = 4, Pressed = 1;
    (~B5 & B5) -> I = 5, Pressed = 1;
    (~B6 & B6) -> I = 6, Pressed = 1;
    (~B7 & B7) -> I = 7, Pressed = 1;
    (~B8 & B8) -> I = 8, Pressed = 1;
    (~B9 & B9) -> I = 9, Pressed = 1;
    (~B0 & B0) -> I = 0, Pressed = 1;
    (~Rst & Rst) -> I = 0, Pressed = 0; Value = 0; Digit = 0;
    Pressed -> Digit += 1, Value = (Value + (10^Digit)) + I, Pressed = 0;

  4. #4
    Wire Amateur Hysteria100's Avatar
    Join Date
    Jul 2007
    Posts
    66

    Default

    I put up a suggestion a while back, for exactly this (as I understand from your explanation anyway) - a wired keypad that could output the number you type in. It didn't really go anywhere.

    [ame="http://www.wiremod.com/showthread.php?t=2936"]http://www.wiremod.com/showthread.php?t=2936[/ame]

  5. #5
    ins
    ins is offline
    Wire Amateur ins's Avatar
    Join Date
    May 2007
    Posts
    60

    Default

    Very nice guys with the exp and all , but I'd like to see an actual chip.
    Hysteria , I'm not asking for a keypad. I'm asking for a Chip ( exp I don't mind but generally a chip is easier )
    that can use inputs with the value 0 - 9. Not a keypad , there and then.
    I don't know how you can make it output the selected numbers , why don't you ask the guy who made it the wired keypad that.

  6. #6
    Wirererer cadde's Avatar
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    266

    Default

    Yeah, a gate (chip, whatever) would probably be a nice feature but seeing as how easy it is to make one yourself via the e-gate and the fact that wire is supposed to be about people making their own sollutions. The devs will just say...

    Save the expression and you have a numerical input gate!
    Works just like it would in LUA code and is just as fast bla bla bla.

    And i must say, i would agree to that statement



    How ugly can i get, agreeing with my own fantasy

  7. #7
    ins
    ins is offline
    Wire Amateur ins's Avatar
    Join Date
    May 2007
    Posts
    60

    Default

    I've just tried Suksa's version , and well , It's VERY buggy.
    I type in 1 , I get 11 , Then a random number ( 1125 is oocasional) It definately Doesn't work how it is s upposed to.
    I'll post the code I have of it here.
    Code:
     N@Absoloute Code Gate
    I@B1 B2 B3 B4 B5 B6 B7 B8 B9 B0 Rst
    O@Value
    (~B1 & B1) -> I = 1, Pressed = 1;
    (~B2 & B2) -> I = 2, Pressed = 1;
    (~B3 & B3) -> I = 3, Pressed = 1;
    (~B4 & B4) -> I = 4, Pressed = 1;
    (~B5 & B5) -> I = 5, Pressed = 1;
    (~B6 & B6) -> I = 6, Pressed = 1;
    (~B7 & B7) -> I = 7, Pressed = 1;
    (~B8 & B8) -> I = 8, Pressed = 1;
    (~B9 & B9) -> I = 9, Pressed = 1;
    (~B0 & B0) -> I = 0, Pressed = 1;
    (~Rst & Rst) -> I = 0, Pressed = 0 Value = 0**Digit = 0;
    Pressed -> Digit += 1, Value = (Value + (10^Digit)) + I, Pressed = 0;

  8. #8
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default

    I put up a suggestion a while back, for exactly this (as I understand from your explanation anyway) - a wired keypad that could output the number you type in. It didn't really go anywhere.

    http://www.wiremod.com/showthread.php?t=2936[/b]
    well if you minus 48 from the output of a keyboard then press number keys it will output the number. Warning may screw up if you press letters.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  9. #9
    ins
    ins is offline
    Wire Amateur ins's Avatar
    Join Date
    May 2007
    Posts
    60

    Default

    Could somebody fix the code and / or make a new one because this supposedly " working " oone doesn't work atall.
    Thanks!

  10. #10
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default

    Code:
    Reset -> Value=0;
    ~One & One -> Value=Value*10+1;
    ~Two & Two -> Value=Value*10+2;
    ~Three & Three -> Value=Value*10+3;
    ~Four & Four -> Value=Value*10+4;
    ~Five & Five -> Value=Value*10+5;
    ~Six & Six -> Value=Value*10+6;
    ~Seven & Seven -> Value=Value*10+7;
    ~Eight & Eight -> Value=Value*10+8;
    ~Nine & Nine -> Value=Value*10+9;
    ~Zero & Zero -> Value=Value*10+0;
    You'll need 11 buttons: 0-9 and a Reset Button, all non-toggle.

    This will work flawlessly, granted you wire it properly. The only problem, which is fairly easy to correct, is that if you enter in a number TOO high.. eventually it will output value as a number like 482397103e1

    I saw an example how to do this a while back, but I'm not sure where.

+ Reply to Thread

Similar Threads

  1. Expression Chip 2 and Cpu Chip aint working
    By bradmcco in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 01-19-2009, 07:53 AM
  2. Wired Sound Emitter Input options?
    By The UnSkilled78 in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 12-28-2008, 03:39 PM
  3. Wired XYZ Beacon, Eject Input for Socket
    By Doticatto in forum Wiremod Addons & Coding
    Replies: 25
    Last Post: 09-07-2008, 10:15 PM
  4. Replies: 16
    Last Post: 02-26-2008, 07:29 AM
  5. Tools : Expression Chip Script : Dual Input Series
    By XeononyX in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 2
    Last Post: 04-03-2007, 11:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots