kramann.info
© Guido Kramann

Login: Passwort:










kramann.info
© Guido Kramann

Login: Passwort:




Overview

(EN google-translate)

(PL google-translate)


   Simplified user programming layer
   /\
   ||
   User programming layer from TTGO_TWatch_Library V1.4.3
   /\
   ||
   Driver
   /\
   ||
   Hardware (Display, Touch, IMU, RTC, WiFi, Bluetooth, Button, 
             Vibration, Mikrophone, Loudspeaker, Light intensity sensor, infrared data transmitter)


Code 0-1: Overview of software development for the T-Watch 2020 V3 from Lilygo.

To enable programming in a higher programming language, there are hardware drivers at the lowest level that enable control of the internal peripherals of this embedded system.

To simplify the programming of internal peripherals, powerful helper functions are provided at a higher level, which in turn access the hardware drivers.

To further simplify programming in connection with a programming course, the instructor provides even more powerful functions that ensure even greater simplification in software design in line with existing requirements.

  • The programming language used is C++.
  • To create a certain order in the programming environment, a singleton class with object methods is provided for each internal peripheral.
  • This results in a better assignment to the respective hardware component for what was previously described as "functions."

Programming aids that go beyond the given TTGO_TWatch_Library V1.4.3 (further simplified programming layer) are gradually introduced in the following subchapters, always following a simple example with direct use of the TTGO_TWatch_Library as a supplementary element. This ensures that it is clear how this new programming layer can be bypassed if necessary. This is because any simplification of access to the programming of the internal peripherals usually also entails restrictions in the possibilities and reductions in performance. In addition, this openness makes it possible to extend this intermediate layer yourself or adapt it to your own needs.