4040/* *
4141 * Class implements interface functions to ILI9341 displays
4242 */
43- template <class I > class InterfaceILI9341 : public I
43+ template <typename I> class InterfaceILI9341 : public I
4444{
4545public:
4646 /* *
@@ -129,7 +129,7 @@ template <class I> class InterfaceILI9341: public I
129129/* *
130130 * Class implements basic functions for 16-bit mode of ILI9341-based displays
131131 */
132- template <class I > class DisplayILI9341x16 : public NanoDisplayOps <NanoDisplayOps16<I>, I>
132+ template <typename I> class DisplayILI9341x16 : public NanoDisplayOps <NanoDisplayOps16<I>, I>
133133{
134134public:
135135 /* *
@@ -150,18 +150,18 @@ template <class I> class DisplayILI9341x16: public NanoDisplayOps<NanoDisplayOps
150150 /* *
151151 * Basic ILI9341 initialization
152152 */
153- void begin () override ;
153+ void beginDisplay () ;
154154
155155 /* *
156156 * Basic ILI9341 deinitialization
157157 */
158- void end () override ;
158+ void endDisplay () ;
159159};
160160
161161/* *
162162 * Class implements basic functions for 16-bit mode of ILI9341-based displays
163163 */
164- template <class I > class DisplayILI9341_240x320x16 : public DisplayILI9341x16 <I>
164+ template <typename I> class DisplayILI9341_240x320x16 : public DisplayILI9341x16 <I>
165165{
166166public:
167167 /* *
@@ -179,12 +179,12 @@ template <class I> class DisplayILI9341_240x320x16: public DisplayILI9341x16<I>
179179 /* *
180180 * Basic ILI9341 240x320x16 initialization
181181 */
182- void begin () override ;
182+ void beginController () ;
183183
184184 /* *
185185 * Basic ILI9341 deinitialization
186186 */
187- void end () override ;
187+ void endController () ;
188188};
189189/* *
190190 * Class implements ILI9341 240x320x16 lcd display in 16 bit mode over SPI
@@ -225,7 +225,7 @@ class DisplayILI9341_240x320x16_SPI: public DisplayILI9341_240x320x16<InterfaceI
225225 * Template class implements ILI9341 240x320x16 lcd display in 16 bit mode over custom SPI implementation
226226 * (user-defined spi implementation). I - user custom spi class
227227 */
228- template <class I > class DisplayILI9341_240x320x16_CustomSPI : public DisplayILI9341_240x320x16 <InterfaceILI9341<I>>
228+ template <typename I> class DisplayILI9341_240x320x16_CustomSPI : public DisplayILI9341_240x320x16 <InterfaceILI9341<I>>
229229{
230230public:
231231 /* *
@@ -249,15 +249,15 @@ template <class I> class DisplayILI9341_240x320x16_CustomSPI: public DisplayILI9
249249 void begin () override
250250 {
251251 m_spi.begin ();
252- DisplayILI9341_240x320x16<InterfaceILI9341<I>>::begin ();
252+ DisplayILI9341_240x320x16<InterfaceILI9341<I>>::beginController ();
253253 }
254254
255255 /* *
256256 * Closes connection to display
257257 */
258258 void end () override
259259 {
260- DisplayILI9341_240x320x16<InterfaceILI9341<I>>::end ();
260+ DisplayILI9341_240x320x16<InterfaceILI9341<I>>::endController ();
261261 m_spi.end ();
262262 }
263263
@@ -267,7 +267,7 @@ template <class I> class DisplayILI9341_240x320x16_CustomSPI: public DisplayILI9
267267/* *
268268 * Class implements basic functions for 16-bit mode of ILI9341-based displays
269269 */
270- template <class I > class DisplayILI9341_128x160x16 : public DisplayILI9341x16 <I>
270+ template <typename I> class DisplayILI9341_128x160x16 : public DisplayILI9341x16 <I>
271271{
272272public:
273273 /* *
@@ -285,12 +285,12 @@ template <class I> class DisplayILI9341_128x160x16: public DisplayILI9341x16<I>
285285 /* *
286286 * Basic ILI9341 128x160x16 initialization
287287 */
288- void begin () override ;
288+ void beginController () ;
289289
290290 /* *
291291 * Basic ILI9341 deinitialization
292292 */
293- void end () override ;
293+ void endController () ;
294294};
295295/* *
296296 * Class implements ILI9341 128x160x16 lcd display in 16 bit mode over SPI
@@ -331,7 +331,7 @@ class DisplayILI9341_128x160x16_SPI: public DisplayILI9341_128x160x16<InterfaceI
331331 * Template class implements ILI9341 128x160x16 lcd display in 16 bit mode over custom SPI implementation
332332 * (user-defined spi implementation). I - user custom spi class
333333 */
334- template <class I > class DisplayILI9341_128x160x16_CustomSPI : public DisplayILI9341_128x160x16 <InterfaceILI9341<I>>
334+ template <typename I> class DisplayILI9341_128x160x16_CustomSPI : public DisplayILI9341_128x160x16 <InterfaceILI9341<I>>
335335{
336336public:
337337 /* *
@@ -355,15 +355,15 @@ template <class I> class DisplayILI9341_128x160x16_CustomSPI: public DisplayILI9
355355 void begin () override
356356 {
357357 m_spi.begin ();
358- DisplayILI9341_128x160x16<InterfaceILI9341<I>>::begin ();
358+ DisplayILI9341_128x160x16<InterfaceILI9341<I>>::beginController ();
359359 }
360360
361361 /* *
362362 * Closes connection to display
363363 */
364364 void end () override
365365 {
366- DisplayILI9341_128x160x16<InterfaceILI9341<I>>::end ();
366+ DisplayILI9341_128x160x16<InterfaceILI9341<I>>::endController ();
367367 m_spi.end ();
368368 }
369369
0 commit comments