Guess the year this website was made (199?)

Home Forums WAY Off-Topic Distortion Guess the year this website was made (199?)

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #67970
    linuxgnuru
    Participant
    Quote:
    This site is best viewed on a PC or MAC with a screen resolution of at least 1366×768.

    http://555-timer-circuits.uk/

    #77240
    Orn
    Participant
    linuxgnuru wrote:
    Quote:
    This site is best viewed on a PC or MAC with a screen resolution of at least 1366×768.

    http://555-timer-circuits.uk/

    1484749547.png

    Fuck yeah!

    #77241
    __eMpTy__
    Participant
    linuxgnuru wrote:
    Quote:
    This site is best viewed on a PC or MAC with a screen resolution of at least 1366×768.

    http://555-timer-circuits.uk/

    2014?
    https://web.archive.org/web/*/http://555-timer-circuits.uk/

    #77242
    linuxgnuru
    Participant

    odd; it just screamed “i just learned how to use CGI”.

    good times

    https://web.archive.org/web/20101020050 … ecast.com/?

    #77243
    strider
    Participant

    Of all the weird things Venn comes up with for LGC, B-Reel is the only one I never understood. Is it a reference to Cypress Hill?

    #77248
    mfoxdogg
    Participant

    Then again, who dosn’t know how to use a 555 timer by now?

    #77249
    strider
    Participant

    Exactly. Now if you need a ne555 you just use a raspberry pi

    #77250
    linuxgnuru
    Participant

    in fact; I made this 6 sided die rolling gadget using this schematic

    View post on imgur.com

    #77251
    linuxgnuru
    Participant
    #77252
    Orn
    Participant
    linuxgnuru wrote:

    Looks like something that will definitely get me arrested

    #77253
    strider
    Participant

    How did you manage to do this without a RaspberryPi? Are you a wizard?

    #77254
    Orn
    Participant
    strider wrote:
    How did you manage to do this without a RaspberryPi? Are you a wizard?

    You have to remember, he was doing RaspberryPi’s from scratch before there was even a RaspberryPi, also he’s one of them old people

    #77256
    linuxgnuru
    Participant

    damn you guys; I went ahead and wrote this quick C program that turns a raspberry pi into a 6 sided die…

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <strings.h>
    #include <unistd.h>
    #include <errno.h>
    #include <signal.h>

    #include <time.h> // for srand

    #include <wiringPi.h>

    #define MAX_NUM 7
    #define MAX_DIG 6

    /*
    0 4
    1 3 5
    2 6
    */
    const int pins[7] = { 0, 1, 2, 3, 4, 5, 6 };

    const int pips[6][7] = {
    { 0, 0, 0, 1, 0, 0, 0 }, // 1
    { 1, 0, 0, 0, 0, 0, 1 }, // 2
    { 1, 0, 0, 1, 0, 0, 1 }, // 3
    { 1, 0, 1, 0, 1, 0, 1 }, // 4
    { 1, 0, 1, 1, 1, 0, 1 }, // 5
    { 1, 1, 1, 0, 1, 1, 1 } // 6
    };

    const int inputPin = 7;
    const int haltPin = 29;

    static void die(int sig);
    void roll_die();

    int main(int argc, char **argv)
    {
    int i;
    int dl = 0;

    srand((unsigned)time(NULL));
    // note: we’re assuming BSD-style reliable signals here
    (void)signal(SIGINT, die);
    (void)signal(SIGHUP, die);
    if (wiringPiSetup () == -1)
    {
    (void)fprintf(stderr, “oops %dn”, errno);
    return 1;
    }
    for (i = 0; i < MAX_NUM; i++)
    {
    pinMode(pins[i], OUTPUT);
    digitalWrite(pins[i], LOW);
    }
    pinMode(inputPin, INPUT);
    pullUpDnControl(inputPin, PUD_UP);
    pinMode(haltPin, INPUT);
    pullUpDnControl(haltPin, PUD_UP);
    /*
    for (i = 0; i < 6; i++)
    {
    printDie(i);
    delay(500);
    }
    */
    while (1)
    {
    if (digitalRead(haltPin) == LOW)
    {
    system(“shutdown -h now”);
    }
    if (digitalRead(inputPin) == LOW)
    {
    dl = 1;
    for (i = 0; i < 30; i++)
    {
    roll_die();
    delay(dl);
    dl += 5;
    }
    }
    }
    return 0;
    }

    static void die(int sig)
    {
    int i;
    for (i = 0; i < MAX_NUM; i++)
    digitalWrite(pins[i], LOW);
    if (sig != 0 && sig != 2)
    (void)fprintf(stderr, “caught signal %dn”, sig);
    if (sig == 2)
    (void)fprintf(stderr, “Exiting due to Ctrl + Cn”);
    exit(0);
    }

    void roll_die()
    {
    int i, r;

    r = rand() % MAX_DIG;
    for (i = 0; i < 7; i++)
    digitalWrite(pins[i], pips[r][i]);
    }

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.