Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Skala_BMP() {
- #define skala1a_width 13
- #define skala1a_height 9
- static const unsigned char skala1a_bits[] PROGMEM = {
- 0x30, 0x16, 0xf8, 0x08, 0xf8, 0x03, 0xfc, 0x07, 0xfc, 0x03, 0xfe, 0x01,
- 0xfe, 0x01, 0xff, 0x00, 0xff, 0x00
- };
- u8g2.drawXBMP(7, 52, skala1a_width, skala1a_height, skala1a_bits); //1-segment
- }
- void Skala_1_BMP() {
- #define skala_1_width 104
- #define skala_1_height 41
- static const unsigned char skala_1_bits[] PROGMEM = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8,
- 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xff,
- 0x0b, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x2f,
- 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xbf, 0x00,
- 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x02, 0xa0,
- 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9e, 0x02,
- 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x81,
- 0x02, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x00, 0x1c,
- 0x80, 0x02, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x80,
- 0x05, 0x80, 0x02, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00,
- 0x60, 0x09, 0x80, 0x04, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00,
- 0x00, 0x18, 0x0a, 0x80, 0x04, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00,
- 0x00, 0x00, 0x06, 0x12, 0x80, 0x04, 0xa0, 0x00, 0x28, 0x00, 0x0a, 0x80,
- 0x00, 0x00, 0x00, 0x01, 0x14, 0x00, 0x05, 0xa0, 0x00, 0x28, 0x00, 0x0a,
- 0x80, 0x00, 0x00, 0xc0, 0x00, 0x24, 0x00, 0x05, 0xa0, 0x00, 0x28, 0x00,
- 0x0a, 0x80, 0x00, 0x00, 0x20, 0x00, 0x28, 0x00, 0x05, 0xa0, 0x00, 0x28,
- 0x00, 0x0a, 0x80, 0x00, 0x00, 0x48, 0x00, 0x48, 0x00, 0x05, 0xa0, 0x00,
- 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x94, 0x00, 0x50, 0x00, 0x05, 0xa0,
- 0x00, 0x28, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x23, 0x01, 0x90, 0x00, 0x05,
- 0xbf, 0xff, 0xef, 0xff, 0xfb, 0xff, 0x00, 0x80, 0x40, 0x02, 0xa0, 0x00,
- 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x80, 0x04, 0x20,
- 0xf9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x09,
- 0x40, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
- 0x12, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
- 0x00, 0x24, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x30, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x44, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x9a, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x21, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x80, 0x40, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x40, 0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xc0, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x21, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x16, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x08,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
- 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00
- };
- u8g2.drawXBMP(7, 19, skala_1_width, skala_1_height, skala_1_bits); //pusta skala
- }
- void Skala_2_BMP() {
- #define skala2a_width 13
- #define skala2a_height 11
- static const unsigned char skala2a_bits[] PROGMEM = {
- 0x20, 0x02, 0xf0, 0x04, 0xf8, 0x19, 0xfc, 0x03, 0xfe, 0x0f, 0xfe, 0x1f,
- 0xff, 0x0f, 0xff, 0x07, 0xfc, 0x01, 0xf1, 0x00, 0x47, 0x00
- };
- u8g2.drawXBMP(12, 43, skala2a_width, skala2a_height, skala2a_bits); //2-segment
- }
- void Skala_3_BMP() {
- #define skala3a_width 18
- #define skala3a_height 14
- static const unsigned char skala3a_bits[] PROGMEM = {
- 0x00, 0x09, 0x00, 0x80, 0x13, 0x00, 0xe0, 0x27, 0x00, 0xf0, 0x4f, 0x00,
- 0xf8, 0x9f, 0x00, 0xfc, 0x3f, 0x01, 0xfe, 0x7f, 0x02, 0xff, 0xff, 0x00,
- 0xfe, 0xff, 0x01, 0xf8, 0xff, 0x03, 0xf3, 0x7f, 0x00, 0xe7, 0x1f, 0x00,
- 0x8f, 0x07, 0x00, 0x3f, 0x01, 0x00
- };
- u8g2.drawXBMP(18, 34, skala3a_width, skala3a_height, skala3a_bits); //3-segment
- }
- void Skala_4_BMP() {
- #define skala4a_width 18
- #define skala4a_height 16
- static const unsigned char skala4a_bits[] PROGMEM = {
- 0x00, 0x2c, 0x00, 0x00, 0x4f, 0x00, 0xc0, 0x5f, 0x00, 0xf0, 0x9f, 0x00,
- 0xf8, 0xbf, 0x00, 0xfe, 0x3f, 0x01, 0xff, 0x7f, 0x01, 0xfe, 0x7f, 0x02,
- 0xfc, 0xff, 0x02, 0xf9, 0xff, 0x00, 0xf3, 0xff, 0x01, 0xe7, 0xff, 0x01,
- 0xcf, 0xff, 0x03, 0x9f, 0xff, 0x03, 0x3f, 0x3f, 0x00, 0x7f, 0x06, 0x00
- };
- u8g2.drawXBMP(28, 27, skala4a_width, skala4a_height, skala4a_bits); //4-segment
- }
- void Skala_5_BMP() {
- #define skala5a_width 15
- #define skala5a_height 17
- static const unsigned char skala5a_bits[] PROGMEM = {
- 0x00, 0x38, 0x80, 0x3f, 0xf8, 0x3f, 0xff, 0x3f, 0xff, 0x3f, 0xfe, 0x3f,
- 0xfe, 0x3f, 0xfc, 0x3f, 0xfd, 0x7f, 0xf9, 0x7f, 0xfb, 0x7f, 0xf3, 0x7f,
- 0xf7, 0x7f, 0xe7, 0x7f, 0xef, 0x7f, 0xcf, 0x7f, 0xdf, 0x01
- };
- u8g2.drawXBMP(41, 23, skala5a_width, skala5a_height, skala5a_bits); //5-segment
- }
- void Skala_6_BMP() {
- #define skala6a_width 13
- #define skala6a_height 16
- static const unsigned char skala6a_bits[] PROGMEM = {
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f,
- 0xfe, 0x1f, 0xfe, 0x1f, 0xfe, 0x1f, 0x7e, 0x00
- };
- u8g2.drawXBMP(56, 22, skala6a_width, skala6a_height, skala6a_bits); //6-segment
- }
- void Skala_7_BMP() {
- #define skala7a_width 13
- #define skala7a_height 16
- static const unsigned char skala7a_bits[] PROGMEM = {
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f
- };
- u8g2.drawXBMP(70, 21, skala7a_width, skala7a_height, skala7a_bits); //7-segment
- }
- void Skala_8_BMP() {
- #define skala8a_width 13
- #define skala8a_height 17
- static const unsigned char skala8a_bits[] PROGMEM = {
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f
- };
- u8g2.drawXBMP(84, 20, skala8a_width, skala8a_height, skala8a_bits); //8-segment
- }
- void Skala_9_BMP() {
- #define skala9a_width 13
- #define skala9a_height 18
- static const unsigned char skala9a_bits[] PROGMEM = {
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
- 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f
- };
- u8g2.drawXBMP(98, 19, skala9a_width, skala9a_height, skala9a_bits); //9-segment
- }
- //=================================
- void Ograniczenie_mocy_BMP(void) {
- #define Ograniczenie_mocy_width 23
- #define Ograniczenie_mocy_height 14
- static const unsigned char Ograniczenie_mocy[] PROGMEM = {
- 0xE0, 0x1F, 0x00, 0x80, 0x07, 0x00, 0x80, 0x07,
- 0x00, 0xF8, 0x7F, 0x60, 0x0D, 0x80, 0x50, 0x85,
- 0x79, 0x49, 0x45, 0x0A, 0x46, 0x07, 0x0A, 0x40,
- 0x05, 0x39, 0x40, 0x85, 0x40, 0x40, 0x4D, 0x40,
- 0x46, 0xD0, 0x3B, 0x49, 0x20, 0x80, 0x50, 0xC0,
- 0x7F, 0x60
- };
- u8g2.drawXBMP(169, 0, Ograniczenie_mocy_width, Ograniczenie_mocy_height, Ograniczenie_mocy);
- }
- void Akumulator_BMP(void) {
- #define Akumulator_width 13
- #define Akumulator_height 7
- static const unsigned char Akumulator[] PROGMEM = {
- 0x1E, 0x0F, 0xE3, 0x18, 0x09, 0x10, 0x1D, 0x17,
- 0x09, 0x10, 0x01, 0x10, 0xFF, 0x1F
- };
- u8g2.drawXBMP(0, 10, Akumulator_width, Akumulator_height, Akumulator);
- }
- void Ladowanie_BMP(void) {
- #define Ladowanie_width 8
- #define Ladowanie_height 12
- static const unsigned char Ladowanie[] PROGMEM = {
- 0xE0, 0x70, 0x38, 0x1C, 0x0E, 0xFF, 0x70, 0x38, 0x1D, 0x0F, 0x07, 0x0F, // Code for char num 32
- };
- u8g2.drawXBMP(0, 19, Ladowanie_width, Ladowanie_height, Ladowanie);
- }
- void Temperatura_BMP(void) {
- #define Temperatura_width 10
- #define Temperatura_height 15
- static const unsigned char Temperatura[] PROGMEM = {
- 0x18, 0x00, 0x78, 0x00, 0x78, 0x00, 0x18, 0x00, 0x78, 0x00,
- 0x78, 0x00, 0x18, 0x00, 0x78, 0x00, 0x78, 0x00, 0x18, 0x00,
- 0x18, 0x00, 0x3B, 0x03, 0xCC, 0x00, 0x33, 0x03, 0xCC, 0x00
- };
- u8g2.drawXBMP(182, 48, Temperatura_width, Temperatura_height, Temperatura);
- }
- void Swiatla_Pozycyjne_BMP(void) {
- #define Swiatla_Pozycyjne_width 10
- #define Swiatla_Pozycyjne_height 8
- static const unsigned char Swiatla_Pozycyjne[] PROGMEM = {
- 0xEC, 0x00, 0x23, 0x01, 0x20, 0x02, 0x2C, 0x02,
- 0x23, 0x02, 0x20, 0x02, 0x2C, 0x01, 0xE3, 0x00
- };
- u8g2.drawXBMP(0, 0, Swiatla_Pozycyjne_width, Swiatla_Pozycyjne_height, Swiatla_Pozycyjne);
- }
- void Swiatla_Dlugie_BMP(void) {
- #define Swiatla_Dlugie_width 10
- #define Swiatla_Dlugie_height 8
- static const unsigned char Swiatla_Dlugie[] PROGMEM = {
- 0xE0, 0x00, 0x2F, 0x01, 0x20, 0x02, 0x2F, 0x02,
- 0x20, 0x02, 0x2F, 0x02, 0x20, 0x01, 0xE0, 0x00
- };
- u8g2.drawXBMP(14, 0, Swiatla_Dlugie_width, Swiatla_Dlugie_height, Swiatla_Dlugie);
- }
- void Hamulec_BMP(void) {
- #define Hamulec_width 14
- #define Hamulec_height 8
- static const unsigned char Hamulec[] PROGMEM = {
- 0xE4, 0x09, 0x12, 0x12, 0x09, 0x24, 0x09,
- 0x24, 0x09, 0x24, 0x09, 0x24, 0x12, 0x12,
- 0xE4, 0x09
- };
- u8g2.drawXBMP(28, 0, Hamulec_width, Hamulec_height, Hamulec);
- }
- void Strzalka_Lewa_BMP(void) {
- #define Strzalka_Lewa_width 10
- #define Strzalka_Lewa_height 8
- static const unsigned char Strzalka_Lewa[] PROGMEM = {
- 0x08, 0x00, 0x0C, 0x00, 0x0E, 0x00, 0xFF, 0x03, 0xFF, 0x03,
- 0x0E, 0x00, 0x0C, 0x00, 0x08, 0x00, // Code for char num 32
- };
- u8g2.drawXBMP(46, 0, Strzalka_Lewa_width, Strzalka_Lewa_height, Strzalka_Lewa);
- }
- void Strzalka_Prawa_BMP(void) {
- #define Strzalka_Prawa_width 10
- #define Strzalka_Prawa_height 8
- static const unsigned char Strzalka_Prawa[] PROGMEM = {
- 0x40, 0x00, 0xC0, 0x00, 0xC0, 0x01, 0xFF, 0x03, 0xFF, 0x03,
- 0xC0, 0x01, 0xC0, 0x00, 0x40, 0x00, // Code for char num 32
- };
- u8g2.drawXBMP(58, 0, Strzalka_Prawa_width, Strzalka_Prawa_height, Strzalka_Prawa);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement