Re: More Nextion 3.5" tweaks to do

Sam Tedesco
 

Hi Ted,

Joe is actually on the right path. If you look at his pspectrum page pic, he has opened up the vertical lines to extend across the 'black canvas' portion of the page. I looked around and added comments to the code from tmrDisplay so you can get an idea of what Ian is doing. tm0 is going to be a bit more difficult to get going for the graph portion.

sys2=0

if(nBeforeBase.val!=nFreq.val)

{

sys2+=1

}

if(nBeforePos.val!=hViewFreq.val)

{

sys2+=1

}

if(sys2>0)

{

nBeforeBase.val=nFreq.val

nBeforePos.val=hViewFreq.val

fill 0,0,247,52,10565

fill 0,25,247,2,16959 //horizontal line between top boxes

fill 120,10,2,15,16959 //small vertical line top box middle

cov nFreq.val,tmpS.txt,0

xstr 126,4,90,18,0,WHITE,10565,0,1,1,tmpS.txt //top right value

sys0=nFreq.val

sys0=2000*nADCCount.val/2 //2k step fixed

sys0=nFreq.val-sys0

nStartFreq.val=sys0

cov nStartFreq.val,tmpS.txt,0

xstr 2,4,90,18,0,WHITE,10565,0,1,1,tmpS.txt

//fill 0,160,247,20,31727

fill 0,164,247,14,10565 //background of bottom slider

fill 0,173,247,2,16959 //blue line on bottom slider

sys0=hViewFreq.val

sys0=sys0*1000

sys1=sys0+nStartFreq.val

nSelectFreq.val=sys1

cov nSelectFreq.val,tmpS.txt,0

//xstr 150,26,90,24,2,64520,GRAY,2,1,1,tmpS.txt

if(hViewFreq.val>120)

{

xstr hViewFreq.val-92,28,90,24,2,64520,10565,2,1,1,tmpS.txt

}else

{

xstr hViewFreq.val+2,28,90,24,2,64520,10565,0,1,1,tmpS.txt

}

fill hViewFreq.val,0,2,50,64520 //vertical line on top left

fill hViewFreq.val,164,2,14,64520 //small vert slider bottom box

}

Join BITX20@groups.io to automatically receive all group messages.