Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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(){