Skip to content

Instantly share code, notes, and snippets.

@TG9541 TG9541/Clrdisplay.fs
Last active Jul 22, 2017

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.