[c] op

Viewer

  1.        
  2.         // Curve 44
  3.         for(j=0;j<NUM_ADC_CHANNELS-1;j++)
  4.           NTC_Temperature[j]=12500000*pow(AverageSensorsADC[j],-1.4059);
  5. }      
  6.  
  7. void statechart_displayInfo( Statechart* handle)
  8. {      
  9.         #ifndef DISABLE_DISPLAY
  10.         static char string_display[30];
  11.        
  12.         // Display I2C sensor redings
  13.         ssd1306_SetCursor(0, 0);
  14.         sprintf(string_display,"T0=%.1f lux    ",AverageSensorI2C);
  15.         //sprintf(string_display,"T0=%d.%dC",(int)AverageSensorI2C,(int)((AverageSensorI2C-(int)AverageSensorI2C)*10+0.5));
  16.         ssd1306_WriteString(string_display,Font_11x18, White);
  17.                
  18.         // Display analog sensors readings
  19.         ssd1306_SetCursor(0, 22); // ssd1306_SetCursor(0, 14);
  20.         sprintf(string_display,"T1=%.1f lux    ",NTC_Temperature[0]);
  21.         ssd1306_WriteString(string_display,Font_11x18, White);
  22.   ssd1306_SetCursor(0, 44); // ssd1306_SetCursor(0, 14);
  23.   sprintf(string_display,"T2=%.1f lux    ",NTC_Temperature[1]);
  24.   ssd1306_WriteString(string_display,Font_11x18, White);

Editor

You can edit this paste and save as new:


File Description
  • op
  • Paste Code
  • 19 Apr-2024
  • 937 Bytes
You can Share it: