Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
%DASHBOARD{ section="banner" | ||||||||
Line: 24 to 24 | ||||||||
epd-emit works like the standard word emit . It blocks the calling thread, as long as the character is not written to the EPD display. Horizontal (x) position is in pixel (0 to 249), vertical position (y) is in lines, a line consists of 8 pixels. 0, 0 is upper left corner. Larger fonts takes more than one line.
| ||||||||
Changed: | ||||||||
< < | epd-emit ( Char -- ) Emits a character (writes a character to the EPD framebuffer) epd-emit? ( -- Flag ) EPD ready to get a character (SPI not busy) | |||||||
> > | epd-emit ( c -- ) Emits a character (writes a character to the EPD framebuffer) epd-emit? ( -- ? ) EPD ready to get a character (SPI not busy) | |||||||
Changed: | ||||||||
< < | hook-emit ( -- a-addr ) Hooks for redirecting terminal IO on the fly hook-emit? ( -- a-addr ) | |||||||
> > | hook-emit ( -- a ) Hooks for redirecting terminal IO on the fly hook-emit? ( -- a ) | |||||||
epdpos! ( x y -- ) Set EPD cursor position, x horizontal position, pixel resolution, e.g. 0 to 249 for 250x122 displays. | ||||||||
Line: 38 to 38 | ||||||||
epdfont ( u -- ) Select the font, u: 0 6x8, 1 8x8, 2 8X16 , 3 12X16 epdupdate ( -- ) Update the display (copy the framebuffer to the display) | ||||||||
Changed: | ||||||||
< < | epdpartial ( x1 y1 x2 y2 -- ) Partial update the display epdcmd ( c-addr -- ) Send command to the EPD controller SSD1680. First byte contains the length of the command. | |||||||
> > | epdstartpart ( -- ) Start the partial update for the EPD display epdupdatepart ( -- ) Update part of the EPD display epdcmd ( a -- ) Send command to the EPD controller SSD1680. First byte contains the length of the command. | |||||||
Changed: | ||||||||
< < | epdpixel! ( Flag x y -- ) not implemented yet epdpixel@ ( x y -- Flag ) not implemented yet | |||||||
> > | epdpixel! ( ? x y -- ) not implemented yet epdpixel@ ( x y -- ? ) not implemented yet | |||||||
epdcolumn! ( u -- ) Write a column (8 pixels) to the current position. Increment position. Bit 0 on top epdcolumn@ ( -- u ) Read a column (8 pixels) from the current position | ||||||||
Changed: | ||||||||
< < | >epd ( -- addr1 addr2 ) redirect to EPD *) >term ( addr1 addr2 -- ) terminate redirection *) | |||||||
> > | >epd ( -- a1 a2 ) redirect to EPD *) >term ( a1 a2 -- ) terminate redirection *) | |||||||
*) part of redirection.fs | ||||||||
Line: 64 to 65 | ||||||||
['] epd-emit hook-emit ! \ redirect terminal to epd-emit ." Hallo Velo! " cr ." ciao" | ||||||||
Deleted: | ||||||||
< < | epdupdate | |||||||
hook-emit ! \ restore old hook | ||||||||
Added: | ||||||||
> > | epdupdate | |||||||
; | ||||||||
Line: 75 to 76 | ||||||||
>epd \ redirect terminal to epd-emit ." Hallo Velo! " cr ." ciao" | ||||||||
Deleted: | ||||||||
< < | epdupdate | |||||||
>term \ terminate redirection | ||||||||
Added: | ||||||||
> > | epdupdate | |||||||
;
or on a command line
| ||||||||
Changed: | ||||||||
< < | >epd .( Hallo Velo!) epdupdate >term | |||||||
> > | >epd .( Hallo Velo!) >term epdupdate | |||||||
show date and time on EPD (see CmsisRtos#How_to_use_Tasks for a background task).
: clock ( -- ) | ||||||||
Changed: | ||||||||
< < | epdclr | |||||||
> > | epdclr epdupdate >epd .time >term 2000 osdelay drop | |||||||
3 epdfont -1 -1 -1 alarm! \ set an alarm every second begin wait-alarm \ wait a second 0 0 epdpos! | ||||||||
Changed: | ||||||||
< < | >epd epdpos@ .time epdpos@ epdpart >term | |||||||
> > | epdstartpart >epd .time >term epdupdatepart | |||||||
key? until key drop ; |