fix template format strings
This commit is contained in:
parent
f6932ee4ec
commit
eff436cb76
1 changed files with 7 additions and 7 deletions
|
@ -49,7 +49,7 @@ time:
|
||||||
then:
|
then:
|
||||||
- logger.log:
|
- logger.log:
|
||||||
level: INFO
|
level: INFO
|
||||||
format: "%2d %2d %2d %2d"
|
format: "%2d:%2d:%2d.%2d"
|
||||||
args:
|
args:
|
||||||
- 'uint32_t(id(runtime).state/3600) - uint32_t(id(runtime).state/86400)*1440'
|
- 'uint32_t(id(runtime).state/3600) - uint32_t(id(runtime).state/86400)*1440'
|
||||||
- 'uint32_t(id(runtime).state/60) - uint32_t(id(runtime).state/3600)*60'
|
- 'uint32_t(id(runtime).state/60) - uint32_t(id(runtime).state/3600)*60'
|
||||||
|
@ -70,7 +70,7 @@ display:
|
||||||
cs_pin: GPIO5
|
cs_pin: GPIO5
|
||||||
data_rate: 10MHz
|
data_rate: 10MHz
|
||||||
num_chips: 1
|
num_chips: 1
|
||||||
update_interval: 4ms
|
update_interval: 10ms
|
||||||
reverse: false
|
reverse: false
|
||||||
lambda: |-
|
lambda: |-
|
||||||
static uint32_t clock_frames=0;
|
static uint32_t clock_frames=0;
|
||||||
|
@ -83,14 +83,14 @@ display:
|
||||||
clock_frames++;
|
clock_frames++;
|
||||||
}
|
}
|
||||||
|
|
||||||
it.printf(0, ".*`,_+'-");
|
//it.printf(0, ".*`,_+'-");
|
||||||
//it.printf(0, "88888888");
|
//it.printf(0, "88888888");
|
||||||
//it.strftime(0, "%H%M%s", id(sntp_time).now());
|
it.strftime(0, "%H%M%S", id(sntp_time).now());
|
||||||
//it.printf(6, "%2d", clock_frames);
|
it.printf(6, "%02d", clock_frames%100);
|
||||||
|
|
||||||
//it.strftime(8, "%H%M%s", id(sntp_time).now());
|
//it.strftime(8, "%H%M%S", id(sntp_time).now());
|
||||||
//it.printf(14, "%2d", clock_frames);
|
//it.printf(14, "%2d", clock_frames);
|
||||||
/*it.strftime(8, "%H%M%s", id(sntp_time).now());*/
|
/*it.strftime(8, "%H%M%S", id(sntp_time).now());*/
|
||||||
/*it.printf(14, "%1d", 0)*/
|
/*it.printf(14, "%1d", 0)*/
|
||||||
|
|
||||||
/*it.printf(16, "%02d%02d%02d%02d",
|
/*it.printf(16, "%02d%02d%02d%02d",
|
||||||
|
|
Loading…
Reference in a new issue