A mbed RTOS based multimeter application that sends results to a phone over the Bluetooth module.
Dependencies: LCD_DISCO_F429ZI mbed mbed-rtos BSP_DISCO_F429ZI
Revision 18:545a94c4a5b2, committed 2021-01-24
- Comitter:
- hunter64288
- Date:
- Sun Jan 24 01:11:19 2021 +0000
- Parent:
- 17:09bea038e7c0
- Commit message:
- Published.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 09bea038e7c0 -r 545a94c4a5b2 main.cpp --- a/main.cpp Mon Jan 18 23:28:52 2021 +0000 +++ b/main.cpp Sun Jan 24 01:11:19 2021 +0000 @@ -44,7 +44,7 @@ //Thread-1 reads the ADC Data results *message = mpool.alloc(); //allocating fixed size memory message->voltage = ain.read()*3; //reference voltage = 3v - message->current = (ain.read()*3)/100; + message->current = (ain.read()*3)/100; // voltage/resistance (100 ohm) queue.put(message); //Adding data to the queue Thread::wait(2000); }