[c] op
Viewer
- // Curve 44
- for(j=0;j<NUM_ADC_CHANNELS-1;j++)
- NTC_Temperature[j]=12500000*pow(AverageSensorsADC[j],-1.4059);
- }
- void statechart_displayInfo( Statechart* handle)
- {
- #ifndef DISABLE_DISPLAY
- static char string_display[30];
- // Display I2C sensor redings
- ssd1306_SetCursor(0, 0);
- sprintf(string_display,"T0=%.1f lux ",AverageSensorI2C);
- //sprintf(string_display,"T0=%d.%dC",(int)AverageSensorI2C,(int)((AverageSensorI2C-(int)AverageSensorI2C)*10+0.5));
- ssd1306_WriteString(string_display,Font_11x18, White);
- // Display analog sensors readings
- ssd1306_SetCursor(0, 22); // ssd1306_SetCursor(0, 14);
- sprintf(string_display,"T1=%.1f lux ",NTC_Temperature[0]);
- ssd1306_WriteString(string_display,Font_11x18, White);
- ssd1306_SetCursor(0, 44); // ssd1306_SetCursor(0, 14);
- sprintf(string_display,"T2=%.1f lux ",NTC_Temperature[1]);
- ssd1306_WriteString(string_display,Font_11x18, White);
Editor
You can edit this paste and save as new: