Skip to content

Instantly share code, notes, and snippets.

void loop()
{
if (digitalRead(CHARGE_PIN) == CHARGE_OFF)
{
charging();
}
while (Bluefruit.connected())
{
noInterrupts();
//readGyro();
for(float i = 0.0f; i <= 90.0f; i += 30.0f)
{
for(float j = 0.0f; j <= 90.0f; j += 30.0f)
{
Gdx.gl11.glPushMatrix();
Gdx.gl11.glTranslatef(winningPosX, 1.0f, winningPosZ);
Gdx.gl11.glRotatef(90.0f, i, 0.0f, j);
finish.draw();
Gdx.gl11.glPopMatrix();