URS - LV11 - HMI - 2. zadatak
Dependencies: mbed
Diff: main.cpp
- Revision:
- 2:d7142743ba21
- Parent:
- 1:a397ad7e537b
diff -r a397ad7e537b -r d7142743ba21 main.cpp --- a/main.cpp Sat Jan 22 21:09:42 2022 +0000 +++ b/main.cpp Sat Jan 22 21:12:04 2022 +0000 @@ -19,8 +19,8 @@ if (t.read() < 1.0 && flag) rpm = 30.0/T; // rpm = 60 * f = 60 * 1/T * 1/2 = 30/T else rpm = 0; - nextion.printf("t1.txt=\"%d rpm\"%c%c%c", rpm, 255, 255, 255); - nextion.printf("add 5,0,%d%c%c%c", rpm/100, 255, 255, 255); + nextion.printf("t1.txt=\"%d rpm\"%c%c%c", rpm, 255, 255, 255); //t1.txt="tekst" 0xFF 0xFF 0xFF + nextion.printf("add 5,0,%d%c%c%c", rpm/100, 255, 255, 255); //add <waveform>,<channel>,<value> 0xFF 0xFF 0xFF } int main(){