Difference: CharlieWing (4 vs. 5)

Revision 52021-05-02 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="MecrispCubeF405"
%DASHBOARD{ section="banner"
Line: 22 to 22
 

Plex and I2C Words

Changed:
<
<
oled-emit works like the standard word emit. It blocks the calling thread, as long as the character is not written to the OLED display (less than 300 us for a 6x8 character and 400 kHz I2C). Horizontal (x) position is in pixel (0 to 127), vertical position (y) is in lines, a line consists of 8 pixels. Larger fonts takes more than one line.
>
>
plex-emit works like the standard word emit. It blocks the calling thread, as long as the character is not written to the Plex display (less than 300 us for a 6x8 character and 400 kHz I2C). Horizontal (x) position is in pixel (0 to 15).
 

Changed:
<
<
plex-emit ( Char -- ) Emits a character (writes a character to the OLED display) plex-emit? ( -- Flag ) OLED ready to get a character (I2C not busy)
>
>
plex-emit ( Char -- ) Emits a character (writes a character to the Plex display) plex-emit? ( -- Flag ) Plex ready to get a character (I2C not busy)
  hook-emit ( -- a-addr ) Hooks for redirecting terminal IO on the fly hook-emit? ( -- a-addr )
Line: 36 to 36
 plexpos@ ( -- x ) Get the current Plex cursor position plexclr ( -- ) Clears the Plex display, sets the cursor to 0 plexfont ( u -- ) Select the font, u: 0 6x8, 1 8x8
Added:
>
>
plexpwm ( n -- ) default PWM 1 .. 255 (brightness) plexshutdown ( n -- ) 1 activate Plex dispaly, 0 shutdown display
 
Added:
>
>
plexcolumn! ( col leds pwm -- ) plexcolumn@ ( col -- leds ) plexpixel! ( col row pwm -- ) plexpixel@ ( col row -- u )

plexframe! ( n -- ) plexframe@ ( -- n ) plexdisplay! ( n -- ) plexdisplay@ ( -- n )

 

I2Cdev ( u -- ) Sets the 7-bit I2C address

 
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