Pages: 1 [2]   Go Down
Author Topic: reset micros() timer  (Read 1796 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26287
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
long my_datum = 0L ;
//...

  my_datum = micros () ;
Hmmm.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Actually some of the more difficult concepts of arduino hardware and software are best explained during some of the great 'pissing contests' I've read here. For me I don't care about who is right and who is wrong, (even if it's me  smiley-wink ) as long as I've learned something useful when it's all done. The Arduino platform, being open sourced, has all the code avalible to study but that can be a daunting task to figure out for some of us software challenged types. It's cool to read explanations from people that have looked it over and can give concise explanations.

 As far as being hard on newcomers, I have been hard on some in the past when they touch my sensitive spot about HAVING to use series current limiting resistors with diodes. I don't start right off flaming, but if they offer any resistance to my fatherly advice I tend to lose patience.  smiley-grin

Lefty
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

...I don't start right off flaming, but if they offer any resistance to my fatherly advice I tend to lose patience.  smiley-grin

Sure, everyone needs two chances... and then KABOOM.

Have I used both of mine already? Just kidding, of course I have.

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Central Europe
Offline Offline
Edison Member
*
Karma: 7
Posts: 1220
Use the Source, Luke.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After a Kaboom, the chance counter is reset. That's easier to do than resetting the micros counter. so don't worry.

Korman
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's cool! Let's continue with the mission!

Cheers,
Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Pages: 1 [2]   Go Up
Jump to: