Skip to content

Instantly share code, notes, and snippets.

@TG9541
Last active July 22, 2017 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TG9541/69fa106e88f8ca3a482a79e572c45463 to your computer and use it in GitHub Desktop.
Save TG9541/69fa106e88f8ca3a482a79e572c45463 to your computer and use it in GitHub Desktop.
STM8EF Snippets
: Clrdisplay ( -- ) \ clear anything showing
32 E7S 32 E7S 32 E7S ;
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 ;
@TG9541
Copy link
Author

TG9541 commented Jul 22, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment