2018-02-06 11:55:43 +01:00
|
|
|
/* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
/** library to show BusVoodoo mode information on SSD1306 OLED display: name, activity, pinout (API)
|
|
|
|
* @file busvoodoo_oled.h
|
|
|
|
* @author King Kévin <kingkevin@cuvoodoo.info>
|
|
|
|
* @date 2018
|
2018-03-21 23:20:39 +01:00
|
|
|
* @note peripherals used: I2C @ref oled_ssd1306_i2c
|
2018-02-06 11:55:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** setup OLED display */
|
|
|
|
void busvoodoo_oled_setup(void);
|
|
|
|
/** clear display buffer
|
|
|
|
* @note update the display to clear it
|
|
|
|
*/
|
|
|
|
void busvoodoo_oled_clear(void);
|
|
|
|
/** draw mode text on top (yellow) left side in display buffer
|
|
|
|
* @warning this clears the top line, including the text on the right side
|
|
|
|
* @note update the display to display the text
|
2018-03-21 23:20:39 +01:00
|
|
|
* @param[in] text text to display on top left side of screen
|
2018-02-06 11:55:43 +01:00
|
|
|
*/
|
|
|
|
void busvoodoo_oled_text_left(char* text);
|
|
|
|
/** draw mode text on top (yellow) right side in display buffer
|
|
|
|
* @warning this does not clear the top line, including the text on the right side
|
|
|
|
* @note update the display to display the text
|
2018-03-21 23:20:39 +01:00
|
|
|
* @param[in] text text to display on top right side of screen
|
2018-02-06 11:55:43 +01:00
|
|
|
*/
|
|
|
|
void busvoodoo_oled_text_right(char* text);
|
|
|
|
/** draw pin names on bottom (blue) part in display buffer
|
|
|
|
* @param[in] pins pin names
|
2018-03-21 23:20:39 +01:00
|
|
|
* @param[in] io_connector display I/O connector (true) or RS/CAN connector + top half of I/O connector (false)
|
2018-02-06 11:55:43 +01:00
|
|
|
* @note update the display to display the text
|
|
|
|
*/
|
|
|
|
void busvoodoo_oled_text_pinout(const char* pins[10], bool io_connector);
|
|
|
|
/** update OLED display RAM with current display buffer */
|
|
|
|
void busvoodoo_oled_update(void);
|