Difference: OledDisplay (11 vs. 12)

Revision 122021-01-06 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 48 to 48
 

Usage

It is easy to redirect the terminal output to the OLED display, to use the string formatting words.

Changed:
<
<
: oled-hallo (  -- )
  hook-emit dup ' oled-emit swap !  \ redirect terminal to oled-emit

>
>
: oled-hallo (  -- )
  hook-emit @              \ save emit hook
  ['] oled-emit hook-emit ! \ redirect terminal to oled-emit

  ." Hallo Velo! " cr ." ciao" hook-emit ! \ restore old hook
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback