Beispiel #1
0
void GUI_DispSFloatMin(float f, char Fract) {
    char Len;
    Len = GUI_Long2Len((long)f);
    if (f>0)
        Len++;
    _DispFloatFix(f, (char)(Len+Fract+1), (char)Fract, 1);
}
Beispiel #2
0
void GUI_DispFloat(float f, char Len) {
    int Decs;
    Decs =  Len - GUI_Long2Len((long)f)-1;
    if (Decs<0)
        Decs =0;
    _DispFloatFix(f, Len, (char)Decs, 0);
}
Beispiel #3
0
/*********************************************************************
*
*       GUI_DispDecSpace
*/
void GUI_DispDecSpace(I32 v, U8 MaxDigits) {
	char ac[12];
	char* s = ac;
  U8 Len;
  if (v < 0) {
    v = GUI_AddSign(v, &s);
    MaxDigits--;
  }
  Len = GUI_Long2Len(v);
  while (Len++ < MaxDigits) {
    *s++ = ' ';
  }
  GUI_AddDecMin(v, &s);
  GUI_DispString(ac);
}
Beispiel #4
0
/*********************************************************************
*
*       GUI_AddDecMin
*/
void GUI_AddDecMin(I32 v, char**ps) {
  U8 Len = GUI_Long2Len(v);
  GUI_AddDecShift(v, Len, 0, ps);
}