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
Fork of Optical3cmTXnucleo by
Diff: main.cpp
- Revision:
- 2:eb6621f41f07
- Parent:
- 1:a5e80a54e72f
- Child:
- 3:9c564c7cbabf
- Child:
- 4:024257aaea1e
diff -r a5e80a54e72f -r eb6621f41f07 main.cpp
--- a/main.cpp Sun Nov 08 00:26:32 2015 +0000
+++ b/main.cpp Sun Nov 08 00:58:35 2015 +0000
@@ -64,7 +64,7 @@
//Time off = PULSE_LENGTH*(data value)
// For example, a 01 transmitted would have a difference between pulses of 2 PULSE_LENGTH
tx = 0;
- wait_us(PULSE_LENGTH*data);
+ wait_us(PULSE_LENGTH*(data+1));
tx = 1;
}
