Example #1
0
File: main.cpp Project: Kreyl/nute
int main(void) {
    GeneralInit();

    /* Outer interface connector. Beware: #10 is actually #1 here
     * 1 gnd
     * 2 vcc    PB15
     * 3 xcs    PB14
     * 4 xres   PB13
     * 5 sda    PB12
     * 6 sclk   PB11
     * 7 k3     PB10
     * 8 k2     PB9
     * 9 k1     PB8
     */

    while (1) {
        Uart.Task();
        CC.Task();
        Led.Task();
        Signal.Task();
        Light.Task();
        Lcd.Task();
        Keys.Task();
        Interface.Task();
    } // while 1
}
Example #2
0
B_PlasmaBall::B_PlasmaBall(double x,double y,double rr,int launcherIDX)
{
	left_bounce_time=pDataLoader->GetGameData()->bounce_time;

	shapeType=S_Circle;
	LoadData(BT_PlasmaBall);

	GeneralInit(x,y,rr,launcherIDX);

}
Example #3
0
File: main.cpp Project: Kreyl/nute
// ============================== Implementation ===============================
int main(void) {
    GeneralInit();

    while (1) {
        CC.Task();
        Acc.Task();
        i2cMgr.Task();
        //Switchers.Task();
        //Beep.Task();
    } // while 1
}
Example #4
0
File: ring.c Project: Kreyl/nute
// =============================== General =====================================
int main(void) {
    GeneralInit();
    DDRA = 1<<PA0;   // DEBUG
    // ******** Main cycle *********
    while (1){
        wdt_reset();    // Reset watchdog
        CC_Task();
        LED_Task();
        Battery_Task();
    } // while 1
}
Example #5
0
File: olwen.c Project: Kreyl/nute
// ============================== General ======================================
int main(void) {
    GeneralInit();

    sei();
    while (1) {
        wdt_reset();    // Reset watchdog
        CC_Task();
        SENS_Task ();
        Light_Task ();
        //Sleep_Task ();
    } // while
}
Example #6
0
File: main.cpp Project: Kreyl/nute
// ============================ Implementation ================================
int main(void) {
    UART_Init();
    Delay.ms(100);
    klPrintf("Helm is up to sing\r");

    GeneralInit();
    uint32_t tmr;
    Delay.Reset(&tmr);
    // ==== Main cycle ====
    while(1) {
        ESnd.Task();
        Detector.Task();
        //if (Delay.Elapsed(&tmr, 2000)) EVENT_SomeoneDetected();
    } // while(1)
    return 0;
}
Example #7
0
File: main.cpp Project: Kreyl/nute
// ============================ Implementation ================================
int main(void) {
    GeneralInit();

    // ==== Main cycle ====
    while(1) {
        Keys.Task();
        ESnd.Task();
        Codecheck.Task();
        Door.Task();
        i2cMgr.Task();
        Leds.Task();
        Battery.Task();
        CmdUnit.Task();
        //Sensor.Task();
    } // while(1)
    return 0;
}
Example #8
0
File: main.cpp Project: Kreyl/nute
int main(void) {
    UART_Init();
    Delay.ms(100);
    UART_PrintString("Let's rock!\r");

    GeneralInit();

    // ==== Main cycle ====
    while(1) {
        i2cMgr.Task();
        ESnd.Task();
        ESns.Task();
        Leds.Task();
        ERock.Task();
        EIRSirc.Task();
        Lcd.Task();
    } // while(1)
    return 0;
}