mirror of
https://github.com/adafruit/Adafruit_SSD1306.git
synced 2026-07-28 04:15:57 +00:00
clanged it
This commit is contained in:
+43
-36
@@ -347,12 +347,12 @@ Adafruit_SSD1306::~Adafruit_SSD1306(void) {
|
||||
// SPI transaction/selection must be performed in calling function.
|
||||
/*!
|
||||
@brief Write a single byte to the SPI port.
|
||||
|
||||
|
||||
@param d
|
||||
Data byte to be written.
|
||||
|
||||
Data byte to be written.
|
||||
|
||||
@return void
|
||||
@note
|
||||
@note
|
||||
*/
|
||||
inline void Adafruit_SSD1306::SPIwrite(uint8_t d) {
|
||||
if (spi) {
|
||||
@@ -376,13 +376,16 @@ inline void Adafruit_SSD1306::SPIwrite(uint8_t d) {
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief Issue single command to SSD1306, using I2C or hard/soft SPI as needed. Because command calls are often grouped, SPI transaction and selection must be started/ended in calling function for efficiency. This is a protected function, not exposed (see ssd1306_command() instead).
|
||||
|
||||
@param c
|
||||
the command character to send to the display.
|
||||
Refer to ssd1306 data sheet for commands
|
||||
@brief Issue single command to SSD1306, using I2C or hard/soft SPI as
|
||||
needed. Because command calls are often grouped, SPI transaction and
|
||||
selection must be started/ended in calling function for efficiency. This is a
|
||||
protected function, not exposed (see ssd1306_command() instead).
|
||||
|
||||
@param c
|
||||
the command character to send to the display.
|
||||
Refer to ssd1306 data sheet for commands
|
||||
@return None (void).
|
||||
@note
|
||||
@note
|
||||
*/
|
||||
void Adafruit_SSD1306::ssd1306_command1(uint8_t c) {
|
||||
if (wire) { // I2C
|
||||
@@ -396,17 +399,17 @@ void Adafruit_SSD1306::ssd1306_command1(uint8_t c) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
@brief Issue list of commands to SSD1306, same rules as above re: transactions. This is a protected function, not exposed.
|
||||
@param c
|
||||
pointer to list of commands
|
||||
|
||||
@param n
|
||||
number of commands in the list
|
||||
|
||||
@brief Issue list of commands to SSD1306, same rules as above re:
|
||||
transactions. This is a protected function, not exposed.
|
||||
@param c
|
||||
pointer to list of commands
|
||||
|
||||
@param n
|
||||
number of commands in the list
|
||||
|
||||
@return None (void).
|
||||
@note
|
||||
@note
|
||||
*/
|
||||
void Adafruit_SSD1306::ssd1306_commandList(const uint8_t *c, uint8_t n) {
|
||||
if (wire) { // I2C
|
||||
@@ -720,15 +723,17 @@ void Adafruit_SSD1306::drawFastHLine(int16_t x, int16_t y, int16_t w,
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief Draw a horizontal line with a width and color. Used by public methods drawFastHLine,drawFastVLine
|
||||
@param x
|
||||
Leftmost column -- 0 at left to (screen width - 1) at right.
|
||||
@param y
|
||||
Row of display -- 0 at top to (screen height -1) at bottom.
|
||||
@param w
|
||||
Width of line, in pixels.
|
||||
@param color
|
||||
Line color, one of: SSD1306_BLACK, SSD1306_WHITE or SSD1306_INVERT.
|
||||
@brief Draw a horizontal line with a width and color. Used by public
|
||||
methods drawFastHLine,drawFastVLine
|
||||
@param x
|
||||
Leftmost column -- 0 at left to (screen width - 1) at right.
|
||||
@param y
|
||||
Row of display -- 0 at top to (screen height -1) at bottom.
|
||||
@param w
|
||||
Width of line, in pixels.
|
||||
@param color
|
||||
Line color, one of: SSD1306_BLACK, SSD1306_WHITE or
|
||||
SSD1306_INVERT.
|
||||
@return None (void).
|
||||
@note Changes buffer contents only, no immediate effect on display.
|
||||
Follow up with a call to display(), or with other graphics
|
||||
@@ -818,14 +823,16 @@ void Adafruit_SSD1306::drawFastVLine(int16_t x, int16_t y, int16_t h,
|
||||
}
|
||||
|
||||
/*!
|
||||
@brief Draw a vertical line with a width and color. Used by public method drawFastHLine,drawFastVLine
|
||||
@param x
|
||||
Leftmost column -- 0 at left to (screen width - 1) at right.
|
||||
@param __y
|
||||
Row of display -- 0 at top to (screen height -1) at bottom.
|
||||
@param __h height of the line in pixels
|
||||
@param color
|
||||
Line color, one of: SSD1306_BLACK, SSD1306_WHITE or SSD1306_INVERT.
|
||||
@brief Draw a vertical line with a width and color. Used by public method
|
||||
drawFastHLine,drawFastVLine
|
||||
@param x
|
||||
Leftmost column -- 0 at left to (screen width - 1) at right.
|
||||
@param __y
|
||||
Row of display -- 0 at top to (screen height -1) at bottom.
|
||||
@param __h height of the line in pixels
|
||||
@param color
|
||||
Line color, one of: SSD1306_BLACK, SSD1306_WHITE or
|
||||
SSD1306_INVERT.
|
||||
@return None (void).
|
||||
@note Changes buffer contents only, no immediate effect on display.
|
||||
Follow up with a call to display(), or with other graphics
|
||||
|
||||
Reference in New Issue
Block a user