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: Data_Clock_Pair Seeed_Chainable_LED Seeed_Four_Digit_Disp Seeed_IR_Temp_Sensor Seeed_Led_Bar
Fork of Seeed_Grove_4_Digit_Display_Clock by
Revision 5:d28207a2d2a6, committed 2017-04-11
- Comitter:
- tulanthoar
- Date:
- Tue Apr 11 09:14:06 2017 -0600
- Parent:
- 4:d540dccad60a
- Child:
- 6:14929f54ed6f
- Commit message:
- decrease by another factor of 10
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 11 08:47:25 2017 -0600
+++ b/main.cpp Tue Apr 11 09:14:06 2017 -0600
@@ -18,11 +18,11 @@
{
for (int i = 0; i < 16; i++)
{
- wait_us(100);
+ wait_us(10);
unsigned int state = (data & 0x8000) ? 1 : 0;
dat = state;
- wait_us(100);
+ wait_us(10);
clk = !clk;
data <<= 1;
@@ -33,13 +33,13 @@
void latchData()
{
dat = 0;
- wait_ms(1);
+ wait_us(100);
for (int i = 0; i < 4; i++)
{
- wait_us(100);
+ wait_us(10);
dat = 1;
- wait_us(100);
+ wait_us(10);
dat = 0;
}
}
