FlashGauge layout studio

no layout loaded   rev —
720 × 720 round display
Add a background to see it here
0 KB
of 4,096 KB flash · nothing to install yet

Start from a layout

Open a .fglayout to change a layout you already have, or start a blank one and build it here.

Units

Speed, distance and temperature labels and needle ranges all use these.

Background

Choose a photo, then drag it on the dial to move it and scroll or use the slider to zoom. Only what falls inside the circle shows on the dash.

Elements

Everything the dash draws. Add widgets here, then click one on the dial or in this list to select it — drag to place, arrow keys nudge (Shift = 10), Delete removes.

Fonts

Two fonts are built in (montserrat_42 and montserrat_48). To use another, add a TrueType or OpenType file and the sizes you want, then pick one in a label's Font field. Each size only carries the characters its labels show, so it stays small.

Send it to the dash

Everything the layout needs goes into one file. Move it to your phone and choose it in the app's Update tab.

What's in it
Nothing added yet.

Vehicle settings

Per-bike numbers that live on the harness adapter, not in the layout: they stay with the bike when the layout changes. Export vehicle.json, then import it in the app's Vehicle tab and save it to the dash.

Quick guide

Overview

The layout studio builds everything your FlashGauge shows and saves it as one .fglayout file. It runs in your browser; nothing is uploaded anywhere.

  1. Build the layout on the Build tab.
  2. Simulate it on the Simulate tab to check that it behaves the way you expect.
  3. Export one .fglayout file.
  4. Install it from the FlashGauge app's Update tab.

The dial on the left is a true-size preview of the 720 × 720 round screen. Anything outside the circle never shows on the dash. The gauge under the dial shows how much of the dash's 4 MB layout space you're using and roughly how long the install will take.

The best strategy: paint it into the background

Anything that never changes belongs in the background photo, not in a separate element. Make elements only for things that move, light up or show a changing number.

Put it on the backgroundMake it an element
Dial face, tick marks, scale numbers, redlineNeedles
Words that never change ("RPM ×1000", "MPH", your logo)Numbers that change (speed, gear, odometer, trip, clock, temperatures)
Rings, bezels, panels, frames behind readoutsWarning lamps that turn on and off
The dim "off" look of each warning lampBars (fuel, temperature)

Two tricks that save the most:

To line things up, design the background in your image editor on a 720 × 720 canvas with a circle drawn as a guide. The studio measures element positions from the centre, so a spot at (500, 300) in your editor is X = 140, Y = −60 in the studio.

Build tab

Work down the page from top to bottom; each section feeds the next.

  1. Start from a layout. Choose Open a .fglayout to change a layout you already have, or Start a blank layout. Give it a name; the name becomes the export's file name. Pick your units for speed and distance, temperature, and the clock. Every speed, distance and temperature reading in the layout follows these.
  2. Background. Choose a photo. It goes into the layout straight away. Drag on the dial to move it and scroll (or use the Zoom slider) to size it. It always covers the whole screen, so you can't leave a black edge. Remove takes it out again.
  3. Elements. Add what needs to move or change: Needle, Label, Image, Bar or Shape. Click an element on the dial or in the list to select it. Drag it to place it, nudge it with the arrow keys (Shift moves 10), and press Delete to remove it.
  4. Selected element. Set how the element looks and, under Reacts to, which signal drives it:
    • Needle: Choose image for your own needle (a narrow PNG with a transparent background). Set Pivot in image to the pixel it turns around, then set the start and end values and angles. Drag the Test sweep slider to watch the tip trace your dial and check the pivot.
    • Label: type the text, pick a font and colour, then choose shows a number and a signal for live readouts. Suffix "auto" adds the unit (mph, °F and so on). Hide when off hides the label while a flag is off, such as a temperature with no sender fitted.
    • Image: Choose image for a lamp or icon, then set Behaviour to shows / hides and pick the lamp's signal.
    • Bar: pick a signal and the values for empty and full.
    • Rarely needed fine-tuning (smoothing, deadband, paint order) is under More settings.
  5. Fonts (optional). Two fonts are built in: montserrat_42 and montserrat_48. For another, choose a .ttf or .otf file and add the pixel sizes you want, then pick one in a label's Font field. Each size only carries the characters its labels can show, so keep to a few sizes.
  6. Send it to the dash. Press Export layout. If anything would stop the layout working on the dash, the export is held back and the problem is listed. Each export raises the revision number by one. What's in it lists every file and its size.

Simulate tab

Simulate plays your layout the way the dash will, before you install it. It uses the same update rate, needle smoothing, startup sweep and label formatting as the dash, in your layout's units. Nothing you do here is saved or exported, and the dial can't be edited until you go back to Build.

Scripted runs (the buttons at the top):

Manual controls (below the buttons):

Touching any control stops a scripted run so you can take over. Controls shown faded aren't used by your layout, so you can see at a glance which signals your layout reacts to.

What to check: needles reach the right marks at your redline and top speed, lamps sit over their painted "off" icons, and numbers fit their space at their widest (for example 188.8 or 12:59 PM).

Installing, and vehicle settings

Move the exported .fglayout file to your phone, open the FlashGauge app, and choose the file in the Update tab. The dash holds one layout at a time, so installing a layout replaces the old one. Your odometer and vehicle settings are kept. If an install is interrupted, the dash shows its built-in layout until you install again.

To change a layout later, open the same .fglayout in the studio, make your changes and export again. The new file has the next revision number.

Vehicle settings (the last section on the Build tab) are the per-bike numbers that make the readings correct. They're stored with the bike's wiring adapter, not the layout, so they survive layout changes.

What you can change depends on your adapter. With the universal adapter you set everything below. A bike-specific adapter already knows its bike: you can change what varies from bike to bike, such as tire size, but fixed values such as tach pulses (set by the number of cylinders) stay locked.

Choose Start from defaults (or open an existing vehicle.json), fill it in and press Export vehicle.json. In the app, go to the Vehicle tab, choose Import file, then Save to dash.

Limits and tips

LimitValue
Layout space on the dash4 MB
Elements in a layout32
Elements that react to a signal24
Custom font files (one per size)8
Font sizes8 to 160 px
Image sizeup to 720 × 720 (bigger images are scaled down)