lib/unigraphic/SSD1322.cpp

changeset 28
424d792fea4f
parent 26
86f099bda525
child 40
069bbd5ee3e4
equal deleted inserted replaced
27:8f2be7aaec00 28:424d792fea4f
136 136
137 } 137 }
138 138
139 void SSD1322::hw_reset() 139 void SSD1322::hw_reset()
140 { 140 {
141 wait_ms(15); 141 ThisThread::sleep_for(15);
142 _DC = 1; 142 _DC = 1;
143 _CS = 1; 143 _CS = 1;
144 _RST = 0; // display reset 144 _RST = 0; // display reset
145 wait_ms(2); 145 ThisThread::sleep_for(2);
146 _RST = 1; // end reset 146 _RST = 1; // end reset
147 wait_ms(100); 147 ThisThread::sleep_for(100);
148 } 148 }
149 149
150 void SSD1322::bus_enable(bool enable) 150 void SSD1322::bus_enable(bool enable)
151 { 151 {
152 _CS = enable ? 0:1; 152 _CS = enable ? 0:1;

mercurial