Files
SSUP/Editor/ssup.h
2026-03-12 21:08:35 +01:00

53 lines
804 B
C++

#pragma once
#include <string>
#include <bits/stdc++.h>
#include "serialib.h"
using namespace std;
enum LANG{
ENGLISH = 0,
GERMAN = 1
};
enum PAGETYPE{
TEXT = 0,
IMAGE = 1
};
struct ssup_config {
int firmware;
int model;
int eeprom_size = 8;
int eeprom_address;
int screen_address;
int toc_size;
int threshhold;
int contrast;
bool locked;
int textx = 21;
int texty = 4;
int imagex = 128;
int imagey = 32;
};
struct page {
PAGETYPE type;
void* data;
};
const string modelLookup[] = {
"SHARP EL-W531XG"
};
static serialib serial;
static ssup_config config;
static int appLang = LANG::GERMAN;
static int applicationStyle = 1;
static int currentPage = 0;
static bool connected = false;
static vector<page*> pages;