The [GLOBAL] section has only one mandatory setting and several
optional settings with reasonable defaults.
- SIG (quoted string) set the signature
to match the firmware version on the Megasquirt. Each time the
dashboard powers up, it checks this signature against the connected
Megasquirt and displays an error if they don't match.
It does this because a change of signature means that the
Megasquirt is no longer "speaking the same language". The dashboard
will need to be reconfigured to match.
The signature can be found in the TunerStudio project's
- CANID (number between 1 and 14,
10) set the dashboard's CANid (as defined
in the Megasquirt 29bit CAN Protocol). If there is a conflict
with another device on your CAN bus, this option will let you give the
dashboard a different id. Of course the conflicting device will need
to be off the bus in order to write the new configuration.
- CLOCKDIV (number between 0 and 3,
1) set the SPI communications speed between
dashboard and screen. This sets the rate at which data can be sent
to the display. Faster is better (but doesn't make as much difference
as you might think). Here are the speeds:
The datasheet for the screen lists 10 MHz as its maximum SPI speed.
Running at 12 Mhz seems to work fine under normal conditions, but may
become unreliable on hot days (or whatever). The default of 6 MHz
performs nearly as well. Slower speeds may be needed if a cable is
used to connect dashboard to screen.
- DEGREES (either C or F,
F) set units for all standard Megasquirt
temperatures to either Fahrenheit or Celsius.
- INPUT (channel [mask] none) set Megasquirt channel to receive input
events from the dashboard. A single byte with bits set reflecting
the current state of all inputs will be written to this channel when
any of these events occur:
The optional mask value restricts which of the bits are
actually copied to the Megasquirt. Its default of 255 means all bits
- user-input bit 0 holds the current value of the
user button/switch when it has changed state. 1 means switch open.
- lights on/off bit 3 holds the current state of the lights
input. 1 means lights on.
- page change when the user has pressed and released the page
button the new page number will be reflected in bits 4-7. All bits
zero is the initial page.
- ORIENTATION (number between 0 and 255,
136) a "magic" number which is understood by the
display. If your display is upside-down with 136 use
72. Values 200 and 8 will give
mirror writing which might be useful for projecting the display
onto a reflector. Other values can give weird effects (look into
MADCTL in the ili9341 display driver datasheet for the