URS - LV11 - HMI - 2. zadatak
Dependencies: mbed
Revision 2:d7142743ba21, committed 2022-01-22
- Comitter:
- dfraj
- Date:
- Sat Jan 22 21:12:04 2022 +0000
- Parent:
- 1:a397ad7e537b
- Commit message:
- dodani kmentari za slanje podataka na nextion
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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(){