Originally Posted by
Dennis
Hi all
I'm not sure how to search this one up ...
1. I would like to have a Port Pin (for example PORTD.1) stay high for a around the same time as a button press (perhaps 500ms)
OR
2. have the same data sent 4 times in succession. (maybe a for/next or if then loop with a counter ?)
I'm not sure how to setup either or which one would be the better one to use.
Any thoughts or tips would be much appreciated
Kind regards
Dennis
Hi Dennis,
For next loop:
Code:
Counter_Var Var byte
MyData Var byte
For Counter_Var = 0 to 3
serout PortB.0,t9600,[#MyData]
next Counter_Var
or
PORTD.1 = 1
pause 500
PORTD.1 = 0 '1/2 second on loop then off for keeps
Last edited by Archangel; - 21st December 2009 at 05:39.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks