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.
Revision 2:11714802a55d, committed 2022-07-17
- Comitter:
- marietjie
- Date:
- Sun Jul 17 18:14:09 2022 +0000
- Parent:
- 1:011f0bdaa7f5
- Commit message:
- rev1_
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Jul 17 18:07:55 2022 +0000
+++ b/main.cpp Sun Jul 17 18:14:09 2022 +0000
@@ -6,7 +6,7 @@
of MCU) to one ADC pin on STM32F4 MCU. Voltage is based on position of dispenser arm.
- voltage > 1.65V implies the arm is pressed down
- voltage < 1.65V implies the arm is released
-To prevent rapid switching, hysteresis is introduced with a counter function, if arm is pressed down for more than 5 seconds, the digital output will go high.
+To prevent rapid switching, hysteresis is introduced with a counter function, if arm is pressed down for more than x seconds, the digital output will go high.
Requirements:
1. Read ADC value and print over serial port