View Single Post
Old 05-07-2014, 02:00 AM   #14
robot
There are now 2 carseats!
 
Join Date: Nov 2012
Drives: 2013 DGM BRZ
Location: The Emerald City
Posts: 434
Thanks: 21
Thanked 166 Times in 75 Posts
Mentioned: 7 Post(s)
I'm thinking of making this more modular this time around. How about a config file where you name your sensors per page and set warning and colors and stuff in there?

Something like this...

Code:
#splashimage
splash:brz.bmp

#logging - log all sensors to SD card, interval in ms
logging:no
loginterval:2000

#colorscheme (will use color codes)
outline:white
fill:green
textdefault:red
alert:red

#pin config
#sensorName:pin
#legal sensor names:
#	oiltemp
#	oilpressure
#	boostpressure
#	temperature
#	accelx
#	accely
#	obdoiltemp
#	obdvolts
#	obdltf
#	obdstf
#	obdcoolant
#	obdafr
#	obdiat
#obd sensors don't have pins associated with them

#page (aka mode) config
#as many pages as you want...the sketch will flip through until EOF and start again
#each sensor is configured per page
#obd sensors don't have pin assignments after them
#page types:
#	twobar - two horizontal bar graphs with text
#	onebar - one horizontal bar graph with text
#	cross - cross chart for accelerometer
#	round - 1 round gauge for one sensor

page:1
pagetype:twobar
sensor1:obdoiltemp
sensor2:obdcoolant
sensor1text:Oil Temp
sensor2text:Water
sensor1max:300
sensor2max:100
sensor1alert:190
sensor2alert:0

page:2
pagetype:round
sensor1:oiltemp:9
sensor1text:Oil T
sensor1max:300
sensor1alert:190
robot is offline   Reply With Quote