Beispiel #1
0
void showStrtScrn(){    //Tested  
  OrbitOledClear();
  OrbitOledMoveTo(48,0);
  OrbitOledPutBmp(strtScrnW,strtScrnH,strtScrnBMP);
  // OrbitOledSetCursor(3,3);
  // OrbitOledPutString("START GAME");
  OrbitOledSetCursor(0,3);
  OrbitOledPutString(" PRESS TO START ");

  
  // for(int t=0,c='3';t<3;t++,c--){   //show timer
  //   OrbitOledSetCursor(14,3);
  //   OrbitOledPutChar(c);
  //   updateLED(4);
  //   delay(400);
  //   updateLED(0);
  //   delay(200);
  // }

  long lBtn1;
  lBtn1 = GPIOPinRead(BTN1Port, BTN1);
  while(lBtn1!=BTN1){
    updateLED(4);
    delay(100);
    updateLED(0);
    delay(100);
    lBtn1 = GPIOPinRead(BTN1Port, BTN1);
  } 
}
Beispiel #2
0
void drawCopter(Copter *copter) {
  int x = (int) copter->x;
  int y = (int) copter->y;

  OrbitOledMoveTo(x, y);
  OrbitOledPutBmp(CopterWidth, CopterHeight, CopterBmp);
  // OrbitOledDrawRect(16, 4);
}
Beispiel #3
0
void drawPusheen(){
  OrbitOledMoveTo(12,0);
  OrbitOledPutBmp(52,32,pusheen);
}