Skip to content

Commit

Permalink
Timing: Only show field layout if currently timing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowgar committed Jan 11, 2016
1 parent 4c7c741 commit fc200af
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions SCRIPTS/TELEMETRY/LAPTIMER.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,25 +287,30 @@ local function timer_func(keyEvent)
end

lcd.clear()

if isTiming then
-- Column 1
lcd.drawFilledRectangle(0, 22, 70, 11, BLACK)
lcd.drawText(30, 24, 'Cur', INVERS)

-- Column 1
lcd.drawFilledRectangle(0, 22, 70, 11, BLACK)
lcd.drawText(30, 24, 'Cur', INVERS)

lcd.drawFilledRectangle(0, 53, 70, 11, BLACK)
lcd.drawText(30, 55, 'Avg', INVERS)
lcd.drawFilledRectangle(0, 53, 70, 11, BLACK)
lcd.drawText(30, 55, 'Avg', INVERS)

-- Column 2
-- Column 2

lcd.drawFilledRectangle(70, 22, 70, 11, BLACK)
lcd.drawText(90, 24, 'Split', INVERS)
lcd.drawFilledRectangle(70, 22, 70, 11, BLACK)
lcd.drawText(90, 24, 'Split', INVERS)

lcd.drawFilledRectangle(70, 53, 70, 11, BLACK)
lcd.drawText(100, 55, 'Lap', INVERS)
lcd.drawFilledRectangle(70, 53, 70, 11, BLACK)
lcd.drawText(100, 55, 'Lap', INVERS)

lcd.drawLine(70, 0, 70, 63, SOLID, FORCE)
lcd.drawLine(140, 0, 140, 63, SOLID, FORCE)
lcd.drawLine(70, 0, 70, 63, SOLID, FORCE)
lcd.drawLine(140, 0, 140, 63, SOLID, FORCE)

-- Outline
lcd.drawRectangle(0, 0, 212, 64, SOLID)
end

--
-- Check to see if we should do anything with the lap switch
--
Expand Down

0 comments on commit fc200af

Please sign in to comment.