コード例 #1
0
ファイル: main.c プロジェクト: Andy1978/Brautomat
static void uart_put_temp_maxres(int32_t tval)
{
    char s[10];

    uart_put_longint( tval );
    uart_puts_P(" °Ce-4, ");
    DS18X20_format_from_maxres( tval, s, 10 );
    uart_puts( s );
    uart_puts_P(" °C");
}
コード例 #2
0
void printStatus(void) {
  uint32_t currentTemp, currentTime;	
  uint16_t setpoint;
  char s[10];

  currentTime=TimerRead();
  currentTemp=getHighResTemperature();
  setpoint=getPIDSetpoint();
  uart_puts_P("#:");
  uart_put_longint(currentTime/1000);
  DS18X20_format_from_maxres(currentTemp, s, 10 );
  uart_puts_P(" T:");
  uart_puts( s );
  uart_puts_P(" S:");
  uart_put_float( setpoint );
  uart_puts_P(" D:");
  uart_put_longint( get_duty_cycle() );
  uart_puts_P( NEWLINESTR );
}