Difference: OledDisplay (28 vs. 29)

Revision 292022-08-21 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 31 to 31
 hook-emit? ( -- a-addr )

oledpos! ( x y -- ) Set OLED cursor position,

Changed:
<
<
x horizontal position, for 6x8 font max. (128 / 6) -1, depends on the font's x size
>
>
x horizontal position, max. 127
  y vertical position (a line consists of 8 pixels), max. 3 for 128x32 or 7 for 128x64 displays. oledpos@ ( -- x y ) Get the current OLED cursor position oledcmd ( c-addr -- ) Send command to the OLED controller SSD1306. First byte contains the length of the command. oledclr ( -- ) Clears the OLED display, sets the cursor to 0, 0 oledfont ( u -- ) Select the font, u: 0 6x8, 1 8x8, 2 8X16 , 3 12X16
Added:
>
>
oledcolumn! ( u -- ) Write a column (8 pixels) to the current position. Increment position oledcolumn@ ( -- u ) Read a column (8 pixels) from the current position
  I2Cdev ( u -- ) Sets the 7-bit I2C address I2Cput ( c-addr u -- ) c-addr buffer address for the message with lengh u to send
 
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