Sets internal library read image buffer size for Flash or SD. The library use default buffer size of 86 bytes, but you can experiment this on your hardware.
Use this with caution! Can increase or decrease framerate!
Use this command to set back default library buffer size: Oled.BufferSize = DEFAULT_BUFFER_SIZE
This command sets the window area specify by starting point (X1,Y1) and the ending point (X2,Y2) to clear the window display. The graphic display data RAM content of the specified window area will be set to zero. This command can be combined with CopyWindow command to make as a "move" result.
The following example illustrates the copy plus clear procedure and results in moving the window object: Oled.CopyWindow(0, 0, 5, 5, 6, 6) Oled.ClearWindow(0, 0, 5, 5)
This command will dim the window area specify by starting point (X1,Y1) and the ending point (X2,Y2).
After the execution of this command, the selected window area will become darker. Additional execution of this command over the same window area will not change the data content.
Plays a videoclip animation based on sequential Bitmaps images, to use this you need to put images on Flash or SD.
The images name must be max 31 characters (use short names if possible), all sequential images must start as same name and finish with a sequential number.
NOTE: This command only show sequential frames from low to high index number, if you need more control on videoclip please use ImageClip Class, with this class you can set any order of frame, eg. you can play frame 1, frame 10, frame 20 or in any order you want, even play a videoclip from end to start.
FileName: bitmap file name without .bmp extension StartFrame: initial frame EndFrame: final frame X: the X position of image (upperleft corner) Y: the Y position of image (upperleft corner) Delay: delay between consecutive animation frames
X: the X position Y: the Y position Chr: the character to display Size: the size, can be one of font size costant FONT_1206, FONT_1608 Color: the color
Sets the delay (microseconds) that library add after every fill operation.
This command affects future FillRect and Cls commands and allow time to oled draw the filled area. By default the library uses default value. Use it with caution!
Initializes the display, sets CS and DC pins, use hardware HSPI for MOSI (GPIO13) and CLK (GPIO14), don't use RST pin.
IMPORTANT: Oled RST Pin must be connected to VCC.
Parameters:
CS Hardware SPI ChipSelect Can be (HCS-GPIO15) or any free Pin DC: Data-Command Can be any free Pin Freq: Hardware SPI Bus Clock Frequency, by default 1Mhz = 1 000 000 = One million Herts. You can increase up 80 000 000 (80Mhz) but short wires must be used for HSPI bus, then it is best to use Hardware CS Pin. Pay attention High frequency clocks do not works on breadboards, tested on NodeMCU up 60 000 000 (60Mhz) and works with short wires on breadboard, but probably is not real clock frequency because the Oled do not support it. Values up 80 000 000 will be truncated from ESP8266 Arduino Core.
Initializes the display, sets CS, DC and RST pins, use hardware HSPI for MOSI (GPIO13), CLK (GPIO14).
Parameters:
CS Hardware SPI ChipSelect Can be (HCS-GPIO15) or any free Pin DC: Data-Command Can be any free Pin RST: Reset Can be any free Pin Resets oled on start by going to GND an then back to VCC, you can connect to ESP8266 RST Pin and Reset both at same time) Freq: Hardware SPI Bus Clock Frequency, by default 1Mhz = 1 000 000 = One million Herts. You can increase up 80 000 000 (80Mhz) but short wires must be used for HSPI bus, then it is best to use hardware CS Pin. Pay attention High frequency clocks do not works on breadboards, tested on NodeMCU up 60 000 000 (60Mhz) and works with short wires on breadboard, but probably is not real clock frequency because the Oled do not support it. Values up 80 000 000 will be truncated from ESP8266 Arduino Core.
Initializes the display, sets CS, DC, MOSI, CLK and RST pins (pass 0 to RST will ignore RST pin).
NOTE: This method initializes Software SPI, you can decide any frre Pin, but can be slower than Hardware SPI.
IMPORTANT: If you pass 0 to RST, Oled RST Pin MUST be connected to VCC.
Parameters:
CS Hardware SPI ChipSelect Can be (HCS-GPIO15) or any free Pin DC: Data-Command Can be any free Pin MOSI: MasterOutSerialIn Can be any free Pin CLK: MasterClock Can be any free Pin RST: Reset Can be any free Pin Resets oled on start by going to GND an then back to VCC, you can connect to ESP8266 RST Pin and Reset both at same time)
HSPI Connections:
No Hardware SPI connections.
int (percentAsFloat) Asunsigned
Returns a percentage of screen height.
LineDelayAsUInt [write only]
Sets the delay (microseconds) that library add after every single line paint.
This command affects future drawLine, drawLineTo and drawTriangle commands and allow time to oled draw the lines. By default the library uses default value. Use it with caution!
FileName: bitmap file name without .bmp extension Mode: one of slide costant, can be SLIDE_HORIZONTAL or SLIDE_VERTICAL Step: step on witch the bitmap move it's position during a slide animation Delay: delay on witch the bitmap move it's position during a slide animation
Slide a page Left. (NOTE: this is an animation only and do not slise display content)
Step: step to witch the animation increases FillColor: display background color during the slide animation BorderColor: border color of the slide animation Delay: a delay between Step increased, big values slow down animation
Slide a page Right. (NOTE: this is an animation only and do not slise display content)
Step: step to witch the animation increases FillColor: display background color during the slide animation BorderColor: border color of the slide animation Delay: a delay between Step increased, big values slow down animation
SPI_FULL_SPEEDAsULong
SPI_QUARTER_SPEEDAsULong
SPI_SPI_HALF_SPEEDAsULong
StartScrollAsvoid
Start screen scroll.
StopScrollAsvoid
Stop screen scroll.
TextWrapAsBoolean [write only]
Sets the text wrapper property, if True on long string, oled display it on more than one line.
WidthAsByte [read only]
Gets the display Width, this can be 96 or 64 pixels based on display orientation.