| 
                     
                    
Setup ADC so ADC1 and ADC2 active with a calibration of 0.1953 and avg of 16 samples 
Add background image to library 
 
Create page style using background image 
Create draw style for background box 
Create draw style for slide box 
Create text style for variable 
Create variable for ADC1 value 
Create variable for ADC2 value 
 
Define a page named "pageName" with style "pageStyle" 
 
Create a box for ADC1 background 
Create a box for ADC1 slider 
Create a text entity for ADC1 value 
Create a box for ADC2 background 
Create a box for ADC2 slider 
Create a text entity for ADC2 value 
Create page loop that runs forever 
load the internal ADC2 variable into adc2val variable 
load the variable to text entity 
draw the slide box to be the adcvalue wide 
load the internal ADC1 variable into adc1val variable 
load the variable to text entity 
draw the slide box to be the adcvalue high 
refresh the page 
 
After loading show the page named "pageName"                    
                    
                     
                 | 
                
                     
SETUP(ADC) {active=12;calib1=.1953;calib2=.1953;avg1=16;avg2=16;}
 LIB(background,"SDHC/bground.png");
 
 STYLE(pageStyle, Page) {image=background;}
 STYLE(barstyle, Draw) {type=Box;back=White;curRel=BL;}
 STYLE(boxstyle, Draw) {type=Box;col=Black;width=1;back=red;curRel=BL;}
 STYLE(textStyle, Text) {font=Ascii16;col=Black;}
 VAR(adc1val,0,U16);
 VAR(adc2val,0,U16);
 
 PAGE(pageName, pageStyle)
 {
 DRAW(Bord1,14,204,boxstyle,84, 254);
 DRAW(bar1,10,200,barstyle,86, 252);
 TEXT(Val1,adc1val,textStyle,120, 152);
 DRAW(Bord2,204,14,boxstyle,240, 138);
 DRAW(bar2,200,10,barstyle,242, 136);
 TEXT(Val2,adc2val,textStyle,342, 150);
 LOOP(myloop,FOREVER)
 {
 LOAD(adc2val, ADC2);
 TEXT(Val2,adc2val);
 DRAW(bar2,adc2val,10);
 LOAD(adc1val,ADC1);
 TEXT(Val1,adc1val);
 DRAW(bar1,10,adc1val);;
 }
 }
 SHOW(pageName);
 
                 |