Posted: 11:24pm 10 Jul 2014 |
Copy link to clipboard |
 Print this post |
|
OK, I probably should not be posting this - wine is nice.,,.....,....
But when I tried my latest code with an RF module on the uM - IT WORKS!
This was the first attempt.
Now, this shot does not show the code, but before, I was unable to sleep and wake the module. On a whim, I hooked it up to the MicroMite, and away it went - perhaps some kind of technical problem...
...but them, maybe it was also the wine(or beer) back then>????
Here is the code:
SetPin 1,oout:Pin(1)=1
SetPin 2,oout:Pin(2)=1
Print "Startup delay..."
Pause 5000
Print "Sending some test data to module..."
Open "COM1:2400" As #1
Pause 100
For x=1 To 10
Print #1,"The quick brown fox jumps over the lazy dog."
Next
Close #1
Pause 5000
Print "Sleeping module now..."
Pulse 1,15
Print "Module should now be asleep."
Pause 5000
Print "Waking up module..."
Pulse 2,1
Print "Module should now be awake."
Pause 5000
Print "I will send some data to it..."
Open "COM1:2400" As #1
Pause 100
For x=1 To 10
Print #1,"The quick brown fox jumps over the lazy dog."
Next
Close #1
Pulse 1,15
Print "Test ended."
End
The code is nothing special. Please don't hold the wine against me... Smoke makes things work. When the smoke gets out, it stops! |