PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Display
liboledc
oledc_sleepWake.c
1
/*
2
* @file oledc_scrollStop.c
3
*
4
* @author Matthew Matz
5
*
6
* @version 0.9
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2016. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief 0.96-inch RGB OLED display bitmap driver, see oledc_h. for documentation.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
18
#include "oledc.h"
19
20
21
void
oledc_sleep()
22
{
23
while
(oledc_screenLock());
24
oledc_screenLockSet();
25
26
oledc_writeCommand(SSD1331_CMD_DISPLAYOFF, 0);
//--turn off oled panel
27
28
oledc_screenLockClr();
29
}
30
31
32
void
oledc_wake()
33
{
34
while
(oledc_screenLock());
35
oledc_screenLockSet();
36
37
oledc_writeCommand(SSD1331_CMD_DISPLAYON, 0);
//--turn on oled panel
38
39
oledc_screenLockClr();
40
}
41
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17