Last active
July 22, 2017 07:19
-
-
Save TG9541/69fa106e88f8ca3a482a79e572c45463 to your computer and use it in GitHub Desktop.
STM8EF Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: Clrdisplay ( -- ) \ clear anything showing | |
32 E7S 32 E7S 32 E7S ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VARIABLE timer | |
variable bigtimer | |
: tSet TIM 1000 + timer ! ; | |
: tTest TIM timer @ - 0 < ; | |
: delayInner tSet begin ttest until ; | |
: delay 0 bigtimer ! begin delayInner 1 bigtimer +! 25000 bigtimer @ - 0 < until ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@richard proposed creating a place for sharing STM8EF snippets. Here is a bit for clearing the W1209 display. An alternative is structuring the output with
CR
.