Version FC
Dependencies: DmTftLibrary eeprom SX1280Lib filesystem mbed
Fork of MSNV2-Terminal_V1-5 by
Tftlcd.h@8:cd489b7c49a0, 2018-08-22 (annotated)
- Committer:
- FCH_31
- Date:
- Wed Aug 22 13:03:00 2018 +0000
- Revision:
- 8:cd489b7c49a0
- Child:
- 10:1b37e3b41947
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FCH_31 | 8:cd489b7c49a0 | 1 | /* |
FCH_31 | 8:cd489b7c49a0 | 2 | * MISNet |
FCH_31 | 8:cd489b7c49a0 | 3 | * |
FCH_31 | 8:cd489b7c49a0 | 4 | * Display: Ecran de la version MISNet V0 |
FCH_31 | 8:cd489b7c49a0 | 5 | * |
FCH_31 | 8:cd489b7c49a0 | 6 | * Created on: August 17, 2018 Author: Francis CHATAIN |
FCH_31 | 8:cd489b7c49a0 | 7 | * |
FCH_31 | 8:cd489b7c49a0 | 8 | */ |
FCH_31 | 8:cd489b7c49a0 | 9 | |
FCH_31 | 8:cd489b7c49a0 | 10 | #ifndef __TFTLCD_H__ |
FCH_31 | 8:cd489b7c49a0 | 11 | #define __TFTLCD_H__ |
FCH_31 | 8:cd489b7c49a0 | 12 | |
FCH_31 | 8:cd489b7c49a0 | 13 | // ======================================= Includes |
FCH_31 | 8:cd489b7c49a0 | 14 | |
FCH_31 | 8:cd489b7c49a0 | 15 | #include "mbed.h" |
FCH_31 | 8:cd489b7c49a0 | 16 | #include "DmTftHX8353C.h" |
FCH_31 | 8:cd489b7c49a0 | 17 | #include "DmTftS6D0164.h" |
FCH_31 | 8:cd489b7c49a0 | 18 | #include "DmTftIli9325.h" |
FCH_31 | 8:cd489b7c49a0 | 19 | #include "DmTftIli9341.h" |
FCH_31 | 8:cd489b7c49a0 | 20 | #include "DmTftSsd2119.h" |
FCH_31 | 8:cd489b7c49a0 | 21 | #include "DmTftRa8875.h" |
FCH_31 | 8:cd489b7c49a0 | 22 | |
FCH_31 | 8:cd489b7c49a0 | 23 | #include "main.h" |
FCH_31 | 8:cd489b7c49a0 | 24 | |
FCH_31 | 8:cd489b7c49a0 | 25 | // ======================================= Define |
FCH_31 | 8:cd489b7c49a0 | 26 | #define log(...) printf(__VA_ARGS__) |
FCH_31 | 8:cd489b7c49a0 | 27 | |
FCH_31 | 8:cd489b7c49a0 | 28 | |
FCH_31 | 8:cd489b7c49a0 | 29 | // ======================================= Class |
FCH_31 | 8:cd489b7c49a0 | 30 | class Tftlcd |
FCH_31 | 8:cd489b7c49a0 | 31 | { |
FCH_31 | 8:cd489b7c49a0 | 32 | // Public variable /method |
FCH_31 | 8:cd489b7c49a0 | 33 | public: |
FCH_31 | 8:cd489b7c49a0 | 34 | void Init (void) ; |
FCH_31 | 8:cd489b7c49a0 | 35 | void Update (uint8_t sf, uint16_t bw, int8_t pwr, uint8_t bsz, uint32_t freq, uint16_t timeM ) ; |
FCH_31 | 8:cd489b7c49a0 | 36 | |
FCH_31 | 8:cd489b7c49a0 | 37 | |
FCH_31 | 8:cd489b7c49a0 | 38 | // Private variable /method |
FCH_31 | 8:cd489b7c49a0 | 39 | private: |
FCH_31 | 8:cd489b7c49a0 | 40 | int bmpWidth, bmpHeight ; |
FCH_31 | 8:cd489b7c49a0 | 41 | uint8_t bmpImageoffset ; |
FCH_31 | 8:cd489b7c49a0 | 42 | char bufferDisplay[50] ; |
FCH_31 | 8:cd489b7c49a0 | 43 | void DrawBmpFromFlash (int x, int y) ; |
FCH_31 | 8:cd489b7c49a0 | 44 | int BmpReadHeader () ; |
FCH_31 | 8:cd489b7c49a0 | 45 | |
FCH_31 | 8:cd489b7c49a0 | 46 | uint16_t read16 (uint8_t *src) { uint16_t d;uint8_t b ;b = *src;d = *(src+1);d <<= 8 ;d |= b;return d;} |
FCH_31 | 8:cd489b7c49a0 | 47 | uint32_t read32 (uint8_t *src) { uint32_t d;uint16_t b ;b = read16(src);d = read16(src+2);d <<= 16;d |= b;return d;} |
FCH_31 | 8:cd489b7c49a0 | 48 | |
FCH_31 | 8:cd489b7c49a0 | 49 | |
FCH_31 | 8:cd489b7c49a0 | 50 | // Protected variable /method |
FCH_31 | 8:cd489b7c49a0 | 51 | protected: |
FCH_31 | 8:cd489b7c49a0 | 52 | |
FCH_31 | 8:cd489b7c49a0 | 53 | } ; |
FCH_31 | 8:cd489b7c49a0 | 54 | |
FCH_31 | 8:cd489b7c49a0 | 55 | #endif // __DISPLAY_H__ |