repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
RamsayBoy/Minishell-C
include/ramsayboy.h
#ifndef RAMSAYBOY_H_INCLUDED #define RAMSAYBOY_H_INCLUDED void print_author_name(); #endif
RamsayBoy/Minishell-C
src/minishell.c
<reponame>RamsayBoy/Minishell-C<filename>src/minishell.c /* * OS * ---------------------------------------------------------------------------- * minishell.c is where the functions related to the operation of the shell * are placed * ---------------------------------------------------------------------------- * Program: minishell * Author: Ramsay */ #include <stdio.h> #include <sys/wait.h> #include <unistd.h> #include <stdlib.h> #include "../include/parser.h" #include "../include/minishell.h" #define RESET_COLOR "\x1b[0m" #define MAGENTA_T "\x1b[35m" /* TODO: Function header comment */ int save_stds(int *saved_stdin, int *saved_stdout, int *saved_stderr) { *saved_stdin = dup(STDIN_FILENO); if(*saved_stdin < 0) { fprintf(stderr, "[ERROR] There was an error trying to " "save stdin file descriptor\n"); return -1; } *saved_stdout = dup(STDOUT_FILENO); if(*saved_stdout < 0) { fprintf(stderr, "[ERROR] There was an error trying to " "save stdout file descriptor\n"); return -1; } *saved_stderr = dup(STDERR_FILENO); if(*saved_stderr < 0) { fprintf(stderr, "[ERROR] There was an error trying to " "save stderr file descriptor\n"); return -1; } return 0; } /* TODO: Function header comment */ int restore_stds(int saved_stdin, int saved_stdout, int saved_stderr) { if(dup2(saved_stdin, STDIN_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to restore stdin initial value\n"); return -1; } if(dup2(saved_stdout, STDOUT_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to restore stdout initial value\n"); return -1; } if(dup2(saved_stderr, STDERR_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to restore stderr initial value\n"); return -1; } return 0; } void prompt() { printf(MAGENTA_T "msh> " RESET_COLOR); } /* * Function: all_commands_exist * ---------------------------------------------------------------------------- * Check if all the line commands exist * * line: line that contains all the commands written * * returns: 1 in case that all commands written exist; 0 in other case */ int all_commands_exist(tline *line) { int i; for(i = 0; i < line->ncommands; i++) { if(line->commands[i].filename == NULL) { return 0; } } return 1; } /* TODO: Function header comment */ int exec_command(tline *line) { pid_t pid = fork(); int status; if(pid < 0) { return 1; } else if(pid == 0) { execvp(line->commands[0].filename, line->commands[0].argv); exit(2); } else { wait(&status); if(WIFEXITED(status)) { return WEXITSTATUS(status); } return 3; } } /* TODO: Function header comment */ int exec_ncommands(tline *line) { /* TODO: Implement this function */ return 0; } /* TODO: Function header comment */ void print_err_msg(char code) { switch(code) { case 1: fprintf(stderr, "[ERROR] There was an error with the fork() call\n"); break; case 2: fprintf(stderr, "[ERROR] There was a error during execvp() executation\n"); break; case 3: fprintf(stderr, "[ERROR] Child process has not terminated normally\n"); break; } }
RamsayBoy/Minishell-C
include/minishell.h
<reponame>RamsayBoy/Minishell-C #ifndef MINISHELL_H_INCLUDED #define MINISHELL_H_INCLUDED #include "parser.h" int save_stds(int *saved_stdin, int *saved_stdout, int *saved_stderr); int restore_stds(int saved_stdin, int saved_stdout, int saved_stderr); void prompt(); int all_commands_exist(tline *line); int exec_command(tline *line); int exec_ncommands(tline *line); void print_err_msg(char code); #endif
RamsayBoy/Minishell-C
src/main.c
<gh_stars>0 /* * OS * ---------------------------------------------------------------------------- * main.c is where the main program is placed * ---------------------------------------------------------------------------- * Program: minishell * Author: Ramsay */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "../include/parser.h" #include "../include/minishell.h" #include "../include/ramsayboy.h" #define BUFFER_SIZE 1024 int main() { char buffer[BUFFER_SIZE]; tline *line; int saved_stdin, saved_stdout, saved_stderr; /* Save the default values for std in, out and err */ if(save_stds(&saved_stdin, &saved_stdout, &saved_stderr) == -1) { fprintf(stderr, "[ERROR] There was an error trying to save" "the value/s of stdin, stdout or/and stderr\n"); } print_author_name(); prompt(); while(fgets(buffer, BUFFER_SIZE, stdin)) { line = tokenize(buffer); if(strlen(buffer) > 1) { /* TODO: Function for redirecting input code */ if(line->redirect_input) { int file_descr; if((file_descr = open(line->redirect_input, O_RDONLY)) == -1) { fprintf(stderr, "[ERROR] The redirect input has failed\n"); prompt(); continue; } else { if(dup2(file_descr, STDIN_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to use dup2 with stdin\n"); } if(file_descr != STDIN_FILENO) { if(close(file_descr) == -1) { fprintf(stderr, "[ERROR] There was an error trying to " "close a file descriptor\n"); } } } } /* TODO: Function for redirecting output code */ if (line->redirect_output) { int file_descr; if((file_descr = open(line->redirect_output, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IRGRP | S_IWGRP | S_IWUSR)) == -1) { fprintf(stderr, "[ERROR] The redirect output has failed\n"); prompt(); continue; } else { if(dup2(file_descr, STDOUT_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to use dup2 with stdout\n"); } if(file_descr != STDOUT_FILENO) { if(close(file_descr) == -1) { fprintf(stderr, "[ERROR] There was an error trying to " "close a file descriptor\n"); } } } } if (line->redirect_error) { /* TODO: Fix redirect error */ int file_descr; if((file_descr = open(line->redirect_error, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IRGRP | S_IWGRP | S_IWUSR)) == -1) { fprintf(stderr, "[ERROR] The redirect error has failed\n"); prompt(); continue; } else { if(dup2(file_descr, STDERR_FILENO) == -1) { fprintf(stderr, "[ERROR] There was and error " "trying to use dup2 with stderr\n"); } if(file_descr != STDERR_FILENO) { if(close(file_descr) == -1) { fprintf(stderr, "[ERROR] There was an error trying to " "close a file descriptor\n"); } } } } if (line->background) { /* TODO: Implement this */ } if(strcmp(line->commands->argv[0], "exit") == 0) { return 0; } else if(strcmp(line->commands->argv[0], "cd") == 0) { /* TODO: Implements CD command */ puts("cd not implemented yet"); } else if(all_commands_exist(line)) { char exit_code = 0; if(line->ncommands < 2) { exit_code = exec_command(line); } else { /* TODO: exec_ncommands */ exit_code = exec_ncommands(line); } if(exit_code) { print_err_msg(exit_code); } } else { fprintf(stderr, "[ERROR] Some command or commands could not be found\n"); } } /* Restore the default values for std in, out and err */ if(restore_stds(saved_stdin, saved_stdout, saved_stderr) == -1) { fprintf(stderr, "[ERROR] There was an error trying to restore" "the value/s of stdin, stdout or/and stderr\n"); } prompt(); } return 0; }
RamsayBoy/Minishell-C
src/ramsayboy.c
<reponame>RamsayBoy/Minishell-C /* * OS * ---------------------------------------------------------------------------- * ramsayboy.c contains silly stuff * ---------------------------------------------------------------------------- * Program: minishell * Author: Ramsay */ #include <stdio.h> #include "../include/ramsayboy.h" void print_author_name() { printf("______ ______ \n"); printf("| ___ \\ | ___ \\ \n"); printf("| |_/ /__ _ _ __ ___ ___ __ _ _ _| |_/ / ___ _ _ \n"); printf("| // _` | '_ ` _ \\/ __|/ _` | | | | ___ \\/ _ \\| | | |\n"); printf("| |\\ \\ (_| | | | | | \\__ \\ (_| | |_| | |_/ / (_) | |_| |\n"); printf("\\_| \\_\\__,_|_| |_| |_|___/\\__,_|\\__, \\____/ \\___/ \\__, |\n"); printf(" __/ | __/ |\n"); printf(" |___/ |___/ \n"); }
AlbertCayuela/NistalEngine
Nistal Engine/UIResources.h
<filename>Nistal Engine/UIResources.h #ifndef __UIRESOURCES_H__ #define __UIRESOURCES_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include <vector> class UIResources : public UIWindow { public: UIResources(); ~UIResources(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); private: uint counter = -1; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleSceneIntro.h
#pragma once #include "Module.h" #include "Globals.h" #include "Primitive.h" struct PhysBody3D; struct PhysMotor3D; using namespace std; class GameObject; class ModuleSceneIntro : public Module { public: ModuleSceneIntro(Application* app, bool start_enabled = true); ~ModuleSceneIntro(); bool Start(); update_status PreUpdate(float dt); update_status Update(float dt); update_status PostUpdate(float dt); bool CleanUp(); GameObject* CreateGameObject(GameObject* parent, const char* name); vector<GameObject*> game_objects; vector<GameObject*> own_game_objects; vector<GameObject*> saved_scene_game_object; GameObject* root = nullptr; GameObject* camera = nullptr; GameObject* selected_go = nullptr; GameObject* sound_go = nullptr; GameObject* moving_sound_go = nullptr; GameObject* reverb_zone_go = nullptr; bool playing = false; bool paused = false; bool render_street = false; bool objects_created = false; };
AlbertCayuela/NistalEngine
Nistal Engine/GameObject.h
<filename>Nistal Engine/GameObject.h #ifndef __GAMEOBJECT_H__ #define __GAMEOBJECT_H__ #include <vector> #include <string> #include "Globals.h" #include "Parson/parson.h" #include "MathGeoLib/include/MathGeoLib.h" enum GOCOMPONENT_TYPE { NONE = 0, TRANSFORM, MESH, MATERIAL, CAMERA, AUDIO_SOURCE, AUDIO_LISTENER, REVERB_ZONE, }; class GOComponent; class GOMaterial; class GOMesh; class GOTransform; class GOCamera; class GOAudioSource; class GOAudioListener; class GOReverbZone; class GameObject { public: GameObject(GameObject* parent, const char* name); ~GameObject(); void Update(float dt); GOComponent* AddComponent(GOCOMPONENT_TYPE type, const char* name); GOComponent* GetComponent(GOCOMPONENT_TYPE type); void GetNames(const char* name); u32 GenerateUUID(); void AddBoundingBox(); void DrawBoundingBox(); void DeleteGameObjects(); std::string name; std::string path; std::string ui_name; GOMaterial* material = nullptr; GOMesh* mesh = nullptr; GOTransform* transform = nullptr; GOCamera* camera = nullptr; GOAudioSource* audio_source = nullptr; GOAudioListener* audio_listener = nullptr; GOReverbZone* reverb_zone = nullptr; bool has_mesh = false; bool has_material = false; bool has_bbox = false; bool has_camera = false; bool has_audio_source = false; bool has_audio_listener = false; bool has_reverb_zone = false; bool active = true; bool selected = false; std::vector<GOComponent*> go_components; std::vector<GameObject*> children; GameObject* parent = nullptr; math::AABB bbox; math::OBB obb_box; LCG lcg; uint uuid = 0; uint parent_uuid = 0; public: void SaveInfoGameObject(GameObject* go, JSON_Array* json_array); void LoadInfoGameObject(GameObject* game_object, JSON_Object* obj); JSON_Value* components; JSON_Array* componentsObj; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleLoadFBX.h
#pragma once #include "Module.h" #include "Globals.h" #include "GameObject.h" #include "Resource.h" #include "Glew/include/glew.h" #include <vector> #include "MathGeoLib/include/Math/float3.h" #include "Assimp/include/vector3.h" #include "MathGeoLib/include/Math/Quat.h" class GameObject; class Resource; class aiScene; class aiMesh; class aiNode; struct modelData { public: uint id_index = 0u; //index in VRAM uint num_index = 0u; uint* indices = nullptr; uint id_vertex = 0u; //unique vertex in VRAM uint num_vertex = 0u; float* vertices = nullptr; uint id_normals = 0u; uint num_normals = 0u; aiVector3D* normals = nullptr; uint num_faces = 0u; float3* faces_normals = nullptr; float3* face_middle = nullptr; //texture bool has_texture = false; GLuint texture; uint id_uvs = 0u; uint num_uvs = 0u; float* uvs = nullptr; uint nums_uvs_channels = 0u; }; class ModuleLoadFBX : public Module { public: ModuleLoadFBX(Application* app, bool start_enabled = true); ~ModuleLoadFBX(); bool Start(); update_status PreUpdate(float dt); update_status Update(float dt); update_status PostUpdate(float dt); bool CleanUp(); bool LoadFBX(const char* file_path, GameObject* parent = nullptr); void AddBuffers(); void LoadMeshes(const aiScene* scene, aiNode* node, GameObject* game_object, const char* file_path); void LoadIndices(aiMesh* scene); void LoadTexture(const char* texture_path); void LoadMaterial(GameObject* game_object); void LoadVertices(); void DrawNormals(modelData model); void DrawVertexNormals(modelData model); void Unparent(); public: const char* model_path; const char* texture_path; const aiScene* scene; JSON_Object* model_node = nullptr; JSON_Object* texture_node = nullptr; aiMesh* mesh; aiMesh* new_mesh; modelData model; int texture_height; int texture_width; uint textures_num; std::string go_name; GLubyte* image = nullptr; GLint LOD = 0; //level of detail GameObject* new_go; uint texture_id; bool all_fbx_loaded = false; GameObject* new_parent = nullptr; bool parent = false; Resource* new_resource = nullptr; std::vector<std::string> imported_meshes; };
AlbertCayuela/NistalEngine
Nistal Engine/UITime.h
<gh_stars>0 #ifndef __UITIME_H__ #define __UITIME_H__ #include "Module.h" #include "Application.h" #include "UIWindow.h" #include "Timer.h" class UITime : public UIWindow { public: UITime(); ~UITime(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); public: float frame_count; float time_scale = 1.0f; float time; float dt; float real_dt; }; #endif // !__UITIME_H__
AlbertCayuela/NistalEngine
Nistal Engine/GOAudioSource.h
<reponame>AlbertCayuela/NistalEngine #ifndef __GOAUDIOSOURCE_H__ #define __GOAUDIOSOURCE_H__ #include "GOComponent.h" #include "WwiseT.h" #include "Timer.h" using namespace WwiseT; class GOAudioSource : public GOComponent { public: GOAudioSource(GameObject* parent); ~GOAudioSource(); void Update(float dt); bool AudioSourcePosition(); void PlayEvent(const char* event_name); void PlayASound(const char* event_name); void PauseASound(const char* event_name); float SetVolume(float volume); bool MuteSound(); void SwapMusic(float swap_time); void HandleEvents(const char* stop_event, const char* play_event); void SaveSceneAudioSource(JSON_Array* componentsObj); void LoadSceneAudioSource(JSON_Object* compoentsObj, GameObject* go); public: float volume = 50.0f; bool muted = false; bool is_music = false; float swap_time = 30.0f; uint current_song = 1; std::string current_event; AudioSource* source = nullptr; Timer timer; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleUI.h
<gh_stars>0 #pragma once #include "Module.h" #include "Globals.h" #include "UIWindow.h" #include "ImGui/imgui.h" class UIWindow; class UIConfiguration; class UIAbout; class UIConsole; class UIInspector; class UIHierarchy; class UISave; class UILoad; class UITime; class UIAssets; class UIResources; class ModuleUI : public Module { public: ModuleUI(Application* app, bool start_enabled = true); ~ModuleUI(); bool Start(); update_status PreUpdate(float dt); update_status Update(float dt); update_status PostUpdate(float dt); bool CleanUp(); void ConsoleLog(const char* text); void DebugConsole(); bool cube = false; bool sphere = false; bool cylinder = false; bool torus = false; bool cone = false; bool show_demo = false; bool render_cube_direct_mode = false; bool render_cube_vertex = false; bool render_cube_indices = false; std::vector<UIWindow*> ui_windows; ImGuiTextBuffer debug_console_buff; bool render_vertex_normals = false; bool render_face_normals = false; bool render_all_vertex_normals = false; bool render_all_face_normals = false; bool render_texture = false; bool use_camera = false; private: UIConfiguration* ui_configuration = nullptr; UIAbout* ui_about = nullptr; UIConsole* ui_console = nullptr; UIInspector* ui_inspector = nullptr; UIHierarchy* ui_hierarchy = nullptr; UISave* ui_save = nullptr; UILoad* ui_load = nullptr; UITime* ui_time = nullptr; UIAssets* ui_assets = nullptr; UIResources* ui_resources = nullptr; JSON_Object* UI_node = nullptr; };
AlbertCayuela/NistalEngine
Nistal Engine/UILoad.h
#ifndef __UILOAD_H__ #define __UILOAD_H__ #include "Module.h" #include "Application.h" #include "UIWindow.h" class UILoad : public UIWindow { public: UILoad(); ~UILoad(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); public: bool files_checked = false; std::vector<std::string> files_list; std::vector<std::string> dir_list; std::string scene_selected; bool scene_select = false; }; #endif // !__UILOAD_H__
AlbertCayuela/NistalEngine
Nistal Engine/UIInspector.h
<reponame>AlbertCayuela/NistalEngine #pragma once #ifndef __UIINSPECTOR_H__ #define __UIINSPECTOR_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include "SDL/include/SDL.h" #include "imGUI\imgui.h" class UIInspector : public UIWindow { public: UIInspector(); ~UIInspector(); bool Start(); void Draw (); bool CleanUp(); void LoadInspectoData(GameObject* GO); void SetPos(); void UseGuizmo(GameObject* selected_go); bool mesh_exists = false; private: const char* inspector_name; float3 rot = float3::zero; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/UIConfiguration.h
#ifndef __UICONFIGURATION_H__ #define __UICONFIGURATION_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include "SDL/include/SDL.h" #include "imGUI\imgui.h" #include <vector> class UIConfiguration : public UIWindow { public: UIConfiguration(); ~UIConfiguration(); bool Start(); void Draw(); bool CleanUp(); public: SDL_version version; int cpu_cache = 0; int cpu_count = 0; int ram = 0; //3D Renderer bool depth_test = false; bool cull_face = false; bool lightning = false; bool color_material = false; bool texture2D = false; bool wireframe = false; private: std::vector<float> vector_ms; std::vector<float> vector_fps; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/GOCamera.h
<filename>Nistal Engine/GOCamera.h<gh_stars>0 #ifndef __GOCAMERA_H__ #define __GOCAMERA_H__ #include "GOComponent.h" #include "Globals.h" #include "MathGeoLib/include/Geometry/Frustum.h" class GameObject; enum Intersection { INSIDE = 0, INTERSECT = 1, OUTSIDE = 2 }; class GOCamera : public GOComponent { public: GOCamera(GameObject* parent); ~GOCamera(); void Update(float dt); void DrawFrustum(); void SetFOV(float fov); void SetNearPlane(float near_plane); void SetFarPlane(float far_plane); void SetAspectRatio(float aspect_ratio); int ContainsAABB(const AABB& box); void FrustumCulling(GameObject* game_object); float4x4 GetViewMatrix() const; float4x4 GetProjectionMatrix() const; void SaveSceneCamera(JSON_Array* componentsObj); void LoadSceneCamera(JSON_Object* obj, GameObject* game_object); public: math::Frustum frustum; float aspect_ratio = 0.0f; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ResourceMesh.h
<filename>Nistal Engine/ResourceMesh.h #ifndef __RESOURCEMESH_H__ #define __RESOURCEMESH_H__ #include <string> #include "Resource.h" #include "ModuleLoadFBX.h" class ResourceMesh : public Resource { public: ResourceMesh(uint uuid, std::string meta_path, Resource* parent); ~ResourceMesh(); bool LoadToMemory(); bool UnloadFromMemory(); public: Resource* parent; std::string meta_path; modelData model_info; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/GOComponent.h
<reponame>AlbertCayuela/NistalEngine<filename>Nistal Engine/GOComponent.h #ifndef __GOCOMPONENT_H__ #define __GOCOMPONENT_H__ #include "GameObject.h" class GameObject; enum GOCOMPONENT_TYPE; class GOComponent { public: GOComponent(GameObject* game_object); ~GOComponent(); virtual void Update(float dt); virtual bool Enable(); virtual bool Disable(); public: GOCOMPONENT_TYPE type; bool active = true; GameObject* parent = nullptr; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/GOReverbZone.h
#ifndef __GOREVERBZONE_H__ #define __GOREVERBZONE_H__ #include "GOComponent.h" #include "GameObject.h" #include <DirectXMath.h> class GOReverbZone : public GOComponent { public: GOReverbZone(GameObject* game_object); ~GOReverbZone(); void Update(float dt); bool CheckIntersection(GOAudioSource* source); void ZoneSphere(); void DrawZone(); void NewRadius(float new_radius); void SaveSceneReverbZone(JSON_Array* componentsObj); public: math::Sphere reverb_sphere; math::AABB box; float reverb_radius = 5.0f; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleAudio.h
<gh_stars>0 #pragma once #include "Module.h" #include "Globals.h" #include "WwiseT.h" #include "GOAudioSource.h" using namespace WwiseT; class ModuleAudio : public Module { public: ModuleAudio(Application* app, bool start_enabled = true); ~ModuleAudio(); bool Start(); update_status Update(float dt); bool CleanUp(); AudioSource* CreateSoundSource(const char* source_name); bool SetListener(AudioSource* listener); void PlayAudio(GOAudioSource* audio_source, const char* event_name); void PauseAudio(GOAudioSource* audio_source, const char* event_name); void PauseAll(); void StopAll(); public: std::vector<GOAudioSource*> audio_sources; protected: AudioSource* listener; AudioSource* source; };
AlbertCayuela/NistalEngine
Nistal Engine/UIAbout.h
<reponame>AlbertCayuela/NistalEngine<filename>Nistal Engine/UIAbout.h #ifndef __UIABOUT_H__ #define __UIABOUT_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include "SDL/include/SDL.h" #include "imGUI\imgui.h" #include <vector> class UIAbout : public UIWindow { public: UIAbout(); ~UIAbout(); bool Start(); void Draw(); bool CleanUp(); private: }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/sphereEngine.h
<gh_stars>0 #define _USE_MATH_DEFINES #include "Glew/include/glew.h" #include "SDL/include/SDL_opengl.h" #include <gl/GL.h> #include <gl/GLU.h> #include <vector> #include <cmath> using namespace std; class SphereRender { protected: vector<GLfloat> vertices; vector<GLfloat> normals; vector<GLfloat> texcoords; vector<GLushort> indices; public: SphereRender(float radius, unsigned int rings, unsigned int sectors); void DrawSphere(GLfloat x, GLfloat y, GLfloat z); };
AlbertCayuela/NistalEngine
Nistal Engine/ModuleImporter.h
#pragma once #include "Module.h" #include "Globals.h" class ModuleImporter : public Module { public: ModuleImporter(Application* app, bool start_enabled = true); ~ModuleImporter(); bool Start(); bool Update(); bool CleanUp(); //import function is our current LoadMeshes bool SaveOwnFormat(modelData model, string name_to_file); bool LoadOwnFormat(string file_name, GameObject* new_go); bool TextureSaving(string texture_name, const char* folder); public: modelData data; bool loadOwnFormat = false; bool createOwnGameObject = true; modelData modelOwnFormat; GameObject* new_go = nullptr; };
AlbertCayuela/NistalEngine
Nistal Engine/ModuleResourceManager.h
#ifndef __MODULERESOURCEMANAGER_H__ #define __MODULERESOURCEMANAGER_H__ #include "Module.h" #include "Resource.h" #include "MathGeoLib/include/Algorithm/Random/LCG.h" class ModuleResourceManager : public Module { public: ModuleResourceManager(Application* app, bool start_enabled = true); ~ModuleResourceManager(); bool Start(); update_status Update(float dt); uint Find(const char* file_in_assets) const; uint ImportFile(const char* new_file_in_assets); uint GenerateNewUUID(); uint GenerateTimeStamp(); Resource* RequestResource(uint uuid); Resource* CreateNewResource(RESOURCE_TYPE type, uint uuid, std::string meta_path); void GenerateMeta(const char* path, RESOURCE_TYPE type); void GenerateMissingMetas(); void GenerateLibaryResources(); public: std::vector<std::string> mesh_files; std::vector<std::string> mesh_dirs; std::vector<std::string> material_files; std::vector<std::string> material_dirs; std::vector<std::string> library_mesh_files; std::vector<std::string> library_mesh_dirs; std::vector<std::string> library_material_files; std::vector<std::string> library_material_dirs; Timer timer; private: std::map<uint, Resource*> resources; LCG lcg; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/Timer.h
<gh_stars>0 #ifndef __TIMER_H__ #define __TIMER_H__ #include "Globals.h" #include "SDL\include\SDL.h" class Timer { public: // Constructor Timer(); void Start(); void Stop(); void UpdateTimer(); Uint32 Read(); bool paused = false; float frame_count; float time_scale = 1.0f; float time; float dt; float real_dt; private: bool running; Uint32 started_at; Uint32 stopped_at; }; #endif //__TIMER_H__
AlbertCayuela/NistalEngine
Nistal Engine/UIAssets.h
#ifndef __UIASSETS_H__ #define __UIASSETS_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include <vector> class UIAssets : public UIWindow { public: UIAssets(); ~UIAssets(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); private: uint counter = -1; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/UIHierarchy.h
#ifndef __UIHIERARHCY_H__ #define __UIHIERARCHY_H__ #include "Module.h" #include "Application.h" #include "Globals.h" #include "UIWindow.h" #include <vector> class UIHierarchy : public UIWindow { public: UIHierarchy(); ~UIHierarchy(); bool Start(); void Draw(); bool CleanUp(); void SetHierarchy(GameObject* root); void SetPos(); private: uint counter = -1; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/GOAudioListener.h
#ifndef __GOAUDIOLISTENER_H__ #define __GOAUDIOLISTENER_H__ #include "GOComponent.h" #include "WwiseT.h" #include "MathGeoLib/include/Geometry/Polyhedron.h" using namespace WwiseT; class GOAudioListener : public GOComponent { public: GOAudioListener(GameObject* parent); ~GOAudioListener(); void Update(float dt); bool AudioListenerPosition(); void SaveSceneAudioListener(JSON_Array* componentsObj); public: AudioSource* listener = nullptr; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/Resource.h
<gh_stars>0 #ifndef __RESOURCE_H__ #define __RESOURCE_H__ #include "Globals.h" enum RESOURCE_TYPE { RESOURCE_MESH, RESOURCE_MATERIAL, RESOURCE_UNKNOWN }; class ResourceMesh; class ResourceMaterial; class Resource { public: Resource(uint uuid, RESOURCE_TYPE type); virtual ~Resource(); RESOURCE_TYPE GetResourceType() const; uint GetUUID() const; bool IsLoadedToMemory() const; bool LoadToMemory(); bool UnloadToMemory(); uint CountReferences() const; public: uint uuid = 0; RESOURCE_TYPE type = RESOURCE_UNKNOWN; ResourceMesh* resource_mesh = nullptr; ResourceMaterial* resource_material = nullptr; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleSerialization.h
<gh_stars>0 #pragma once #include "Application.h" #include "Module.h" #include "Globals.h" class ModuleSerialization : public Module { public: ModuleSerialization(Application* app, bool start_enabled = true); ~ModuleSerialization(); update_status Update(float dt); bool SaveScene(const char* name_scene); bool LoadScene(const char* scene); bool SaveGameObjects(JSON_Array* json_array); void SetChildren(GameObject* game_object) const; GameObject* new_go = nullptr; JSON_Value* json_value = nullptr; JSON_Array* json_array = nullptr; };
AlbertCayuela/NistalEngine
Nistal Engine/UISave.h
<gh_stars>0 #ifndef __UISAVE_H__ #define __UISAVE_H__ #include "Module.h" #include "Application.h" #include "UIWindow.h" class UISave : public UIWindow { public: UISave(); ~UISave(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); }; #endif // !__UISAVE_H__
AlbertCayuela/NistalEngine
Nistal Engine/GOTransform.h
<filename>Nistal Engine/GOTransform.h #ifndef __GOTRANSFORM_H__ #define __GOTRANSFORM_H__ #include "GOComponent.h" #include "MathGeoLib/include/Math/float3.h" #include "MathGeoLib/include/Math/Quat.h" #include "MathGeoLib/include/Math/float4x4.h" class GOTransform : public GOComponent { public: GOTransform(GameObject* game_object, const char* name); ~GOTransform(); math::float4x4& LocalMatrix() const; math::float4x4 GlobalMatrix() const; void NewPosition(float3 new_position); void NewRotation(float3 new_rotation); void NewScale(float3 new_scale); void NewMatrix(float4x4& global_matrix); //JSON data saving void SaveSceneTransform(JSON_Array* componentsObj, GameObject* game_object); void LoadSceneTransform(JSON_Object* obj); public: float4x4 local_matrix = math::float4x4::identity; float4x4 global_matrix = math::float4x4::identity; float4x4 transform_matrix = math::float4x4::identity; float3 position = math::float3::zero; Quat rotation = math::Quat::identity; float3 scale = math::float3::one; std::string name; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/GOMesh.h
<gh_stars>0 #ifndef __GOMESH_H__ #define __GOMESH_H__ #include "GOComponent.h" #include "ModuleLoadFBX.h" #include "Resource.h" class GOMesh : public GOComponent { public: GOMesh(GameObject* game_object, const char* name); ~GOMesh(); void DrawMesh(uint texture_id = NULL); void SetMesh(const char* path); void SaveSceneMesh(JSON_Array* componentsObj, GameObject* game_object); void LoadSceneMesh(JSON_Object* obj, GameObject* game_object); modelData mesh_info; std::string name; uint mesh_uuid = 0; Resource* this_resource; bool resource_requested = false; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ResourceMaterial.h
#ifndef __RESOURCEMATERIAL_H__ #define __RESOURCEMATERIAL_H__ #include "Resource.h" #include <string> class ResourceMaterial : public Resource { public: ResourceMaterial(uint uuid, std::string meta_path, Resource* parent); ~ResourceMaterial(); bool LoadToMemory(); bool UnloadFromMemory(); Resource* parent; std::string meta_path; std::string texture_path; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/ModuleCamera3D.h
<gh_stars>0 #pragma once #include "Module.h" #include "Globals.h" #include "glmath.h" #include "MathGeoLib/include/Math/float3.h" #include <map> class GameObject; class GOCamera; class ModuleCamera3D : public Module { public: ModuleCamera3D(Application* app, bool start_enabled = true); ~ModuleCamera3D(); bool Start(); update_status Update(float dt); bool CleanUp(); void Look(const float3 &Position, const float3 &Reference, bool RotateAroundReference = false); void LookAt(const float3 &Spot); void Move(const float3 &Movement); void TestAABBIntersection(LineSegment ray, GameObject* game_object, map<GameObject*, float> &intersected_objects); bool TestTriIntersection(LineSegment ray, GameObject *& game_object, map<GameObject*, float>& intersected_objects); void DebugPickingRay(LineSegment ray); GOCamera* GetCurrentCamera() const; private: void FocusOnTarget(const float3& focus,const float& distance); void RotateAroundTarget(); public: GOCamera* camera = nullptr; map<GameObject*, float> intersected_objects; //map to store intersected gameobjects private: mat4x4 ViewMatrix, ViewMatrixInverse; };
AlbertCayuela/NistalEngine
Nistal Engine/GOMaterial.h
#ifndef __GOMATERIAL_H__ #define __GOMATERIAL_H__ #include "GOComponent.h" class GOMaterial : public GOComponent { public: GOMaterial(GameObject* game_object, const char* name); ~GOMaterial(); void LoadThisTex(const char* texture_path); void GetNewMaterial(std::string new_material_path); void SaveSceneMaterial(JSON_Array* componentsObj); void LoadSceneMaterial(JSON_Object* obj, GameObject* game_object); uint texture_id; std::string name; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/UIWindow.h
<reponame>AlbertCayuela/NistalEngine #ifndef __UIWINDOW_H__ #define __UIWINDOW_H__ #include "Application.h" #include "Globals.h" #include "SDL/include/SDL.h" class UIWindow { public: UIWindow(); virtual ~UIWindow(); virtual void Active(); virtual bool IsActive(); virtual void Draw() = 0; public: bool is_on = false; }; #endif
AlbertCayuela/NistalEngine
Nistal Engine/cubeEngine.h
#pragma once #define _USE_MATH_DEFINES #include "Glew/include/glew.h" #include "SDL/include/SDL_opengl.h" #include <gl/GL.h> #include <gl/GLU.h> #include <vector> #include <cmath> using namespace std; class CubeRender { public: CubeRender(); void DrawCubeDirectMode(); void DrawCubeVertexArray(); void DrawCubeIndices(); };
AlbertCayuela/NistalEngine
Nistal Engine/Application.h
#pragma once #include "Globals.h" #include "Timer.h" #include "Module.h" #include "ModuleWindow.h" #include "ModuleInput.h" #include "ModuleSceneIntro.h" #include "ModuleRenderer3D.h" #include "ModuleCamera3D.h" #include "ModuleUI.h" #include "ModuleLoadFBX.h" #include "ModuleFS.h" #include "ModuleImporter.h" #include "ModuleSerialization.h" #include "ModuleResourceManager.h" #include "ModuleAudio.h" #include <list> class Application { public: ModuleWindow* window; ModuleInput* input; ModuleSceneIntro* scene_intro; ModuleRenderer3D* renderer3D; ModuleCamera3D* camera; ModuleUI* ui; ModuleLoadFBX* load_fbx; ModuleFS* file_system; ModuleImporter* importer; ModuleSerialization* serialization; ModuleResourceManager* resource_manager; ModuleAudio* audio; std::string engine_title; JSON_Value* config_file = nullptr; JSON_Object* config = nullptr; JSON_Object* config_node = nullptr; Timer startup_time; uint total_frames = 0; Timer playing_timer; float time_scale = 1.0f; float mydt; float newdt = 0.0f; private: Timer ms_timer; float dt; float last_FPS = 0.0f; float last_ms = 0.0f; std::list<Module*> list_modules; bool showConfig = false; public: Application(); ~Application(); bool Init(); update_status Update(); bool CleanUp(); void RequestBrowser(const char* url); float GetMS(); float GetFPS(); void TimeManager(); float GetDT() const; uint GenerateRandomNumber(); LCG lcg; private: void AddModule(Module* mod); void PrepareUpdate(); void FinishUpdate(); }; extern Application* App;
AlbertCayuela/NistalEngine
Nistal Engine/UIConsole.h
<filename>Nistal Engine/UIConsole.h #ifndef __UICONSOLE_H__ #define __UICONSOLE_H__ #include "Module.h" #include "Application.h" #include "UIWindow.h" class UIConsole : public UIWindow { public: UIConsole(); ~UIConsole(); bool Start(); void Draw(); bool CleanUp(); void SetPos(); }; #endif // !__UICONSOLE_H__
dwfreed/pebble-caltrain
src/colours.h
#pragma once #include <pebble.h> #ifdef PBL_COLOR #define COLOUR_HEADER GColorRed #define COLOUR_HEADER_TEXT GColorWhite #define COLOUR_WINDOW GColorWhite #define COLOUR_MENU_BACKGROUND GColorWhite #define COLOUR_MENU_FOREGROUND GColorBlack #define COLOUR_MENU_HIGHLIGHT_BACKGROUND GColorFromHEX(0xE31837) #define COLOUR_MENU_HIGHLIGHT_FOREGROUND GColorWhite #define COLOUR_BULLET GColorFromHEX(0xE31837) #define COLOUR_LIMITED GColorChromeYellow #define COLOUR_LOCAL GColorDarkGray #define COLOUR_SHUTTLE GColorWhite #define COLOUR_ROUTE_OUTLINE GColorClear #define COLOUR_ROUTE_FILLED GColorDarkGray #define COLOUR_ROUTE_EMPTY GColorLightGray #else #define COLOUR_HEADER GColorBlack #define COLOUR_HEADER_TEXT GColorWhite #define COLOUR_WINDOW GColorWhite #define COLOUR_MENU_BACKGROUND GColorWhite #define COLOUR_MENU_FOREGROUND GColorBlack #define COLOUR_MENU_HIGHLIGHT_BACKGROUND GColorBlack #define COLOUR_MENU_HIGHLIGHT_FOREGROUND GColorWhite #define COLOUR_ROUTE_OUTLINE GColorBlack #define COLOUR_ROUTE_FILLED GColorBlack #define COLOUR_ROUTE_EMPTY GColorWhite #endif
venmo/mparticle-apple-integration-kochava
KochavaCore.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaCore.framework/Headers/KochavaCore.h
<filename>KochavaCore.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaCore.framework/Headers/KochavaCore.h // // KochavaCore.h // KochavaCore // // Created by <NAME> on 6/12/20. // Copyright © 2013 - 2021 Kochava, Inc. All rights reserved. // #ifndef KochavaCore_h #define KochavaCore_h #pragma mark - DEFINE #define KOCHAVA_FRAMEWORK #pragma mark - IMPORT #import <Foundation/Foundation.h> #import <KochavaCore/KVAAppGroups.h> #import <KochavaCore/KVAAsForContextObjectProtocol.h> #import <KochavaCore/KVAConfigureWithObjectProtocol.h> #import <KochavaCore/KVAConsent.h> #import <KochavaCore/KVAContext.h> #import <KochavaCore/KVACoreProduct.h> #import <KochavaCore/KVAEvent.h> #import <KochavaCore/KVAEventType.h> #import <KochavaCore/KVAFromObjectProtocol.h> #import <KochavaCore/KVALog.h> #import <KochavaCore/KVALogLevel.h> #import <KochavaCore/KVAPartner.h> #import <KochavaCore/KVAProduct.h> #import <KochavaCore/KVAEventSender.h> #import <KochavaCore/KVASharedPropertyProvider.h> #import <KochavaCore/KVASystem.h> #pragma mark - EXPORT //! Project version number for KochavaCore. FOUNDATION_EXPORT double KochavaCoreVersionNumber; //! Project version string for KochavaCore. FOUNDATION_EXPORT const unsigned char KochavaCoreVersionString[]; #endif
venmo/mparticle-apple-integration-kochava
mParticle-Kochava/mParticle_Kochava.h
// // mParticle_Kochava.h // mParticle-Kochava // // Created by <NAME> on 2/8/21. // #import <Foundation/Foundation.h> //! Project version number for mParticle_Kochava. FOUNDATION_EXPORT double mParticle_KochavaVersionNumber; //! Project version string for mParticle_Kochava. FOUNDATION_EXPORT const unsigned char mParticle_KochavaVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <mParticle_Kochava/PublicHeader.h>
venmo/mparticle-apple-integration-kochava
KochavaTracker.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaTracker.framework/Headers/KVAPushNotificationsToken.h
// // KVAPushNotificationsToken.h // KochavaTracker // // Created by <NAME> on 7/23/19. // Copyright © 2019 - 2021 Kochava, Inc. All rights reserved. // #ifndef KVAPushNotificationsToken_h #define KVAPushNotificationsToken_h #pragma mark - IMPORT #ifdef KOCHAVA_FRAMEWORK #import <KochavaCore/KochavaCore.h> #else #import "KVAAsForContextObjectProtocol.h" #import "KVAFromObjectProtocol.h" #endif #pragma mark - CLASS @class KVAPushNotificationsToken; #pragma mark - PROTOCOLS @protocol KVAPushNotificationsTokenAdder <NSObject> - (void)addToken:(nonnull KVAPushNotificationsToken *)token NS_SWIFT_NAME(addToken(_:)); @end @protocol KVAPushNotificationsTokenRemover <NSObject> - (void)removeToken:(nullable KVAPushNotificationsToken *)token NS_SWIFT_NAME(removeToken(_:)); @end @protocol KVAPushNotificationsTokenAdderRemoverProvider <NSObject> @property (strong, nonatomic, nullable, readonly) id<KVAPushNotificationsTokenAdder, KVAPushNotificationsTokenRemover> pushNotifications; @end #pragma mark - INTERFACE /*! @class KVAPushNotificationsToken @brief A push notifications token. @author <NAME> @copyright 2017 - 2021 Kochava, Inc. */ @interface KVAPushNotificationsToken : NSObject <KVAAsForContextObjectProtocol, KVAFromObjectProtocol> #pragma mark - CLASS GENERAL /*! @method + addWithData: @brief A method which adds a device token. @param tokenData The device token as provided in NSData. */ + (void)addWithData:(nonnull NSData *)tokenData NS_SWIFT_NAME(add(withData:)); /*! @method + addWithData:adderArray: @brief A method which adds a device token. @param tokenData The device token as provided in NSData. @param adderArray An array of KVAPushNotificationsTokenAdderRemoverProvider to which to add the token. */ + (void)addWithData:(nonnull NSData *)tokenData adderArray:(nullable NSArray<KVAPushNotificationsTokenAdderRemoverProvider> *)adderArray NS_SWIFT_NAME(add(withData:adderArray:)); /*! @method + remove @brief A method which removes any assocation for this device with any previously registered device token. @discussion This is equivalent to calling method removeWithData and passing nil. */ + (void)remove NS_SWIFT_NAME(remove()); /*! @method + removeWithData: @brief A method which removes any assocation for this device with any previously registered device token. @param tokenData The device token as provided in NSData. */ + (void)removeWithData:(nullable NSData *)tokenData NS_SWIFT_NAME(remove(withData:)); /*! @method + removeWithData:removerArray: @brief A method which removes any assocation for this device with any previously registered device token. @param tokenData The device token as provided in NSData. @param removerArray An array of KVAPushNotificationsTokenAdderRemoverProvider from which to remove the token. */ + (void)removeWithData:(nullable NSData *)tokenData removerArray:(nullable NSArray<KVAPushNotificationsTokenAdderRemoverProvider> *)removerArray NS_SWIFT_NAME(remove(withData:removerArray:)); #pragma mark - CONSTRUCTION /*! @method + pushNotificationsTokenWithData:providedDate: @brief Constructs an instance of class KVAPushNotificationsToken. @discussion To add or remove a token, see convenience methods add(withData:) and remove(withData:). @param data The device token as provided in NSData. @param providedDate The date that the token was provided by the operating system. */ + (nullable instancetype)pushNotificationsTokenWithData:(nullable NSData *)data providedDate:(nullable NSDate *)providedDate NS_SWIFT_NAME(init(data:providedDate:)); #pragma mark - PROPERTIES /*! @property data @brief The token data as provided by the operating system. */ @property (strong, nonatomic, nullable, readonly) NSData *data; /*! @property providedDate @brief The date that the token was provided by the operating system. */ @property (strong, nonatomic, nullable, readonly) NSDate *providedDate; @end #endif
venmo/mparticle-apple-integration-kochava
KochavaCore.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaCore.framework/Headers/KVAEventSender.h
<reponame>venmo/mparticle-apple-integration-kochava<filename>KochavaCore.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaCore.framework/Headers/KVAEventSender.h // // KVAEventSender.h // KochavaCore // // Created by <NAME> on 4/17/19. // Copyright © 2019 - 2021 Kochava, Inc. All rights reserved. // #ifndef KVAEventSender_h #define KVAEventSender_h #pragma mark - CLASS @class KVAEvent; #pragma mark - PROTOCOL @protocol KVAEventSender /*! @method - sendEvent: @brief A method to queue an event with standardized parameters to be sent to the server. @param event A KVAEvent configured with the values you want to associate with the event. */ - (void)sendEvent:(nonnull KVAEvent *)event; @end @protocol KVAEventSenderProvider <NSObject> /*! @property events @brief A property which conforms to protocol KVAEventSender. */ @property (strong, nonatomic, nonnull, readonly) id<KVAEventSender> events; @end #endif
venmo/mparticle-apple-integration-kochava
KochavaTracker.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaTracker.framework/Headers/KVATrackerProduct.h
<gh_stars>0 // // KVATrackerProduct.h // KochavaTracker // // Created by <NAME> on 11/9/17. // Copyright © 2017 - 2021 Kochava, Inc. All rights reserved. // #ifndef KVATrackerProduct_h #define KVATrackerProduct_h #pragma mark - IMPORT #ifdef KOCHAVA_FRAMEWORK #import <KochavaCore/KochavaCore.h> #else #import "KVAProduct.h" #import "KVASharedPropertyProvider.h" #endif #pragma mark - INTERFACE /*! @class KVATrackerProduct @brief A class which defines a tracker product. @discussion A product in this context generally refers to the result of a build. Inherits from: KVAProduct @author <NAME> @copyright 2017 - 2021 Kochava, Inc. */ @interface KVATrackerProduct : KVAProduct <KVASharedPropertyProvider> #pragma mark - SHARED INSTANCE (SINGLETON) /*! @property shared @brief The singleton shared instance. */ @property (class, readonly, strong, nonnull) KVATrackerProduct *shared; @end #endif
venmo/mparticle-apple-integration-kochava
KochavaTracker.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaTracker.framework/Headers/KVAPrivacyProfile.h
// // KVAPrivacyProfile.h // KochavaTracker // // Created by <NAME> on 12/10/20. // Copyright © 2020 - 2021 Kochava, Inc. All rights reserved. // #ifndef KVAPrivacyProfile_h #define KVAPrivacyProfile_h #pragma mark - IMPORT #ifdef KOCHAVA_FRAMEWORK #import <KochavaCore/KochavaCore.h> #else #import "KVAAsForContextObjectProtocol.h" #import "KVAFromObjectProtocol.h" #endif #pragma mark - CLASS @class KVAPrivacyProfile; #pragma mark - PROTOCOLS @protocol KVAPrivacyProfileRegistrar <NSObject> - (void)registerProfile:(nonnull KVAPrivacyProfile *)privacyProfile NS_SWIFT_NAME(registerProfile(_:)); @end @protocol KVAPrivacyProfileRegistrarProvider <NSObject> @property (strong, nonatomic, nullable, readonly) id<KVAPrivacyProfileRegistrar> privacy; @end #pragma mark - INTERFACE /*! @class KVAPrivacyProfile @brief A profile describing how information should be redacted for privacy. @author <NAME> @copyright 2020 - 2021 Kochava, Inc. */ @interface KVAPrivacyProfile : NSObject <KVAAsForContextObjectProtocol, KVAFromObjectProtocol> #pragma mark - CLASS GENERAL /*! @method + registerWithNameString:payloadKeyStringArray: @brief A method which registers a device privacyProfile. @param nameString The name of the privacyProfile. @param payloadKeyStringArray An array of datapoint identifiers. */ + (void)registerWithNameString:(nonnull NSString *)nameString payloadKeyStringArray:(nullable NSArray<NSString *> *)payloadKeyStringArray NS_SWIFT_NAME(register(withNameString:payloadKeyStringArray:)); /*! @method + registerWithNameString:payloadKeyStringArray:registrarArray: @brief A method which registers a privacyProfile. @param nameString The name of the privacyProfile. @param payloadKeyStringArray An array of datapoint identifiers. @param registrarArray An array of KVAPrivacyProfileRegistrarProvider to which to register the privacyProfile. */ + (void)registerWithNameString:(nonnull NSString *)nameString payloadKeyStringArray:(nullable NSArray<NSString *> *)payloadKeyStringArray registrarArray:(nullable NSArray<KVAPrivacyProfileRegistrarProvider> *)registrarArray NS_SWIFT_NAME(register(withNameString:payloadKeyStringArray:registrarArray:)); #pragma mark - PROPERTIES /*! @property nameString @brief A unique name string. */ @property (strong, nonatomic, nullable, readonly) NSString *nameString; /*! @property payloadKeyStringArray @brief An array of datapoint identifiers. */ @property (strong, nonatomic, nullable, readonly) NSArray<NSString *> *payloadKeyStringArray; /*! @property payloadIdStringArray @brief An array of payload identifiers. */ @property (strong, nonatomic, nullable, readonly) NSArray<NSString *> *payloadIdStringArray; @end #endif
venmo/mparticle-apple-integration-kochava
KochavaCore.xcframework/watchos-arm64_i386_x86_64-simulator/KochavaCore.framework/Headers/KVASystem.h
<reponame>venmo/mparticle-apple-integration-kochava // // KVASystem.h // KochavaCore // // Created by <NAME> on 12/28/17. // Copyright © 2017 - 2021 Kochava, Inc. All rights reserved. // #ifndef KVASystem_h #define KVASystem_h #pragma mark - INTERFACE /*! @class KVASystem @brief A class for working with system-level properties. Inherits from: NSObject @author <NAME> @copyright 2017 - 2021 Kochava, Inc. */ @interface KVASystem : NSObject #pragma mark - SHARED INSTANCE (SINGLETON) /*! @property shared @brief The singleton shared instance. */ @property (class, readonly, strong, nonnull) KVASystem *shared; #pragma mark - CONSTANTS /*! @constant messagesAppViewControllerDidBecomeActiveSourceString @brief A constant to use as the source when reporting that a MessagesAppViewController did become active. */ @property (class, strong, nonatomic, nonnull, readonly) NSString *messagesAppViewControllerDidBecomeActiveSourceString; /*! @constant messagesAppViewControllerDidResignActiveSourceString @brief A constant to use as the source when reporting that a MessagesAppViewController did resign active. */ @property (class, strong, nonatomic, nonnull, readonly) NSString *messagesAppViewControllerDidResignActiveSourceString; #pragma mark - PROPERTIES /*! @property appClipBool @brief A boolean indicating if the current host is an app clip. @discussion This property will return a default value based on whether or not it can be detected that the host is an app clip. It uses the bundle identifier and looks for the default suffix of ".Clip" (case insensitive). If it finds that suffix then this value will default to true, otherwise false. If this assumption is not accurate for the host, this value can be set explicitly. */ @property (atomic, readwrite) BOOL appClipBool; /*! @property appExtensionBool @brief A boolean indicating if the current host is an app extension. */ @property (atomic, readonly) BOOL appExtensionBool; /*! @property stateActiveBool @brief A boolean indicating if the system's state is active. @discussion This considers the application active state and/or the extension active state (when applicable). It unifies the notion of an system active state. */ @property (atomic, readonly) BOOL stateActiveBool; #pragma mark - GENERAL /*! @method - stateActiveDidBecome @brief A method which can be called to report that the active state should become true. @discussion Calling this method is generally redundant when the host is an application, as this change is observed automatically. But this method can and should be called in app extensions, such as iMessage apps, to notify when the state is reported to have become active. */ - (void)stateActiveDidBecome; /*! @method - stateActiveDidBecomeWithSourceString: @brief A method which can be called to report that the active state should become true. @discussion Calling this method is generally redundant when the host is an application, as this change is observed automatically. But this method can and should be called in app extensions, such as iMessage apps, to notify when the state is reported to have become active. @param sourceString A string which describes the source that is originating the state change. */ - (void)stateActiveDidBecomeWithSourceString:(nonnull NSString *)sourceString; /*! @method - stateActiveWillResign @brief A method which can be called to report that the active state should resign true. @discussion Calling this method is generally redundant when the host is an application, as this change is observed automatically. But this method can and should be called in app extensions, such as iMessage apps, to notify when the state is reported to have resigned active. */ - (void)stateActiveWillResign; /*! @method - stateActiveWillResignWithSourceString: @brief A method which can be called to report that the active state should resign true. @discussion Calling this method is generally redundant when the host is an application, as this change is observed automatically. But this method can and should be called in app extensions, such as iMessage apps, to notify when the state is reported to have resigned active. @param sourceString A string which describes the source that is originating the state change. */ - (void)stateActiveWillResignWithSourceString:(nonnull NSString *)sourceString; @end #endif
wakwak-koba/M5GFX
src/lgfx/Fonts/Ascii24x48.h
#ifndef ASCIIFONTLIB24X48_H_ #define ASCIIFONTLIB24X48_H_ /*************************************************************************************/ // // 字模文件 // 软件提供:哈迪斯2001(Hades2001) @2018/09/10 // Mail: <EMAIL> // 编码: ASCII // 字体: (ASC48)24x24 Ascii // 字模水平像素 : 24 // 字模垂直像素 : 48 // 字模扫描模式 : 逐行式 // 字模储存模式 : 高位在先 // 定位方式 :( Ascii码 - 0x20 ) x 144 // /************************************************************************************/ // // original source : https://github.com/m5stack/M5-CoreInk/blob/master/src/utility/Ascii24x48.cpp // // modified by lovyan03 // /************************************************************************************/ const unsigned char FontLib24x48[] = { /* 0x00 [ ] [ 0 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x01 [ ! ] [ 1 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x78, 0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x78,0x00, 0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00, 0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30, 0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0xF8,0x00,0x00, 0xF8,0x00,0x00,0xF8,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x02 [ " ] [ 2 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0x01,0xE1,0xE0,0x03, 0xE3,0xE0,0x03,0xC3,0xC0,0x07,0x87,0x80,0x07,0x07,0x00,0x0E,0x0E,0x00,0x0C,0x0C, 0x00,0x18,0x18,0x00,0x10,0x10,0x00,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x03 [ # ] [ 3 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0xC0,0x03,0x00,0xC0,0x03,0x00, 0xC0,0x03,0x00,0xC0,0x03,0x00,0xC0,0x03,0x00,0xC0,0x03,0x00,0xC0,0x7F,0xFF,0xF8, 0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x06,0x01,0x80,0x06,0x01,0x80,0x06, 0x01,0x80,0x06,0x01,0x80,0x06,0x01,0x80,0x06,0x01,0x80,0x06,0x01,0x80,0x06,0x01, 0x80,0x06,0x01,0x80,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8, 0x0C,0x03,0x00,0x0C,0x03,0x00,0x0C,0x03,0x00,0x0C,0x03,0x00,0x0C,0x03,0x00,0x0C, 0x03,0x00,0x0C,0x03,0x00,0x0C,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x04 [ $ ] [ 4 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0xFE,0x00,0x03,0xB3,0x80,0x06,0x31, 0xC0,0x0E,0x30,0xC0,0x0C,0x30,0xE0,0x1C,0x30,0xE0,0x1C,0x31,0xE0,0x1C,0x31,0xE0, 0x1E,0x31,0xC0,0x1E,0x30,0x00,0x0F,0x30,0x00,0x0F,0xB0,0x00,0x07,0xF0,0x00,0x03, 0xF0,0x00,0x01,0xF8,0x00,0x00,0x7E,0x00,0x00,0x3F,0x00,0x00,0x3F,0x00,0x00,0x37, 0x80,0x00,0x33,0xC0,0x00,0x31,0xC0,0x00,0x31,0xE0,0x1C,0x30,0xE0,0x3E,0x30,0xE0, 0x3E,0x30,0xE0,0x3E,0x30,0xE0,0x3C,0x30,0xE0,0x18,0x30,0xC0,0x18,0x31,0xC0,0x0C, 0x31,0x80,0x06,0x37,0x00,0x01,0xFC,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30, 0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x05 [ % ] [ 5 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x60,0x31,0x00,0x40,0x61,0x80, 0xC0,0x40,0x80,0x80,0xC0,0xC1,0x80,0xC0,0xC1,0x00,0xC0,0xC1,0x00,0xC0,0xC3,0x00, 0xC0,0xC2,0x00,0xC0,0xC6,0x00,0xC0,0xC4,0x00,0xC0,0xCC,0x00,0xC0,0xC8,0x00,0x60, 0x88,0x00,0x61,0x98,0x00,0x33,0x11,0xE0,0x1E,0x33,0x30,0x00,0x26,0x18,0x00,0x66, 0x18,0x00,0x44,0x08,0x00,0x4C,0x0C,0x00,0xCC,0x0C,0x00,0x8C,0x0C,0x01,0x8C,0x0C, 0x01,0x0C,0x0C,0x01,0x0C,0x0C,0x02,0x0C,0x0C,0x02,0x0C,0x0C,0x06,0x04,0x08,0x04, 0x06,0x18,0x0C,0x03,0x30,0x08,0x01,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x06 [ & ] [ 6 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x03,0x1C,0x00,0x06,0x0C, 0x00,0x04,0x0E,0x00,0x0C,0x0E,0x00,0x0C,0x0E,0x00,0x0C,0x0E,0x00,0x0C,0x0E,0x00, 0x0C,0x0E,0x00,0x0C,0x1C,0x00,0x0E,0x1C,0x00,0x06,0x38,0x00,0x07,0x70,0x00,0x07, 0xC0,0x00,0x07,0x07,0xF8,0x0F,0x80,0xE0,0x1B,0x80,0xC0,0x33,0xC0,0xC0,0x71,0xC0, 0xC0,0x61,0xE0,0xC0,0x60,0xE0,0x80,0xE0,0xF0,0x80,0xE0,0x71,0x80,0xE0,0x79,0x80, 0xE0,0x3D,0x00,0xE0,0x1F,0x00,0xF0,0x1E,0x00,0x70,0x0F,0x02,0x78,0x0F,0x82,0x3C, 0x1B,0xC4,0x1F,0xF1,0xFC,0x07,0xC0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x07 [ ' ] [ 7 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x3E,0x00,0x00,0x3F, 0x00,0x00,0x3F,0x00,0x00,0x1F,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x06,0x00, 0x00,0x0C,0x00,0x00,0x1C,0x00,0x00,0x38,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x08 [ ( ] [ 8 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x20,0x00, 0x00,0x60,0x00,0x00,0xC0,0x00,0x01,0x80,0x00,0x03,0x80,0x00,0x03,0x00,0x00,0x06, 0x00,0x00,0x0E,0x00,0x00,0x0C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00, 0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70, 0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x30,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x0C,0x00,0x00,0x0E,0x00,0x00, 0x06,0x00,0x00,0x07,0x00,0x00,0x03,0x00,0x00,0x01,0x80,0x00,0x00,0xC0,0x00,0x00, 0x60,0x00,0x00,0x20,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x09 [ ) ] [ 9 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x00,0x00,0x30,0x00,0x00,0x18, 0x00,0x00,0x1C,0x00,0x00,0x0C,0x00,0x00,0x06,0x00,0x00,0x03,0x00,0x00,0x03,0x80, 0x00,0x01,0x80,0x00,0x01,0xC0,0x00,0x00,0xC0,0x00,0x00,0xE0,0x00,0x00,0x60,0x00, 0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00, 0x00,0x60,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x01,0xC0,0x00,0x01,0x80,0x00,0x03, 0x80,0x00,0x03,0x00,0x00,0x06,0x00,0x00,0x0E,0x00,0x00,0x1C,0x00,0x00,0x18,0x00, 0x00,0x30,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0A [ * ] [ 10 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x30,0x38,0x18,0x78,0x38,0x7C,0x7E,0x30,0xFC,0x3F,0x11,0xF8,0x0F, 0x93,0xE0,0x01,0xD7,0x00,0x00,0x7C,0x00,0x00,0x7C,0x00,0x01,0xD7,0x00,0x0F,0x93, 0xE0,0x3F,0x11,0xF8,0x7E,0x18,0xFC,0x7C,0x38,0x3C,0x30,0x38,0x1C,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0B [ + ] [ 11 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00, 0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00, 0x30,0x00,0x00,0x30,0x00,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x00,0x30,0x00,0x00,0x30, 0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00, 0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0C [ , ] [ 12 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x00,0x00,0x3E,0x00,0x00,0x3F, 0x00,0x00,0x3F,0x00,0x00,0x1F,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x06,0x00, 0x00,0x0C,0x00,0x00,0x1C,0x00,0x00,0x38,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00, /* 0x0D [ - ] [ 13 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xFC,0x7F,0xFF,0xFC,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0E [ . ] [ 14 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x00,0x00,0x3F,0x00,0x00,0x3F,0x00,0x00,0x3F, 0x00,0x00,0x3F,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0F [ / ] [ 15 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00, 0x00,0x18,0x00,0x00,0x10,0x00,0x00,0x30,0x00,0x00,0x20,0x00,0x00,0x60,0x00,0x00, 0x40,0x00,0x00,0xC0,0x00,0x00,0x80,0x00,0x00,0x80,0x00,0x01,0x00,0x00,0x01,0x00, 0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x06,0x00,0x00,0x04,0x00,0x00,0x0C,0x00,0x00, 0x08,0x00,0x00,0x18,0x00,0x00,0x10,0x00,0x00,0x30,0x00,0x00,0x20,0x00,0x00,0x60, 0x00,0x00,0x40,0x00,0x00,0xC0,0x00,0x00,0x80,0x00,0x01,0x80,0x00,0x01,0x00,0x00, 0x01,0x00,0x00,0x02,0x00,0x00,0x02,0x00,0x00,0x04,0x00,0x00,0x04,0x00,0x00,0x0C, 0x00,0x00,0x08,0x00,0x00,0x18,0x00,0x00,0x10,0x00,0x00,0x30,0x00,0x00,0x20,0x00, 0x00,0x60,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x10 [ 0 ] [ 16 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x03,0x86,0x00,0x07,0x03, 0x00,0x0E,0x01,0x80,0x0C,0x01,0xC0,0x1C,0x00,0xC0,0x18,0x00,0xC0,0x38,0x00,0xE0, 0x38,0x00,0xE0,0x38,0x00,0x60,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70, 0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00, 0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x38,0x00,0x60,0x38,0x00,0xE0, 0x38,0x00,0xE0,0x18,0x00,0xC0,0x1C,0x00,0xC0,0x0C,0x01,0x80,0x0E,0x01,0x80,0x06, 0x03,0x00,0x03,0x86,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x11 [ 1 ] [ 17 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x18,0x00,0x00,0x38, 0x00,0x07,0xF8,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x7C,0x00,0x07,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x12 [ 2 ] [ 18 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x03,0x07,0x00,0x0C,0x03, 0x80,0x18,0x01,0xC0,0x18,0x01,0xC0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0, 0x3C,0x00,0xE0,0x3C,0x00,0xE0,0x1C,0x00,0xE0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00, 0x03,0x80,0x00,0x03,0x80,0x00,0x07,0x00,0x00,0x0E,0x00,0x00,0x1C,0x00,0x00,0x38, 0x00,0x00,0x70,0x00,0x00,0xE0,0x00,0x01,0xC0,0x00,0x03,0x80,0x00,0x03,0x00,0x00, 0x06,0x00,0x20,0x0C,0x00,0x20,0x18,0x00,0x60,0x30,0x00,0x60,0x20,0x00,0xC0,0x7F, 0xFF,0xC0,0x7F,0xFF,0xC0,0x7F,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x13 [ 3 ] [ 19 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x03,0x07,0x00,0x06,0x03, 0x80,0x0C,0x01,0xC0,0x1C,0x01,0xC0,0x1C,0x00,0xE0,0x1E,0x00,0xE0,0x1E,0x00,0xE0, 0x0E,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xC0,0x00,0x01,0xC0,0x00,0x01,0x80,0x00, 0x03,0x00,0x00,0x0E,0x00,0x00,0xF8,0x00,0x00,0x0F,0x00,0x00,0x01,0x80,0x00,0x00, 0xC0,0x00,0x00,0xE0,0x00,0x00,0x60,0x00,0x00,0x70,0x00,0x00,0x70,0x18,0x00,0x70, 0x3C,0x00,0x70,0x3C,0x00,0x70,0x3C,0x00,0x60,0x38,0x00,0xE0,0x18,0x00,0xC0,0x0C, 0x01,0x80,0x06,0x07,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x14 [ 4 ] [ 20 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x07,0x00,0x00,0x07, 0x00,0x00,0x0F,0x00,0x00,0x1F,0x00,0x00,0x17,0x00,0x00,0x37,0x00,0x00,0x27,0x00, 0x00,0x67,0x00,0x00,0xC7,0x00,0x00,0x87,0x00,0x01,0x87,0x00,0x03,0x07,0x00,0x02, 0x07,0x00,0x06,0x07,0x00,0x04,0x07,0x00,0x08,0x07,0x00,0x18,0x07,0x00,0x10,0x07, 0x00,0x30,0x07,0x00,0x60,0x07,0x00,0x7F,0xFF,0xF8,0x7F,0xFF,0xF8,0x00,0x07,0x00, 0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00, 0x07,0x00,0x00,0x07,0x80,0x00,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x15 [ 5 ] [ 21 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xE0,0x0F,0xFF,0xE0,0x0F,0xFF, 0xE0,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00,0x08,0x00,0x00, 0x10,0x00,0x00,0x10,0x00,0x00,0x10,0x00,0x00,0x10,0xFE,0x00,0x13,0xFF,0x00,0x17, 0x03,0x80,0x1C,0x01,0xC0,0x1C,0x00,0xE0,0x18,0x00,0xE0,0x00,0x00,0xF0,0x00,0x00, 0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x18,0x00,0x70,0x3C,0x00,0x70, 0x3C,0x00,0x70,0x3C,0x00,0x60,0x38,0x00,0xE0,0x18,0x00,0xE0,0x18,0x01,0xC0,0x0C, 0x01,0x80,0x07,0x07,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x16 [ 6 ] [ 22 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x01,0x83,0x80,0x03,0x03, 0x80,0x06,0x03,0xC0,0x0C,0x03,0xC0,0x18,0x03,0xC0,0x18,0x00,0x00,0x18,0x00,0x00, 0x38,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x70,0x00,0x00,0x70,0x7E,0x00,0x71, 0xFF,0x80,0x77,0x83,0xC0,0x76,0x01,0xC0,0x7C,0x00,0xE0,0x78,0x00,0xE0,0x70,0x00, 0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x30,0x00,0x70, 0x38,0x00,0x70,0x38,0x00,0x70,0x18,0x00,0x60,0x1C,0x00,0xE0,0x0C,0x00,0xC0,0x06, 0x01,0x80,0x03,0x83,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x17 [ 7 ] [ 23 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xF0,0x1F,0xFF,0xF0,0x1F,0xFF, 0xE0,0x1C,0x00,0x60,0x10,0x00,0xC0,0x30,0x00,0x80,0x20,0x01,0x80,0x20,0x01,0x00, 0x00,0x03,0x00,0x00,0x02,0x00,0x00,0x06,0x00,0x00,0x04,0x00,0x00,0x0C,0x00,0x00, 0x08,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x70, 0x00,0x00,0x60,0x00,0x00,0x60,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00, 0x00,0xE0,0x00,0x01,0xE0,0x00,0x01,0xE0,0x00,0x01,0xE0,0x00,0x01,0xE0,0x00,0x01, 0xE0,0x00,0x01,0xE0,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x18 [ 8 ] [ 24 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFE,0x00,0x07,0x03,0x80,0x0E,0x01, 0xC0,0x1C,0x00,0xE0,0x18,0x00,0xE0,0x38,0x00,0x70,0x38,0x00,0x70,0x38,0x00,0x70, 0x38,0x00,0x70,0x3C,0x00,0x70,0x1E,0x00,0xE0,0x1F,0x00,0xE0,0x0F,0x81,0xC0,0x07, 0xE3,0x80,0x03,0xFE,0x00,0x03,0xFE,0x00,0x06,0x3F,0x00,0x0C,0x0F,0x80,0x1C,0x07, 0xC0,0x38,0x01,0xE0,0x38,0x01,0xE0,0x70,0x00,0xF0,0x70,0x00,0x70,0x70,0x00,0x70, 0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x38,0x00,0xE0,0x18,0x00,0xC0,0x0C, 0x01,0xC0,0x07,0x03,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x19 [ 9 ] [ 25 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF8,0x00,0x07,0x06,0x00,0x0C,0x01, 0x00,0x1C,0x01,0x80,0x38,0x00,0xC0,0x38,0x00,0xC0,0x30,0x00,0x60,0x70,0x00,0x60, 0x70,0x00,0x60,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70,0x00,0x70,0x70, 0x00,0xF0,0x38,0x00,0xF0,0x38,0x01,0xF0,0x3C,0x03,0x70,0x1F,0x0E,0x70,0x0F,0xFC, 0x70,0x03,0xF0,0x70,0x00,0x00,0x60,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0, 0x00,0x00,0xC0,0x00,0x01,0xC0,0x0C,0x01,0x80,0x1E,0x03,0x80,0x1E,0x03,0x00,0x1E, 0x06,0x00,0x0E,0x1C,0x00,0x03,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1A [ : ] [ 26 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0xFC,0x00,0x00,0xFC,0x00,0x00, 0xFC,0x00,0x00,0xFC,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0xFC,0x00,0x00,0xFC,0x00,0x00, 0xFC,0x00,0x00,0xFC,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1B [ ; ] [ 27 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00, 0x78,0x00,0x00,0x78,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x78,0x00,0x00, 0x78,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x18,0x00,0x00,0x30,0x00,0x00,0x30, 0x00,0x00,0x30,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1C [ < ] [ 28 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x70,0x00,0x00,0xE0,0x00,0x01, 0xC0,0x00,0x03,0x00,0x00,0x06,0x00,0x00,0x0C,0x00,0x00,0x18,0x00,0x00,0x30,0x00, 0x00,0x60,0x00,0x00,0xC0,0x00,0x01,0x80,0x00,0x03,0x00,0x00,0x06,0x00,0x00,0x0C, 0x00,0x00,0x18,0x00,0x00,0x30,0x00,0x00,0x18,0x00,0x00,0x0C,0x00,0x00,0x06,0x00, 0x00,0x03,0x00,0x00,0x01,0x80,0x00,0x00,0xC0,0x00,0x00,0x60,0x00,0x00,0x30,0x00, 0x00,0x18,0x00,0x00,0x0C,0x00,0x00,0x06,0x00,0x00,0x03,0x00,0x00,0x01,0xC0,0x00, 0x00,0xE0,0x00,0x00,0x70,0x00,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1D [ = ] [ 29 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xFF,0xFC,0x7F,0xFF,0xFC,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x7F,0xFF,0xFC,0x7F,0xFF,0xFC,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1E [ > ] [ 30 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x38,0x00,0x00,0x1C,0x00,0x00,0x0E,0x00, 0x00,0x03,0x00,0x00,0x01,0x80,0x00,0x00,0xC0,0x00,0x00,0x60,0x00,0x00,0x30,0x00, 0x00,0x18,0x00,0x00,0x0C,0x00,0x00,0x06,0x00,0x00,0x03,0x00,0x00,0x01,0x80,0x00, 0x00,0xC0,0x00,0x00,0x60,0x00,0x00,0x30,0x00,0x00,0x60,0x00,0x00,0xC0,0x00,0x01, 0x80,0x00,0x03,0x00,0x00,0x06,0x00,0x00,0x0C,0x00,0x00,0x18,0x00,0x00,0x30,0x00, 0x00,0x60,0x00,0x00,0xC0,0x00,0x01,0x80,0x00,0x03,0x00,0x00,0x0E,0x00,0x00,0x1C, 0x00,0x00,0x38,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1F [ ? ] [ 31 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x00,0x07,0xFF,0x00,0x0E,0x03,0x80,0x18,0x01, 0xC0,0x30,0x00,0xE0,0x30,0x00,0x60,0x60,0x00,0x70,0x70,0x00,0x70,0x78,0x00,0x70, 0x7C,0x00,0x70,0x7C,0x00,0x70,0x3C,0x00,0x70,0x00,0x00,0xE0,0x00,0x01,0xE0,0x00, 0x03,0xC0,0x00,0x07,0x80,0x00,0x0F,0x00,0x00,0x1C,0x00,0x00,0x38,0x00,0x00,0x30, 0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00,0x00,0x30,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x00,0xF8,0x00,0x00, 0xF8,0x00,0x00,0xF8,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x20 [ @ ] [ 32 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x01,0xC1,0x80,0x03,0x00, 0x60,0x06,0x00,0x20,0x0C,0x00,0x30,0x0C,0x00,0x18,0x18,0x0E,0xD8,0x18,0x31,0x98, 0x38,0x61,0x8C,0x38,0x61,0x8C,0x30,0xC1,0x8C,0x70,0xC1,0x8C,0x71,0x81,0x8C,0x71, 0x83,0x8C,0x71,0x83,0x8C,0x73,0x03,0x8C,0x73,0x03,0x8C,0x73,0x03,0x0C,0x73,0x03, 0x08,0x73,0x07,0x18,0x73,0x07,0x18,0x33,0x0F,0x10,0x39,0x9B,0x30,0x39,0xFB,0xE0, 0x38,0xE1,0xCC,0x1C,0x00,0x08,0x1C,0x00,0x18,0x0E,0x00,0x30,0x07,0x00,0x60,0x03, 0xC1,0xE0,0x01,0xFF,0x80,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x21 [ A ] [ 33 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x70,0x00,0x00,0x78,0x00,0x00,0xF8, 0x00,0x00,0xF8,0x00,0x00,0xF8,0x00,0x00,0xD8,0x00,0x01,0x9C,0x00,0x01,0x9C,0x00, 0x01,0x9C,0x00,0x01,0x8C,0x00,0x03,0x0E,0x00,0x03,0x0E,0x00,0x03,0x0E,0x00,0x03, 0x06,0x00,0x06,0x07,0x00,0x06,0x07,0x00,0x06,0x07,0x00,0x06,0x07,0x00,0x0C,0x03, 0x80,0x0F,0xFF,0x80,0x0C,0x03,0x80,0x0C,0x03,0x80,0x18,0x03,0xC0,0x18,0x01,0xC0, 0x18,0x01,0xC0,0x18,0x01,0xC0,0x30,0x01,0xE0,0x30,0x00,0xE0,0x30,0x00,0xE0,0x30, 0x00,0xE0,0x70,0x00,0xF0,0xFC,0x03,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x22 [ B ] [ 34 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x1C,0x07,0x80,0x1C,0x03, 0xC0,0x1C,0x01,0xC0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0, 0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x01,0xC0,0x1C,0x01,0xC0,0x1C,0x03,0x80,0x1C, 0x07,0x00,0x1F,0xFC,0x00,0x1C,0x03,0x80,0x1C,0x00,0xC0,0x1C,0x00,0xE0,0x1C,0x00, 0x70,0x1C,0x00,0x70,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38, 0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C, 0x00,0xE0,0x1C,0x03,0x80,0xFF,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x23 [ C ] [ 35 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x08,0x00,0xC1,0xF8,0x03,0x00, 0x78,0x06,0x00,0x38,0x0E,0x00,0x18,0x0C,0x00,0x18,0x1C,0x00,0x0C,0x18,0x00,0x0C, 0x38,0x00,0x04,0x38,0x00,0x00,0x30,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70, 0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00, 0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x38,0x00,0x04,0x38,0x00,0x0C, 0x38,0x00,0x08,0x1C,0x00,0x08,0x1C,0x00,0x18,0x0E,0x00,0x30,0x0F,0x00,0x60,0x07, 0x81,0xC0,0x01,0xFF,0x80,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x24 [ D ] [ 36 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xF0,0x00,0x1C,0x0E,0x00,0x1C,0x03, 0x00,0x1C,0x01,0x80,0x1C,0x00,0xC0,0x1C,0x00,0xE0,0x1C,0x00,0x60,0x1C,0x00,0x70, 0x1C,0x00,0x70,0x1C,0x00,0x30,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C, 0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00, 0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x30,0x1C,0x00,0x70,0x1C,0x00,0x70, 0x1C,0x00,0x70,0x1C,0x00,0x60,0x1C,0x00,0xE0,0x1C,0x01,0xC0,0x1C,0x01,0x80,0x1C, 0x07,0x00,0x1C,0x1E,0x00,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x25 [ E ] [ 37 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xC0,0x1C,0x01,0xC0,0x1C,0x00, 0xE0,0x1C,0x00,0x60,0x1C,0x00,0x20,0x1C,0x00,0x30,0x1C,0x00,0x10,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x01,0x00,0x1C,0x01,0x00,0x1C,0x01,0x00,0x1C,0x01,0x00,0x1C, 0x03,0x00,0x1F,0xFF,0x00,0x1C,0x07,0x00,0x1C,0x03,0x00,0x1C,0x01,0x00,0x1C,0x01, 0x00,0x1C,0x01,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x08,0x1C,0x00,0x08,0x1C,0x00,0x10,0x1C,0x00,0x10,0x1C,0x00,0x30,0x1C, 0x00,0x70,0x1C,0x01,0xE0,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x26 [ F ] [ 38 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xF0,0x1C,0x00,0xF0,0x1C,0x00, 0x78,0x1C,0x00,0x18,0x1C,0x00,0x08,0x1C,0x00,0x0C,0x1C,0x00,0x04,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x80,0x1C,0x00,0x80,0x1C,0x00,0x80,0x1C, 0x00,0x80,0x1C,0x01,0x80,0x1F,0xFF,0x80,0x1C,0x03,0x80,0x1C,0x01,0x80,0x1C,0x00, 0x80,0x1C,0x00,0x80,0x1C,0x00,0x80,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C, 0x00,0x00,0x1C,0x00,0x00,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x27 [ G ] [ 39 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x40,0x03,0x87,0xC0,0x06,0x01, 0xC0,0x0C,0x01,0xC0,0x1C,0x00,0xC0,0x18,0x00,0x40,0x38,0x00,0x60,0x30,0x00,0x60, 0x70,0x00,0x20,0x70,0x00,0x00,0x60,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0, 0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x07, 0xFC,0xE0,0x01,0xF0,0xE0,0x00,0xE0,0x60,0x00,0xE0,0x70,0x00,0xE0,0x70,0x00,0xE0, 0x70,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x18,0x00,0xE0,0x0C,0x00,0xE0,0x0E, 0x01,0xE0,0x03,0x83,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x28 [ H ] [ 40 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x07,0xFC,0x38,0x00,0xE0,0x38,0x00, 0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0, 0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38, 0x00,0xE0,0x38,0x00,0xE0,0x3F,0xFF,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00, 0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0, 0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38, 0x00,0xE0,0x38,0x00,0xE0,0xFF,0x07,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x29 [ I ] [ 41 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xE0,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x0F,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2A [ J ] [ 42 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFF,0xFC,0x00,0x07,0x00,0x00,0x07, 0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00, 0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00, 0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07, 0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00, 0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x00, 0x07,0x00,0x00,0x07,0x00,0x00,0x07,0x00,0x30,0x06,0x00,0x78,0x06,0x00,0x78,0x0C, 0x00,0x78,0x1C,0x00,0x38,0x30,0x00,0x0F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2B [ K ] [ 43 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x8F,0xF8,0x1C,0x01,0xE0,0x1C,0x01, 0xC0,0x1C,0x03,0x80,0x1C,0x03,0x00,0x1C,0x06,0x00,0x1C,0x0E,0x00,0x1C,0x1C,0x00, 0x1C,0x18,0x00,0x1C,0x30,0x00,0x1C,0x70,0x00,0x1C,0x60,0x00,0x1C,0xE0,0x00,0x1D, 0xF0,0x00,0x1D,0xF0,0x00,0x1F,0x78,0x00,0x1F,0x38,0x00,0x1E,0x3C,0x00,0x1C,0x1C, 0x00,0x1C,0x1E,0x00,0x1C,0x0E,0x00,0x1C,0x0E,0x00,0x1C,0x07,0x00,0x1C,0x07,0x00, 0x1C,0x03,0x80,0x1C,0x03,0x80,0x1C,0x03,0xC0,0x1C,0x01,0xC0,0x1C,0x01,0xE0,0x1C, 0x00,0xE0,0x1C,0x00,0xF0,0xFF,0x83,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2C [ L ] [ 44 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xC0,0x00,0x0E,0x00,0x00,0x0E,0x00, 0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00, 0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E, 0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00, 0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00,0x0E,0x00,0x00, 0x0E,0x00,0x04,0x0E,0x00,0x04,0x0E,0x00,0x0C,0x0E,0x00,0x08,0x0E,0x00,0x18,0x0E, 0x00,0x38,0x0E,0x00,0xF8,0x7F,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2D [ M ] [ 45 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0xFE,0x3C,0x01,0xF0,0x3C,0x01, 0xF0,0x3C,0x01,0xF0,0x3C,0x01,0xF0,0x3C,0x01,0x70,0x2E,0x03,0x70,0x2E,0x03,0x70, 0x2E,0x03,0x70,0x2E,0x03,0x70,0x2F,0x06,0x70,0x27,0x06,0x70,0x27,0x06,0x70,0x27, 0x06,0x70,0x27,0x04,0x70,0x23,0x8C,0x70,0x23,0x8C,0x70,0x23,0x8C,0x70,0x23,0x88, 0x70,0x23,0xC8,0x70,0x21,0xD8,0x70,0x21,0xD8,0x70,0x21,0xD0,0x70,0x21,0xF0,0x70, 0x20,0xF0,0x70,0x20,0xF0,0x70,0x20,0xF0,0x70,0x20,0xE0,0x70,0x20,0xE0,0x70,0x20, 0x60,0x70,0x20,0x60,0x70,0xFC,0x43,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2E [ N ] [ 46 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0xFE,0x1C,0x00,0x10,0x1E,0x00, 0x10,0x1F,0x00,0x10,0x17,0x00,0x10,0x17,0x80,0x10,0x13,0x80,0x10,0x13,0xC0,0x10, 0x11,0xC0,0x10,0x11,0xE0,0x10,0x10,0xE0,0x10,0x10,0xF0,0x10,0x10,0x70,0x10,0x10, 0x78,0x10,0x10,0x38,0x10,0x10,0x3C,0x10,0x10,0x1C,0x10,0x10,0x1E,0x10,0x10,0x0E, 0x10,0x10,0x07,0x10,0x10,0x07,0x10,0x10,0x03,0x90,0x10,0x03,0xD0,0x10,0x01,0xD0, 0x10,0x01,0xF0,0x10,0x00,0xF0,0x10,0x00,0xF0,0x10,0x00,0x70,0x10,0x00,0x70,0x10, 0x00,0x30,0x10,0x00,0x30,0xFE,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x2F [ O ] [ 47 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x01,0x83,0x00,0x07,0x00, 0xC0,0x06,0x00,0xC0,0x0C,0x00,0x60,0x1C,0x00,0x70,0x18,0x00,0x30,0x38,0x00,0x38, 0x38,0x00,0x38,0x30,0x00,0x18,0x70,0x00,0x18,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70, 0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00, 0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x30,0x00,0x18,0x30,0x00,0x18,0x38,0x00,0x38, 0x38,0x00,0x38,0x18,0x00,0x30,0x1C,0x00,0x30,0x0C,0x00,0x60,0x06,0x00,0xC0,0x03, 0x01,0x80,0x01,0x83,0x00,0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x30 [ P ] [ 48 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x1C,0x03,0x80,0x1C,0x00, 0xE0,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38, 0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x70,0x1C, 0x00,0x60,0x1C,0x00,0xE0,0x1C,0x03,0x80,0x1F,0xFE,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C, 0x00,0x00,0x1C,0x00,0x00,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x31 [ Q ] [ 49 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x03,0x83,0x00,0x07,0x00, 0xC0,0x0E,0x00,0x60,0x0C,0x00,0x60,0x1C,0x00,0x30,0x18,0x00,0x30,0x38,0x00,0x38, 0x38,0x00,0x38,0x30,0x00,0x18,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70, 0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00, 0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x70,0x00,0x1C,0x38,0xF0,0x18,0x39,0xFC,0x38, 0x3B,0x1C,0x38,0x3E,0x0E,0x30,0x1E,0x0E,0x70,0x0E,0x07,0x60,0x0E,0x07,0xE0,0x07, 0x07,0xC0,0x01,0x87,0x80,0x00,0x7F,0x88,0x00,0x03,0x88,0x00,0x03,0xF0,0x00,0x01, 0xF0,0x00,0x00,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x32 [ R ] [ 50 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFE,0x00,0x1C,0x07,0x80,0x1C,0x01, 0xC0,0x1C,0x00,0xE0,0x1C,0x00,0xF0,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x70, 0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C, 0x01,0xC0,0x1C,0x07,0x80,0x1F,0xFE,0x00,0x1C,0x3C,0x00,0x1C,0x1C,0x00,0x1C,0x1C, 0x00,0x1C,0x1E,0x00,0x1C,0x0E,0x00,0x1C,0x0F,0x00,0x1C,0x07,0x00,0x1C,0x07,0x00, 0x1C,0x03,0x80,0x1C,0x03,0x80,0x1C,0x03,0xC0,0x1C,0x01,0xC0,0x1C,0x01,0xC0,0x1C, 0x00,0xE0,0x1C,0x00,0xF0,0xFF,0x80,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x33 [ S ] [ 51 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x20,0x06,0x07,0xE0,0x1C,0x01, 0xE0,0x18,0x00,0xE0,0x38,0x00,0xE0,0x70,0x00,0x60,0x70,0x00,0x60,0x70,0x00,0x20, 0x70,0x00,0x00,0x70,0x00,0x00,0x78,0x00,0x00,0x3C,0x00,0x00,0x1F,0x00,0x00,0x0F, 0xC0,0x00,0x07,0xF0,0x00,0x01,0xFC,0x00,0x00,0x7F,0x00,0x00,0x0F,0x80,0x00,0x07, 0xC0,0x00,0x01,0xE0,0x00,0x00,0xE0,0x00,0x00,0xF0,0x40,0x00,0x70,0x60,0x00,0x70, 0x60,0x00,0x70,0x60,0x00,0x70,0x30,0x00,0x70,0x30,0x00,0xE0,0x38,0x00,0xC0,0x3C, 0x01,0xC0,0x3F,0x03,0x00,0x21,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x34 [ T ] [ 52 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xFF,0xF0,0x70,0x70,0x70,0x60,0x70, 0x30,0x60,0x70,0x10,0x40,0x70,0x10,0xC0,0x70,0x18,0x80,0x70,0x08,0x00,0x70,0x00, 0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00, 0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70, 0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00, 0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00, 0x70,0x00,0x00,0x70,0x00,0x03,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x35 [ U ] [ 53 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x01,0xFC,0x38,0x00,0x20,0x38,0x00, 0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20, 0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38, 0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00, 0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x20, 0x38,0x00,0x20,0x38,0x00,0x20,0x38,0x00,0x60,0x1C,0x00,0x40,0x1C,0x00,0xC0,0x0F, 0x03,0x80,0x07,0xFF,0x00,0x01,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x36 [ V ] [ 54 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0xFE,0x3C,0x00,0x78,0x1C,0x00, 0x30,0x1C,0x00,0x30,0x1C,0x00,0x60,0x0E,0x00,0x60,0x0E,0x00,0x60,0x0E,0x00,0x60, 0x0F,0x00,0xC0,0x07,0x00,0xC0,0x07,0x00,0xC0,0x07,0x00,0xC0,0x03,0x81,0x80,0x03, 0x81,0x80,0x03,0x81,0x80,0x03,0xC1,0x00,0x01,0xC3,0x00,0x01,0xC3,0x00,0x01,0xC3, 0x00,0x00,0xE2,0x00,0x00,0xE6,0x00,0x00,0xE6,0x00,0x00,0xE6,0x00,0x00,0x74,0x00, 0x00,0x7C,0x00,0x00,0x7C,0x00,0x00,0x78,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x10,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x37 [ W ] [ 55 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFE,0xFC,0x70,0x78,0x30,0x70,0x38, 0x30,0x70,0x38,0x30,0x70,0x38,0x30,0x70,0x38,0x60,0x70,0x38,0x60,0x78,0x1C,0x60, 0x38,0x1C,0x60,0x38,0x3C,0x60,0x38,0x3C,0x60,0x38,0x3C,0x40,0x38,0x3C,0xC0,0x38, 0x7C,0xC0,0x3C,0x6E,0xC0,0x1C,0x4E,0xC0,0x1C,0xCE,0xC0,0x1C,0xCE,0x80,0x1C,0x8E, 0x80,0x1C,0x8E,0x80,0x1D,0x8F,0x80,0x1F,0x87,0x80,0x0F,0x07,0x80,0x0F,0x07,0x00, 0x0F,0x07,0x00,0x0F,0x07,0x00,0x0E,0x07,0x00,0x0E,0x07,0x00,0x0E,0x03,0x00,0x06, 0x02,0x00,0x04,0x02,0x00,0x04,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x38 [ X ] [ 56 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x83,0xF8,0x1E,0x00,0xE0,0x0E,0x00, 0xC0,0x0E,0x00,0x80,0x07,0x01,0x80,0x07,0x01,0x00,0x07,0x83,0x00,0x03,0x82,0x00, 0x03,0xC6,0x00,0x01,0xC4,0x00,0x01,0xEC,0x00,0x00,0xEC,0x00,0x00,0xF8,0x00,0x00, 0x78,0x00,0x00,0x70,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x7C,0x00,0x00,0x5C, 0x00,0x00,0xDE,0x00,0x00,0x8E,0x00,0x01,0x8E,0x00,0x01,0x07,0x00,0x03,0x07,0x00, 0x02,0x03,0x80,0x06,0x03,0x80,0x04,0x03,0xC0,0x0C,0x01,0xC0,0x08,0x01,0xE0,0x18, 0x00,0xE0,0x38,0x00,0xF0,0xFE,0x03,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x39 [ Y ] [ 57 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x07,0xF8,0x3C,0x01,0xE0,0x3C,0x00, 0xC0,0x1C,0x01,0xC0,0x1C,0x01,0x80,0x0E,0x01,0x80,0x0E,0x03,0x00,0x0F,0x03,0x00, 0x07,0x03,0x00,0x07,0x06,0x00,0x03,0x86,0x00,0x03,0x8E,0x00,0x03,0xCC,0x00,0x01, 0xCC,0x00,0x01,0xDC,0x00,0x01,0xF8,0x00,0x00,0xF8,0x00,0x00,0xF0,0x00,0x00,0x70, 0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00, 0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00, 0x70,0x00,0x00,0x70,0x00,0x03,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3A [ Z ] [ 58 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xFF,0xF8,0x0F,0x00,0x70,0x1C,0x00, 0xF0,0x18,0x00,0xE0,0x18,0x01,0xE0,0x30,0x01,0xC0,0x20,0x03,0xC0,0x00,0x03,0x80, 0x00,0x07,0x80,0x00,0x07,0x00,0x00,0x0F,0x00,0x00,0x0E,0x00,0x00,0x1E,0x00,0x00, 0x1C,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x70,0x00,0x00,0x70,0x00,0x00,0xE0, 0x00,0x00,0xE0,0x00,0x01,0xC0,0x00,0x03,0xC0,0x00,0x03,0x80,0x00,0x07,0x80,0x00, 0x07,0x00,0x08,0x0F,0x00,0x18,0x0E,0x00,0x10,0x1E,0x00,0x30,0x1C,0x00,0x30,0x3C, 0x00,0x70,0x38,0x01,0xE0,0x7F,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3B [ [ ] [ 59 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xE0,0x00,0xFF,0xE0,0x00, 0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0, 0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00, 0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00, 0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0, 0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00, 0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00, 0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xC0, 0x00,0x00,0xFF,0xE0,0x00,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3C [ \ ] [ 60 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x0C,0x00,0x00,0x0C,0x00,0x00,0x0E,0x00, 0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x03,0x00,0x00,0x03,0x00,0x00,0x03,0x80,0x00, 0x01,0x80,0x00,0x01,0x80,0x00,0x00,0xC0,0x00,0x00,0xC0,0x00,0x00,0xE0,0x00,0x00, 0x60,0x00,0x00,0x60,0x00,0x00,0x70,0x00,0x00,0x30,0x00,0x00,0x38,0x00,0x00,0x18, 0x00,0x00,0x18,0x00,0x00,0x1C,0x00,0x00,0x0C,0x00,0x00,0x0E,0x00,0x00,0x06,0x00, 0x00,0x06,0x00,0x00,0x07,0x00,0x00,0x03,0x00,0x00,0x03,0x80,0x00,0x01,0x80,0x00, 0x01,0x80,0x00,0x01,0xC0,0x00,0x00,0xC0,0x00,0x00,0xE0,0x00,0x00,0x60,0x00,0x00, 0x60,0x00,0x00,0x70,0x00,0x00,0x30,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3D [ ] ] [ 61 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x00, 0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18, 0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00, 0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00, 0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18, 0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00, 0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00, 0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18,0x00,0x00,0x18, 0x00,0x3F,0xF8,0x00,0x3F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3E [ ^ ] [ 62 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7C,0x00,0x00,0xFE,0x00,0x01, 0xEF,0x00,0x01,0x83,0x00,0x03,0x01,0x80,0x04,0x00,0x40,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3F [ _ ] [ 63 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFE,0xFF,0xFF,0xFE, /* 0x40 [ ` ] [ 64 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x80,0x00,0x07,0xC0,0x00,0x01, 0xE0,0x00,0x00,0x70,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x41 [ a ] [ 65 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x00,0x06,0x07,0x00,0x1C, 0x03,0x80,0x38,0x01,0xC0,0x38,0x01,0xC0,0x38,0x01,0xC0,0x38,0x01,0xC0,0x00,0x01, 0xC0,0x00,0x1F,0xC0,0x01,0xF1,0xC0,0x0F,0x01,0xC0,0x1C,0x01,0xC0,0x38,0x01,0xC0, 0x38,0x01,0xC0,0x70,0x01,0xC0,0x70,0x01,0xC0,0x70,0x01,0xC4,0x70,0x01,0xC4,0x38, 0x07,0xCC,0x1C,0x19,0xF8,0x07,0xE0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x42 [ b ] [ 66 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x0C,0x00,0x00,0xFC,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x3E,0x00,0x1C,0xFF,0x80,0x1D, 0xC3,0xC0,0x1F,0x01,0xE0,0x1F,0x00,0xE0,0x1E,0x00,0xE0,0x1C,0x00,0x70,0x1C,0x00, 0x70,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x70, 0x1C,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x60,0x1C,0x00,0xE0,0x1E,0x00,0xC0,0x1E, 0x01,0x80,0x1B,0x83,0x00,0x10,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x43 [ c ] [ 67 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x01,0x83,0x80,0x07, 0x01,0xC0,0x0E,0x00,0xE0,0x0C,0x01,0xE0,0x1C,0x01,0xE0,0x1C,0x01,0xE0,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x1C,0x00,0x10,0x1C,0x00,0x30,0x1E,0x00,0x20,0x0E,0x00,0x60,0x07, 0x81,0xC0,0x03,0xFF,0x80,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x44 [ d ] [ 68 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x60,0x00,0x07,0xE0,0x00,0x00,0xE0,0x00,0x00, 0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0, 0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0xF8,0xE0,0x03,0x86,0xE0,0x06, 0x01,0xE0,0x0E,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x18,0x00,0xE0,0x38,0x00, 0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0,0x38,0x00,0xE0, 0x38,0x00,0xE0,0x38,0x00,0xE0,0x1C,0x01,0xE0,0x1C,0x01,0xE0,0x0E,0x03,0xE0,0x07, 0x06,0xE0,0x03,0xFC,0xFC,0x01,0xF8,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x45 [ e ] [ 69 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x03,0x83,0x00,0x06, 0x01,0xC0,0x0C,0x00,0xE0,0x0C,0x00,0xE0,0x18,0x00,0x60,0x18,0x00,0x70,0x38,0x00, 0x70,0x38,0x00,0x70,0x3F,0xFF,0xF0,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x20,0x1E,0x00,0x60,0x0E,0x00,0xC0,0x07, 0x81,0x80,0x03,0xFF,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x46 [ f ] [ 70 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0xC0,0x00,0x30,0x70,0x00,0x60, 0x78,0x00,0xE0,0x78,0x00,0xC0,0x78,0x01,0xC0,0x70,0x01,0xC0,0x00,0x01,0xC0,0x00, 0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x7F,0xFF,0xC0,0x01,0xC0,0x00,0x01, 0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0, 0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00, 0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01, 0xC0,0x00,0x01,0xC0,0x00,0x3F,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x47 [ g ] [ 71 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xFC,0x38,0x03,0x07,0xFC,0x06, 0x03,0x9C,0x0E,0x03,0x8C,0x0C,0x01,0xC0,0x1C,0x01,0xC0,0x1C,0x01,0xC0,0x1C,0x01, 0xC0,0x1C,0x01,0xC0,0x1C,0x01,0xC0,0x0E,0x03,0x80,0x06,0x03,0x00,0x03,0x07,0x00, 0x0C,0xFC,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1F,0x80,0x00,0x0F,0xFE,0x00,0x07, 0xFF,0xC0,0x0C,0x1F,0xE0,0x18,0x00,0xF0,0x38,0x00,0x70,0x38,0x00,0x70,0x38,0x00, 0x70,0x38,0x00,0x60,0x1C,0x00,0xE0,0x0F,0x03,0xC0,0x01,0xFE,0x00,0x00,0x00,0x00, /* 0x48 [ h ] [ 72 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x0C,0x00,0x00,0xFC,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x3F,0x00,0x1C,0xFF,0x80,0x1D, 0xC3,0xC0,0x1F,0x01,0xE0,0x1E,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00, 0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0, 0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C, 0x00,0xE0,0x1C,0x00,0xE0,0xFF,0x87,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x49 [ i ] [ 73 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x7C,0x00,0x00,0x7C, 0x00,0x00,0x7C,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x0F,0xF8,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x0F,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x4A [ j ] [ 74 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xC0,0x00,0x03,0xE0,0x00,0x03, 0xE0,0x00,0x03,0xE0,0x00,0x01,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x3F,0xC0,0x00,0x01,0xC0,0x00, 0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01, 0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0, 0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00, 0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x0C,0x03, 0x80,0x1E,0x03,0x80,0x1F,0x0F,0x00,0x0F,0xFC,0x00,0x07,0xF0,0x00,0x00,0x00,0x00, /* 0x4B [ k ] [ 75 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x04,0x00,0x00,0x0C,0x00,0x00,0xFC,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x0F,0xF0,0x1C,0x0F,0xF0,0x1C, 0x03,0x00,0x1C,0x06,0x00,0x1C,0x0C,0x00,0x1C,0x1C,0x00,0x1C,0x38,0x00,0x1C,0x70, 0x00,0x1C,0xF0,0x00,0x1C,0xF8,0x00,0x1D,0xF8,0x00,0x1F,0x9C,0x00,0x1F,0x1E,0x00, 0x1E,0x0E,0x00,0x1C,0x0F,0x00,0x1C,0x07,0x00,0x1C,0x07,0x80,0x1C,0x03,0xC0,0x1C, 0x01,0xC0,0x1C,0x01,0xE0,0xFF,0x87,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x4C [ l ] [ 76 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x08,0x00,0x00,0x38,0x00,0x0F,0xF8,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38, 0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00, 0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x0F,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x4D [ m ] [ 77 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0xF3,0xE3,0xC0,0x77,0xE7,0xE0,0x7C, 0x7C,0x70,0x78,0x78,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70, 0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70, 0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70,0x70, 0x70,0x70,0x70,0x70,0x70,0xFD,0xFD,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x4E [ n ] [ 78 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0xFC,0x3F,0x00,0x1C,0xFF,0x80,0x1D, 0xC3,0xC0,0x1F,0x81,0xE0,0x1E,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00, 0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0, 0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C, 0x00,0xE0,0x1C,0x00,0xE0,0xFF,0x87,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x4F [ o ] [ 79 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0x00,0x03,0x87,0x00,0x06, 0x01,0xC0,0x0C,0x00,0xE0,0x18,0x00,0x60,0x38,0x00,0x70,0x38,0x00,0x70,0x70,0x00, 0x38,0x70,0x00,0x38,0x70,0x00,0x38,0x70,0x00,0x38,0x70,0x00,0x38,0x70,0x00,0x38, 0x70,0x00,0x38,0x30,0x00,0x30,0x38,0x00,0x70,0x18,0x00,0x60,0x1C,0x00,0xE0,0x0E, 0x01,0xC0,0x03,0x03,0x00,0x00,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x50 [ p ] [ 80 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0xFC,0x3E,0x00,0x1C,0xFF,0x80,0x1D, 0xC1,0xE0,0x1F,0x00,0xE0,0x1E,0x00,0x70,0x1C,0x00,0x70,0x1C,0x00,0x38,0x1C,0x00, 0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38,0x1C,0x00,0x38, 0x1C,0x00,0x38,0x1C,0x00,0x30,0x1C,0x00,0x70,0x1C,0x00,0x70,0x1E,0x00,0xE0,0x1F, 0x01,0xC0,0x1D,0x83,0x80,0x1C,0x7E,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0xFF,0x80,0x00,0x00,0x00,0x00, /* 0x51 [ q ] [ 81 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF0,0x40,0x07,0x0C,0xC0,0x0C, 0x03,0xC0,0x1C,0x03,0xC0,0x38,0x01,0xC0,0x38,0x01,0xC0,0x30,0x01,0xC0,0x70,0x01, 0xC0,0x70,0x01,0xC0,0x70,0x01,0xC0,0x70,0x01,0xC0,0x70,0x01,0xC0,0x70,0x01,0xC0, 0x70,0x01,0xC0,0x70,0x01,0xC0,0x38,0x01,0xC0,0x38,0x03,0xC0,0x1C,0x03,0xC0,0x1E, 0x0F,0xC0,0x07,0xFD,0xC0,0x03,0xF1,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01, 0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x01,0xC0,0x00,0x0F,0xF8,0x00,0x00,0x00, /* 0x52 [ r ] [ 82 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x7F,0x81,0xE0,0x03,0x87,0xF8,0x03, 0x8C,0x78,0x03,0x98,0x78,0x03,0xB0,0x70,0x03,0xE0,0x00,0x03,0xC0,0x00,0x03,0xC0, 0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00, 0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03,0x80,0x00,0x03, 0x80,0x00,0x03,0x80,0x00,0x7F,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x53 [ s ] [ 83 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x03,0x81,0xE0,0x07, 0x00,0x70,0x0E,0x00,0x30,0x0E,0x00,0x30,0x0E,0x00,0x10,0x0E,0x00,0x00,0x0F,0x80, 0x00,0x07,0xE0,0x00,0x01,0xFC,0x00,0x00,0x7F,0x80,0x00,0x0F,0xE0,0x00,0x03,0xF0, 0x00,0x00,0x78,0x10,0x00,0x78,0x18,0x00,0x38,0x18,0x00,0x38,0x1C,0x00,0x38,0x1E, 0x00,0x70,0x1F,0x80,0xE0,0x08,0x7F,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x54 [ t ] [ 84 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x60,0x00, 0x00,0x60,0x00,0x00,0xE0,0x00,0x03,0xE0,0x00,0x3F,0xFF,0xE0,0x00,0xE0,0x00,0x00, 0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0, 0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x00, 0x00,0xE0,0x00,0x00,0xE0,0x00,0x00,0xE0,0x10,0x00,0xE0,0x10,0x00,0xF0,0x20,0x00, 0x70,0x60,0x00,0x3F,0xC0,0x00,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x55 [ u ] [ 85 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x20,0xFC,0x07,0xE0,0x1C,0x00,0xE0,0x1C, 0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00, 0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0, 0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x00,0xE0,0x1C,0x01,0xE0,0x1E,0x03,0xE0,0x0F, 0x06,0xE0,0x07,0xFC,0xFC,0x03,0xF0,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x56 [ v ] [ 86 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0xC3,0xFC,0x1F,0x00,0xF0,0x0E, 0x00,0x60,0x0F,0x00,0xE0,0x07,0x00,0xC0,0x07,0x00,0xC0,0x03,0x81,0x80,0x03,0x81, 0x80,0x03,0xC1,0x80,0x01,0xC3,0x00,0x01,0xC3,0x00,0x01,0xE3,0x00,0x00,0xE6,0x00, 0x00,0xE6,0x00,0x00,0x74,0x00,0x00,0x7C,0x00,0x00,0x7C,0x00,0x00,0x38,0x00,0x00, 0x38,0x00,0x00,0x38,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x57 [ w ] [ 87 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC,0xFE,0xFE,0x78,0x3C,0x38,0x78, 0x38,0x30,0x38,0x38,0x30,0x38,0x3C,0x30,0x38,0x3C,0x30,0x38,0x7C,0x60,0x1C,0x7E, 0x60,0x1C,0x6E,0x60,0x1C,0xCE,0x60,0x1C,0xCE,0xC0,0x0E,0xCF,0xC0,0x0F,0xC7,0xC0, 0x0F,0x87,0xC0,0x0F,0x87,0x80,0x07,0x83,0x80,0x07,0x03,0x80,0x07,0x03,0x80,0x07, 0x03,0x80,0x02,0x01,0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x58 [ x ] [ 88 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0xC7,0xF0,0x0F,0x81,0x80,0x07, 0x81,0x80,0x03,0x83,0x00,0x03,0xC2,0x00,0x01,0xC6,0x00,0x00,0xEC,0x00,0x00,0xFC, 0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x38,0x00,0x00,0x7C,0x00,0x00,0x5C,0x00, 0x00,0xCE,0x00,0x01,0x8F,0x00,0x01,0x07,0x00,0x03,0x07,0x80,0x06,0x03,0x80,0x06, 0x03,0xC0,0x0E,0x01,0xE0,0x7F,0x0F,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x59 [ y ] [ 89 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x87,0xF8,0x1E,0x01,0xC0,0x0E, 0x01,0xC0,0x0F,0x01,0x80,0x07,0x01,0x80,0x07,0x03,0x00,0x07,0x83,0x00,0x03,0x83, 0x00,0x03,0xC6,0x00,0x01,0xC6,0x00,0x01,0xC6,0x00,0x01,0xEC,0x00,0x00,0xEC,0x00, 0x00,0xEC,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x78,0x00,0x00,0x30,0x00,0x00, 0x30,0x00,0x00,0x30,0x00,0x00,0x20,0x00,0x00,0x60,0x00,0x00,0x60,0x00,0x00,0x40, 0x00,0x18,0xC0,0x00,0x3C,0x80,0x00,0x3F,0x00,0x00,0x1E,0x00,0x00,0x00,0x00,0x00, /* 0x5A [ z ] [ 90 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xC0,0x1C,0x03,0x80,0x38, 0x07,0x80,0x30,0x07,0x00,0x30,0x0E,0x00,0x20,0x1E,0x00,0x20,0x1C,0x00,0x00,0x3C, 0x00,0x00,0x78,0x00,0x00,0x70,0x00,0x00,0xF0,0x00,0x01,0xE0,0x00,0x01,0xC0,0x00, 0x03,0xC0,0x20,0x03,0x80,0x20,0x07,0x80,0x60,0x0F,0x00,0x40,0x0E,0x00,0xC0,0x1E, 0x00,0xC0,0x3C,0x01,0xC0,0x3F,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x5B [ { ] [ 91 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x00,0x01,0x80,0x00, 0x03,0x00,0x00,0x02,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06, 0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00, 0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00, 0x06,0x00,0x00,0x0C,0x00,0x00,0x18,0x00,0x00,0x60,0x00,0x00,0x18,0x00,0x00,0x0C, 0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00, 0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00, 0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x03, 0x00,0x00,0x01,0x80,0x00,0x00,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x5C [ | ] [ 92 ] */ 0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00, 0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20, 0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00, 0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00, 0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20, 0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00, 0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00, 0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20, 0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x20,0x00, /* 0x5D [ } ] [ 93 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x00,0x00,0x06,0x00,0x00,0x03, 0x00,0x00,0x01,0x00,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80, 0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00, 0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01, 0x80,0x00,0x00,0xC0,0x00,0x00,0x60,0x00,0x00,0x18,0x00,0x00,0x60,0x00,0x00,0xC0, 0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00, 0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01, 0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x01,0x80,0x00,0x03,0x00, 0x00,0x06,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x5E [ ~ ] [ 94 ] */ 0x07,0x80,0x00,0x1F,0xC0,0x00,0x10,0xE0,0x04,0x20,0x70,0x04,0x20,0x38,0x08,0x40, 0x1C,0x08,0x40,0x0F,0x10,0x00,0x07,0xF0,0x00,0x03,0xC0,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, }; #endif
wakwak-koba/M5GFX
src/lgfx/utility/lgfx_pngle.h
/*- * MIT License * * Copyright (c) 2019 kikuchan * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /*----------------------------------------------------------------------------/ / original source is here : https://github.com/kikuchan/pngle/ / / Modified for LGFX by lovyan03, 2020 / tweak for 32bit processor /----------------------------------------------------------------------------*/ #ifndef __LGFX_PNGLE_H__ #define __LGFX_PNGLE_H__ #define PNGLE_NO_GAMMA_CORRECTION 1 #include <stdint.h> #ifdef __cplusplus extern "C" { #endif // Main Pngle object typedef struct _pngle_t pngle_t; // Callback signatures typedef void (*pngle_init_callback_t)(pngle_t *pngle, uint32_t w, uint32_t h, uint_fast8_t hasTransparent); typedef void (*pngle_draw_callback_t)(pngle_t *pngle, uint32_t x, uint32_t y, uint8_t rgba[4]); typedef void (*pngle_done_callback_t)(pngle_t *pngle); // ---------------- // Basic interfaces // ---------------- pngle_t *lgfx_pngle_new(); void lgfx_pngle_destroy(pngle_t *pngle); void lgfx_pngle_reset(pngle_t *pngle); // clear its internal state (not applied to pngle_set_* functions) const char *lgfx_pngle_error(pngle_t *pngle); int lgfx_pngle_feed(pngle_t *pngle, const void *buf, size_t len); // returns -1: On error, 0: Need more data, n: n bytes eaten uint32_t lgfx_pngle_get_width(pngle_t *pngle); uint32_t lgfx_pngle_get_height(pngle_t *pngle); void lgfx_pngle_set_init_callback(pngle_t *png, pngle_init_callback_t callback); void lgfx_pngle_set_draw_callback(pngle_t *png, pngle_draw_callback_t callback); void lgfx_pngle_set_done_callback(pngle_t *png, pngle_done_callback_t callback); void lgfx_pngle_set_display_gamma(pngle_t *pngle, double display_gamma); // enables gamma correction by specifying display gamma, typically 2.2. No effect when gAMA chunk is missing void lgfx_pngle_set_user_data(pngle_t *pngle, void *user_data); void *lgfx_pngle_get_user_data(pngle_t *pngle); // ---------------- // Debug interfaces // ---------------- typedef struct _pngle_ihdr_t { uint32_t width; uint32_t height; uint_fast8_t depth; uint_fast8_t color_type; uint_fast8_t compression; uint_fast8_t filter; uint_fast8_t interlace; } pngle_ihdr_t; // Get IHDR information pngle_ihdr_t *lgfx_pngle_get_ihdr(pngle_t *pngle); #ifdef __cplusplus } #endif #endif /* __PNGLE_H__ */
wakwak-koba/M5GFX
src/lgfx/Fonts/Font8x8C64.h
/* * * original source : https://github.com/hugovangalen/C64_Font8x8 * * modify by lovyan03 * */ #ifndef FONT8x8_C64_H #define FONT8x8_C64_H /* C64 font */ const uint8_t font8x8_c64 [] PROGMEM = { /* */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ! */ 0x00,0x00,0x00,0x00,0x4f,0x4f,0x00,0x00, /* " */ 0x00,0x00,0x07,0x07,0x00,0x00,0x07,0x07, /* # */ 0x00,0x14,0x7f,0x7f,0x14,0x14,0x7f,0x7f, /* $ */ 0x00,0x00,0x24,0x2e,0x6b,0x6b,0x3a,0x12, /* % */ 0x00,0x00,0x63,0x33,0x18,0x0c,0x66,0x63, /* & */ 0x00,0x00,0x32,0x7f,0x4d,0x4d,0x77,0x72, /* flipped backtick! */ 0x00,0x00,0x00,0x00,0x04,0x06,0x03,0x01, /* ( */ 0x00,0x00,0x00,0x1c,0x3e,0x63,0x41,0x00, /* ) */ 0x00,0x00,0x00,0x41,0x63,0x3e,0x1c,0x00, /* * */ 0x00,0x08,0x2a,0x3e,0x1c,0x1c,0x3e,0x2a, /* + */ 0x00,0x00,0x08,0x08,0x3e,0x3e,0x08,0x08, /* , */ 0x00,0x00,0x00,0x80,0xe0,0x60,0x00,0x00, /* - */ 0x00,0x00,0x08,0x08,0x08,0x08,0x08,0x08, /* . */ 0x00,0x00,0x00,0x00,0x60,0x60,0x00,0x00, /* / */ 0x00,0x00,0x40,0x60,0x30,0x18,0x0c,0x06, /* 0 */ 0x00,0x00,0x3e,0x7f,0x49,0x45,0x7f,0x3e, /* 1 */ 0x00,0x00,0x40,0x44,0x7f,0x7f,0x40,0x40, /* 2 */ 0x00,0x00,0x62,0x73,0x51,0x49,0x4f,0x46, /* 3 */ 0x00,0x00,0x22,0x63,0x49,0x49,0x7f,0x36, /* 4 */ 0x00,0x00,0x18,0x18,0x14,0x16,0x7f,0x7f, /* 5 */ 0x00,0x00,0x27,0x67,0x45,0x45,0x7d,0x39, /* 6 */ 0x00,0x00,0x3e,0x7f,0x49,0x49,0x7b,0x32, /* 7 */ 0x00,0x00,0x03,0x03,0x79,0x7d,0x07,0x03, /* 8 */ 0x00,0x00,0x36,0x7f,0x49,0x49,0x7f,0x36, /* 9 */ 0x00,0x00,0x26,0x6f,0x49,0x49,0x7f,0x3e, /* : */ 0x00,0x00,0x00,0x00,0x24,0x24,0x00,0x00, /* ; */ 0x00,0x00,0x00,0x80,0xe4,0x64,0x00,0x00, /* < */ 0x00,0x00,0x08,0x1c,0x36,0x63,0x41,0x41, /* = */ 0x00,0x00,0x14,0x14,0x14,0x14,0x14,0x14, /* > */ 0x00,0x00,0x41,0x41,0x63,0x36,0x1c,0x08, /* ? */ 0x00,0x00,0x02,0x03,0x51,0x59,0x0f,0x06, /* @ */ 0x00,0x00,0x3e,0x7f,0x41,0x4d,0x4f,0x2e, /* A */ 0x00,0x00,0x7c,0x7e,0x0b,0x0b,0x7e,0x7c, /* B */ 0x00,0x00,0x7f,0x7f,0x49,0x49,0x7f,0x36, /* 1 */ 0x00,0x00,0x3e,0x7f,0x41,0x41,0x63,0x22, /* D */ 0x00,0x00,0x7f,0x7f,0x41,0x63,0x3e,0x1c, /* E */ 0x00,0x00,0x7f,0x7f,0x49,0x49,0x41,0x41, /* F */ 0x00,0x00,0x7f,0x7f,0x09,0x09,0x01,0x01, /* G */ 0x00,0x00,0x3e,0x7f,0x41,0x49,0x7b,0x3a, /* H */ 0x00,0x00,0x7f,0x7f,0x08,0x08,0x7f,0x7f, /* I */ 0x00,0x00,0x00,0x41,0x7f,0x7f,0x41,0x00, /* J */ 0x00,0x00,0x20,0x60,0x41,0x7f,0x3f,0x01, /* K */ 0x00,0x00,0x7f,0x7f,0x1c,0x36,0x63,0x41, /* L */ 0x00,0x00,0x7f,0x7f,0x40,0x40,0x40,0x40, /* M */ 0x00,0x00,0x7f,0x7f,0x06,0x0c,0x06,0x7f, /* N */ 0x00,0x00,0x7f,0x7f,0x0e,0x1c,0x7f,0x7f, /* O */ 0x00,0x00,0x3e,0x7f,0x41,0x41,0x7f,0x3e, /* P */ 0x00,0x00,0x7f,0x7f,0x09,0x09,0x0f,0x06, /* Q */ 0x00,0x00,0x1e,0x3f,0x21,0x61,0x7f,0x5e, /* R */ 0x00,0x00,0x7f,0x7f,0x19,0x39,0x6f,0x46, /* S */ 0x00,0x00,0x26,0x6f,0x49,0x49,0x7b,0x32, /* T */ 0x00,0x00,0x01,0x01,0x7f,0x7f,0x01,0x01, /* U */ 0x00,0x00,0x3f,0x7f,0x40,0x40,0x7f,0x3f, /* V */ 0x00,0x00,0x1f,0x3f,0x60,0x60,0x3f,0x1f, /* W */ 0x00,0x00,0x7f,0x7f,0x30,0x18,0x30,0x7f, /* X */ 0x00,0x00,0x63,0x77,0x1c,0x1c,0x77,0x63, /* Y */ 0x00,0x00,0x07,0x0f,0x78,0x78,0x0f,0x07, /* Z */ 0x00,0x00,0x61,0x71,0x59,0x4d,0x47,0x43, /* [ */ 0x00,0x00,0x7f,0x7f,0x41,0x41,0x00,0x00, /* flipped forward slash */ 0x06,0x0c,0x18,0x30,0x60,0x40,0x00,0x00,// 0x00,0x00,0x40,0x60,0x30,0x18,0x0c,0x06, // /* (pound) */ 0x00,0x22,0x49,0x49,0x5e,0x7c,0x68,0x40, /* pound in stead of backslash */ /* ] */ 0x00,0x00,0x41,0x41,0x7f,0x7f,0x00,0x00, /* 0x00,0x00,0x7E,0x42,0x42,0x00,0x00,0x00, // [ 0x00,0x04,0x08,0x10,0x20,0x40,0x00,0x00, // <backslash> 0x00,0x00,0x42,0x42,0x7E,0x00,0x00,0x00, // ] */ 0x00,0x08,0x04,0x7E,0x04,0x08,0x00,0x00, // ^ 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x00, // _ /* ` */ 0x00,0x01,0x03,0x06,0x04,0x00,0x00,0x00, /* a */ 0x00,0x00,0x20,0x74,0x54,0x54,0x7c,0x78, /* b */ 0x00,0x00,0x7e,0x7e,0x48,0x48,0x78,0x30, /* c */ 0x00,0x00,0x38,0x7c,0x44,0x44,0x44,0x00, /* d */ 0x00,0x00,0x30,0x78,0x48,0x48,0x7e,0x7e, /* e */ 0x00,0x00,0x38,0x7c,0x54,0x54,0x5c,0x18, /* f */ 0x00,0x00,0x00,0x08,0x7c,0x7e,0x0a,0x0a, /* g */ 0x00,0x00,0x98,0xbc,0xa4,0xa4,0xfc,0x7c, /* h */ 0x00,0x00,0x7e,0x7e,0x08,0x08,0x78,0x70, /* i */ 0x00,0x00,0x00,0x48,0x7a,0x7a,0x40,0x00, /* j */ 0x00,0x00,0x00,0x80,0x80,0x80,0xfa,0x7a, /* k */ 0x00,0x00,0x7e,0x7e,0x10,0x38,0x68,0x40, /* l */ 0x00,0x00,0x00,0x42,0x7e,0x7e,0x40,0x00, /* m */ 0x00,0x00,0x7c,0x7c,0x18,0x38,0x1c,0x7c, /* n */ 0x00,0x00,0x7c,0x7c,0x04,0x04,0x7c,0x78, /* o */ 0x00,0x00,0x38,0x7c,0x44,0x44,0x7c,0x38, /* p */ 0x00,0x00,0xfc,0xfc,0x24,0x24,0x3c,0x18, /* q */ 0x00,0x00,0x18,0x3c,0x24,0x24,0xfc,0xfc, /* r */ 0x00,0x00,0x7c,0x7c,0x04,0x04,0x0c,0x08, /* s */ 0x00,0x00,0x48,0x5c,0x54,0x54,0x74,0x24, /* t */ 0x00,0x00,0x04,0x04,0x3e,0x7e,0x44,0x44, /* u */ 0x00,0x00,0x3c,0x7c,0x40,0x40,0x7c,0x7c, /* v */ 0x00,0x00,0x1c,0x3c,0x60,0x60,0x3c,0x1c, /* w */ 0x00,0x00,0x1c,0x7c,0x70,0x38,0x70,0x7c, /* x */ 0x00,0x00,0x44,0x6c,0x38,0x38,0x6c,0x44, /* y */ 0x00,0x00,0x9c,0xbc,0xa0,0xe0,0x7c,0x3c, /* z */ 0x00,0x00,0x44,0x64,0x74,0x5c,0x4c,0x44, 0x00,0x08,0x08,0x76,0x42,0x42,0x00,0x00, // { 0x00,0x00,0x00,0x7E,0x00,0x00,0x00,0x00, // | 0x00,0x42,0x42,0x76,0x08,0x08,0x00,0x00, // } 0x00,0x00,0x04,0x02,0x04,0x02,0x00,0x00, // ~ 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, // BLOCK = 127 /* (spades) */ 0x18,0x5c,0x7e,0x7f,0x7e,0x5c,0x18,0x00, // 128 /* (heart) */ 0x0e,0x1f,0x3f,0x7e,0x3f,0x1f,0x0e,0x00, // 129 /* (clubs) */ 0x00,0x0c,0x4c,0x73,0x73,0x4c,0x0c,0x00, // 130 /* (diamonds) */ 0x08,0x1c,0x3e,0x7f,0x3e,0x1c,0x08,0x00, // 131 /* progress bar outline */ 0x18, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, // |= // 132 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, // = 133 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x18, // =| 134 /* progress bar filled */ 0x18, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, // 135 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, // 136 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x3c, 0x18, // 137 /* arrows (navi) */ 0x04, 0x0E, 0x1F, 0x04, 0x04, 0x04, 0xF8, 0x00, // 138 arrow right [correct orientation] 0x00, 0xF8, 0x04, 0x04, 0x04, 0x1F, 0x0E, 0x04, // 139 arrow right [correct orientation] 0x00, 0x04, 0x06, 0xFF, 0x06, 0x04, 0x00, 0x00, // 140 arrow up 6, 14, 31, 0xFB, 31, 14, 6, 0x00, // 141 GPS pin... 0x00, 0x06, 0x0f, 0x09, 0x0f, 0x06, 0x00, 0x00, // 142 angle / degrees sign 0x00, 0x20, 0x60, 0xFF, 0x60, 0x20, 0x00, 0x00 // 143 arrow DOWN }; #endif
wakwak-koba/M5GFX
src/lgfx/Fonts/efont/lgfx_efont_tw.h
#include <stdint.h> #define U8G2_USE_LARGE_FONTS extern const uint8_t lgfx_efont_tw_10[]; extern const uint8_t lgfx_efont_tw_10_b[]; extern const uint8_t lgfx_efont_tw_10_bi[]; extern const uint8_t lgfx_efont_tw_10_i[]; extern const uint8_t lgfx_efont_tw_12[]; extern const uint8_t lgfx_efont_tw_12_b[]; extern const uint8_t lgfx_efont_tw_12_bi[]; extern const uint8_t lgfx_efont_tw_12_i[]; extern const uint8_t lgfx_efont_tw_14[]; extern const uint8_t lgfx_efont_tw_14_b[]; extern const uint8_t lgfx_efont_tw_14_bi[]; extern const uint8_t lgfx_efont_tw_14_i[]; extern const uint8_t lgfx_efont_tw_16[]; extern const uint8_t lgfx_efont_tw_16_b[]; extern const uint8_t lgfx_efont_tw_16_bi[]; extern const uint8_t lgfx_efont_tw_16_i[]; extern const uint8_t lgfx_efont_tw_24[]; extern const uint8_t lgfx_efont_tw_24_b[]; extern const uint8_t lgfx_efont_tw_24_bi[]; extern const uint8_t lgfx_efont_tw_24_i[];
wakwak-koba/M5GFX
src/lgfx/utility/lgfx_qrcode.c
<gh_stars>0 /** * The MIT License (MIT) * * Copyright (c) 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ /** * Special thanks to Nayuki (https://www.nayuki.io/) from which this library was * heavily inspired and compared against. * * See: https://github.com/nayuki/QR-Code-generator/tree/master/cpp */ /** * original source is here : https://github.com/ricmoo/QRCode/ * Modified for LGFX by lovyan03, 2020 */ #include "lgfx_qrcode.h" #include <stdlib.h> #include <string.h> //#pragma mark - Error Correction Lookup tables #if LOCK_VERSION == 0 static const uint16_t NUM_ERROR_CORRECTION_CODEWORDS[4][40] = { // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level { 10, 16, 26, 36, 48, 64, 72, 88, 110, 130, 150, 176, 198, 216, 240, 280, 308, 338, 364, 416, 442, 476, 504, 560, 588, 644, 700, 728, 784, 812, 868, 924, 980, 1036, 1064, 1120, 1204, 1260, 1316, 1372}, // Medium { 7, 10, 15, 20, 26, 36, 40, 48, 60, 72, 80, 96, 104, 120, 132, 144, 168, 180, 196, 224, 224, 252, 270, 300, 312, 336, 360, 390, 420, 450, 480, 510, 540, 570, 570, 600, 630, 660, 720, 750}, // Low { 17, 28, 44, 64, 88, 112, 130, 156, 192, 224, 264, 308, 352, 384, 432, 480, 532, 588, 650, 700, 750, 816, 900, 960, 1050, 1110, 1200, 1260, 1350, 1440, 1530, 1620, 1710, 1800, 1890, 1980, 2100, 2220, 2310, 2430}, // High { 13, 22, 36, 52, 72, 96, 108, 132, 160, 192, 224, 260, 288, 320, 360, 408, 448, 504, 546, 600, 644, 690, 750, 810, 870, 952, 1020, 1050, 1140, 1200, 1290, 1350, 1440, 1530, 1590, 1680, 1770, 1860, 1950, 2040}, // Quartile }; static const uint8_t NUM_ERROR_CORRECTION_BLOCKS[4][40] = { // Version: (note that index 0 is for padding, and is set to an illegal value) // 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 Error correction level { 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49}, // Medium { 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25}, // Low { 1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81}, // High { 1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68}, // Quartile }; static const uint16_t NUM_RAW_DATA_MODULES[40] = { // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 208, 359, 567, 807, 1079, 1383, 1568, 1936, 2336, 2768, 3232, 3728, 4256, 4651, 5243, 5867, 6523, // 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 7211, 7931, 8683, 9252, 10068, 10916, 11796, 12708, 13652, 14628, 15371, 16411, 17483, 18587, // 32, 33, 34, 35, 36, 37, 38, 39, 40 19723, 20891, 22091, 23008, 24272, 25568, 26896, 28256, 29648 }; // @TODO: Put other LOCK_VERSIONS here #elif LOCK_VERSION == 3 static const int16_t NUM_ERROR_CORRECTION_CODEWORDS[4] = { 26, 15, 44, 36 }; static const int8_t NUM_ERROR_CORRECTION_BLOCKS[4] = { 1, 1, 2, 2 }; static const uint16_t NUM_RAW_DATA_MODULES = 567; #else #error Unsupported LOCK_VERSION (add it...) #endif static int max(int a, int b) { if (a > b) { return a; } return b; } /* static int abs(int value) { if (value < 0) { return -value; } return value; } */ //#pragma mark - Mode testing and conversion static int8_t getAlphanumeric(char c) { if (c >= '0' && c <= '9') { return (c - '0'); } if (c >= 'A' && c <= 'Z') { return (c - 'A' + 10); } switch (c) { case ' ': return 36; case '$': return 37; case '%': return 38; case '*': return 39; case '+': return 40; case '-': return 41; case '.': return 42; case '/': return 43; case ':': return 44; } return -1; } static bool isAlphanumeric(const char *text, uint16_t length) { while (length != 0) { if (getAlphanumeric(text[--length]) == -1) { return false; } } return true; } static bool isNumeric(const char *text, uint16_t length) { while (length != 0) { char c = text[--length]; if (c < '0' || c > '9') { return false; } } return true; } //#pragma mark - Counting // We store the following tightly packed (less 8) in modeInfo // <=9 <=26 <= 40 // NUMERIC ( 10, 12, 14); // ALPHANUMERIC ( 9, 11, 13); // BYTE ( 8, 16, 16); static char getModeBits(uint8_t version, uint8_t mode) { // Note: We use 15 instead of 16; since 15 doesn't exist and we cannot store 16 (8 + 8) in 3 bits // hex(int("".join(reversed([('00' + bin(x - 8)[2:])[-3:] for x in [10, 9, 8, 12, 11, 15, 14, 13, 15]])), 2)) unsigned int modeInfo = 0x7bbb80a; #if LOCK_VERSION == 0 || LOCK_VERSION > 9 if (version > 9) { modeInfo >>= 9; } #endif #if LOCK_VERSION == 0 || LOCK_VERSION > 26 if (version > 26) { modeInfo >>= 9; } #endif char result = 8 + ((modeInfo >> (3 * mode)) & 0x07); if (result == 15) { result = 16; } return result; } //#pragma mark - BitBucket typedef struct BitBucket { uint32_t bitOffsetOrWidth; uint16_t capacityBytes; uint8_t *data; } BitBucket; /* void bb_dump(BitBucket *bitBuffer) { printf("Buffer: "); for (uint32_t i = 0; i < bitBuffer->capacityBytes; i++) { printf("%02x", bitBuffer->data[i]); if ((i % 4) == 3) { printf(" "); } } printf("\n"); } */ static uint16_t bb_getGridSizeBytes(uint8_t size) { return (((size * size) + 7) >> 3); } static uint16_t bb_getBufferSizeBytes(uint32_t bits) { return ((bits + 7) >> 3); } static void bb_initBuffer(BitBucket *bitBuffer, uint8_t *data, int32_t capacityBytes) { bitBuffer->bitOffsetOrWidth = 0; bitBuffer->capacityBytes = capacityBytes; bitBuffer->data = data; memset(data, 0, bitBuffer->capacityBytes); } static void bb_initGrid(BitBucket *bitGrid, uint8_t *data, uint8_t size) { bitGrid->bitOffsetOrWidth = size; bitGrid->capacityBytes = bb_getGridSizeBytes(size); bitGrid->data = data; memset(data, 0, bitGrid->capacityBytes); } static bool bb_appendBits(BitBucket *bitBuffer, uint32_t val, uint8_t length) { uint32_t offset = bitBuffer->bitOffsetOrWidth; for (int_fast8_t i = length - 1; i >= 0; i--, offset++) { size_t index = offset >> 3; if (bitBuffer->capacityBytes <= index) return false; bitBuffer->data[index] |= ((val >> i) & 1) << (7 - (offset & 7)); } bitBuffer->bitOffsetOrWidth = offset; return true; } /* void bb_setBits(BitBucket *bitBuffer, uint32_t val, int offset, uint8_t length) { for (int8_t i = length - 1; i >= 0; i--, offset++) { bitBuffer->data[offset >> 3] |= ((val >> i) & 1) << (7 - (offset & 7)); } } */ static void bb_setBit(BitBucket *bitGrid, uint_fast8_t x, uint_fast8_t y, bool on) { uint32_t offset = y * bitGrid->bitOffsetOrWidth + x; uint8_t mask = 1 << (7 - (offset & 0x07)); if (on) { bitGrid->data[offset >> 3] |= mask; } else { bitGrid->data[offset >> 3] &= ~mask; } } static void bb_invertBit(BitBucket *bitGrid, uint_fast8_t x, uint_fast8_t y, bool invert) { uint32_t offset = y * bitGrid->bitOffsetOrWidth + x; uint8_t mask = 1 << (7 - (offset & 0x07)); bool on = ((bitGrid->data[offset >> 3] & (1 << (7 - (offset & 0x07)))) != 0); if (on ^ invert) { bitGrid->data[offset >> 3] |= mask; } else { bitGrid->data[offset >> 3] &= ~mask; } } static bool bb_getBit(BitBucket *bitGrid, uint_fast8_t x, uint_fast8_t y) { uint32_t offset = y * bitGrid->bitOffsetOrWidth + x; return (bitGrid->data[offset >> 3] & (1 << (7 - (offset & 0x07)))) != 0; } //#pragma mark - Drawing Patterns // XORs the data modules in this QR Code with the given mask pattern. Due to XOR's mathematical // properties, calling applyMask(m) twice with the same value is equivalent to no change at all. // This means it is possible to apply a mask, undo it, and try another mask. Note that a final // well-formed QR Code symbol needs exactly one mask applied (not zero, not two, etc.). static void applyMask(BitBucket *modules, BitBucket *isFunction, uint8_t mask) { uint8_t size = modules->bitOffsetOrWidth; for (uint_fast8_t y = 0; y < size; y++) { for (uint_fast8_t x = 0; x < size; x++) { if (bb_getBit(isFunction, x, y)) { continue; } bool invert = 0; switch (mask) { case 0: invert = ((x + y) & 1) == 0; break; case 1: invert = (y & 1) == 0; break; case 2: invert = (x % 3) == 0; break; case 3: invert = ((x + y) % 3) == 0; break; case 4: invert = ((x / 3 + (y >> 1)) & 1) == 0; break; case 5: invert = (((x * y) & 1) + x * y % 3) == 0; break; case 6: invert = ((((x * y) & 1) + x * y % 3) & 1) == 0;break; case 7: invert = ((((x + y) & 1) + x * y % 3) & 1) == 0;break; } bb_invertBit(modules, x, y, invert); } } } static void setFunctionModule(BitBucket *modules, BitBucket *isFunction, uint_fast8_t x, uint_fast8_t y, bool on) { bb_setBit(modules, x, y, on); bb_setBit(isFunction, x, y, true); } // Draws a 9*9 finder pattern including the border separator, with the center module at (x, y). static void drawFinderPattern(BitBucket *modules, BitBucket *isFunction, uint_fast8_t x, uint_fast8_t y) { uint8_t size = modules->bitOffsetOrWidth; for (int_fast8_t i = -4; i <= 4; i++) { for (int_fast8_t j = -4; j <= 4; j++) { uint_fast8_t dist = max(abs(i), abs(j)); // Chebyshev/infinity norm int_fast16_t xx = x + j, yy = y + i; if (0 <= xx && xx < size && 0 <= yy && yy < size) { setFunctionModule(modules, isFunction, xx, yy, dist != 2 && dist != 4); } } } } // Draws a 5*5 alignment pattern, with the center module at (x, y). static void drawAlignmentPattern(BitBucket *modules, BitBucket *isFunction, uint_fast8_t x, uint_fast8_t y) { for (int_fast8_t i = -2; i <= 2; i++) { for (int_fast8_t j = -2; j <= 2; j++) { setFunctionModule(modules, isFunction, x + j, y + i, max(abs(i), abs(j)) != 1); } } } // Draws two copies of the format bits (with its own error correction code) // based on the given mask and this object's error correction level field. static void drawFormatBits(BitBucket *modules, BitBucket *isFunction, uint8_t ecc, uint8_t mask) { uint8_t size = modules->bitOffsetOrWidth; // Calculate error correction code and pack bits uint32_t data = ecc << 3 | mask; // errCorrLvl is uint2, mask is uint3 uint32_t rem = data; for (int i = 0; i < 10; i++) { rem = (rem << 1) ^ ((rem >> 9) * 0x537); } data = data << 10 | rem; data ^= 0x5412; // uint15 // Draw first copy for (uint_fast8_t i = 0; i <= 5; i++) { setFunctionModule(modules, isFunction, 8, i, ((data >> i) & 1) != 0); } setFunctionModule(modules, isFunction, 8, 7, ((data >> 6) & 1) != 0); setFunctionModule(modules, isFunction, 8, 8, ((data >> 7) & 1) != 0); setFunctionModule(modules, isFunction, 7, 8, ((data >> 8) & 1) != 0); for (int_fast8_t i = 9; i < 15; i++) { setFunctionModule(modules, isFunction, 14 - i, 8, ((data >> i) & 1) != 0); } // Draw second copy for (int_fast8_t i = 0; i <= 7; i++) { setFunctionModule(modules, isFunction, size - 1 - i, 8, ((data >> i) & 1) != 0); } for (int_fast8_t i = 8; i < 15; i++) { setFunctionModule(modules, isFunction, 8, size - 15 + i, ((data >> i) & 1) != 0); } setFunctionModule(modules, isFunction, 8, size - 8, true); } // Draws two copies of the version bits (with its own error correction code), // based on this object's version field (which only has an effect for 7 <= version <= 40). static void drawVersion(BitBucket *modules, BitBucket *isFunction, uint8_t version) { int8_t size = modules->bitOffsetOrWidth; #if LOCK_VERSION != 0 && LOCK_VERSION < 7 return; #else if (version < 7) { return; } // Calculate error correction code and pack bits uint32_t rem = version; // version is uint6, in the range [7, 40] for (uint_fast8_t i = 0; i < 12; i++) { rem = (rem << 1) ^ ((rem >> 11) * 0x1F25); } uint32_t data = version << 12 | rem; // uint18 // Draw two copies for (uint_fast8_t i = 0; i < 18; i++) { bool bit = ((data >> i) & 1) != 0; uint8_t a = size - 11 + i % 3, b = i / 3; setFunctionModule(modules, isFunction, a, b, bit); setFunctionModule(modules, isFunction, b, a, bit); } #endif } static void drawFunctionPatterns(BitBucket *modules, BitBucket *isFunction, uint8_t version, uint8_t ecc) { uint8_t size = modules->bitOffsetOrWidth; // Draw the horizontal and vertical timing patterns for (uint_fast8_t i = 0; i < size; i++) { setFunctionModule(modules, isFunction, 6, i, (i & 1) == 0); setFunctionModule(modules, isFunction, i, 6, (i & 1) == 0); } // Draw 3 finder patterns (all corners except bottom right; overwrites some timing modules) drawFinderPattern(modules, isFunction, 3, 3); drawFinderPattern(modules, isFunction, size - 4, 3); drawFinderPattern(modules, isFunction, 3, size - 4); #if LOCK_VERSION == 0 || LOCK_VERSION > 1 if (version > 1) { // Draw the numerous alignment patterns uint_fast8_t alignCount = version / 7 + 2; uint_fast8_t step; if (version != 32) { step = (version * 4 + alignCount * 2 + 1) / (2 * alignCount - 2) * 2; // ceil((size - 13) / (2*numAlign - 2)) * 2 } else { // C-C-C-Combo breaker! step = 26; } uint_fast8_t alignPositionIndex = alignCount - 1; uint8_t alignPosition[alignCount]; alignPosition[0] = 6; uint8_t size = version * 4 + 17; for (uint_fast8_t i = 0, pos = size - 7; i < alignCount - 1; i++, pos -= step) { alignPosition[alignPositionIndex--] = pos; } for (uint_fast8_t i = 0; i < alignCount; i++) { for (uint_fast8_t j = 0; j < alignCount; j++) { if ((i == 0 && j == 0) || (i == 0 && j == alignCount - 1) || (i == alignCount - 1 && j == 0)) { continue; // Skip the three finder corners } else { drawAlignmentPattern(modules, isFunction, alignPosition[i], alignPosition[j]); } } } } #endif // Draw configuration data drawFormatBits(modules, isFunction, ecc, 0); // Dummy mask value; overwritten later in the constructor drawVersion(modules, isFunction, version); } // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire // data area of this QR Code symbol. Function modules need to be marked off before this is called. static void drawCodewords(BitBucket *modules, BitBucket *isFunction, BitBucket *codewords) { uint32_t bitLength = codewords->bitOffsetOrWidth; uint8_t *data = codewords->data; uint8_t size = modules->bitOffsetOrWidth; // Bit index into the data uint32_t i = 0; // Do the funny zigzag scan for (int_fast16_t right = size - 1; right >= 1; right -= 2) { // Index of right column in each column pair if (right == 6) { right = 5; } for (uint_fast8_t vert = 0; vert < size; vert++) { // Vertical counter for (int j = 0; j < 2; j++) { uint8_t x = right - j; // Actual x coordinate bool upwards = ((right & 2) == 0) ^ (x < 6); uint8_t y = upwards ? size - 1 - vert : vert; // Actual y coordinate if (!bb_getBit(isFunction, x, y) && i < bitLength) { bb_setBit(modules, x, y, ((data[i >> 3] >> (7 - (i & 7))) & 1) != 0); i++; } // If there are any remainder bits (0 to 7), they are already // set to 0/false/white when the grid of modules was initialized } } } } //#pragma mark - Penalty Calculation #define PENALTY_N1 3 #define PENALTY_N2 3 #define PENALTY_N3 40 #define PENALTY_N4 10 // Calculates and returns the penalty score based on state of this QR Code's current modules. // This is used by the automatic mask choice algorithm to find the mask pattern that yields the lowest score. // @TODO: This can be optimized by working with the bytes instead of bits. static uint32_t getPenaltyScore(BitBucket *modules) { uint32_t result = 0; uint8_t size = modules->bitOffsetOrWidth; // Adjacent modules in row having same color for (uint_fast8_t y = 0; y < size; y++) { bool colorX = bb_getBit(modules, 0, y); for (uint_fast8_t x = 1, runX = 1; x < size; x++) { bool cx = bb_getBit(modules, x, y); if (cx != colorX) { colorX = cx; runX = 1; } else { runX++; if (runX == 5) { result += PENALTY_N1; } else if (runX > 5) { result++; } } } } // Adjacent modules in column having same color for (uint_fast8_t x = 0; x < size; x++) { bool colorY = bb_getBit(modules, x, 0); for (uint_fast8_t y = 1, runY = 1; y < size; y++) { bool cy = bb_getBit(modules, x, y); if (cy != colorY) { colorY = cy; runY = 1; } else { runY++; if (runY == 5) { result += PENALTY_N1; } else if (runY > 5) { result++; } } } } uint16_t black = 0; for (uint_fast8_t y = 0; y < size; y++) { uint_fast16_t bitsRow = 0, bitsCol = 0; for (uint_fast8_t x = 0; x < size; x++) { bool color = bb_getBit(modules, x, y); // 2*2 blocks of modules having same color if (x > 0 && y > 0) { bool colorUL = bb_getBit(modules, x - 1, y - 1); bool colorUR = bb_getBit(modules, x, y - 1); bool colorL = bb_getBit(modules, x - 1, y); if (color == colorUL && color == colorUR && color == colorL) { result += PENALTY_N2; } } // Finder-like pattern in rows and columns bitsRow = ((bitsRow << 1) & 0x7FF) | color; bitsCol = ((bitsCol << 1) & 0x7FF) | bb_getBit(modules, y, x); // Needs 11 bits accumulated if (x >= 10) { if (bitsRow == 0x05D || bitsRow == 0x5D0) { result += PENALTY_N3; } if (bitsCol == 0x05D || bitsCol == 0x5D0) { result += PENALTY_N3; } } // Balance of black and white modules if (color) { black++; } } } // Find smallest k such that (45-5k)% <= dark/total <= (55+5k)% uint_fast16_t total = size * size; for (uint_fast16_t k = 0; black * 20 < (9 - k) * total || black * 20 > (11 + k) * total; k++) { result += PENALTY_N4; } return result; } //#pragma mark - Reed-Solomon Generator static uint8_t rs_multiply(uint_fast8_t x, uint_fast8_t y) { // Russian peasant multiplication // See: https://en.wikipedia.org/wiki/Ancient_Egyptian_multiplication uint16_t z = 0; for (int_fast8_t i = 7; i >= 0; i--) { z = (z << 1) ^ ((z >> 7) * 0x11D); z ^= ((y >> i) & 1) * x; } return z; } static void rs_init(uint8_t degree, uint8_t *coeff) { memset(coeff, 0, degree); coeff[degree - 1] = 1; // Compute the product polynomial (x - r^0) * (x - r^1) * (x - r^2) * ... * (x - r^{degree-1}), // drop the highest term, and store the rest of the coefficients in order of descending powers. // Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D). uint16_t root = 1; for (uint_fast8_t i = 0; i < degree; i++) { // Multiply the current product by (x - r^i) for (uint_fast8_t j = 0; j < degree; j++) { coeff[j] = rs_multiply(coeff[j], root); if (j + 1 < degree) { coeff[j] ^= coeff[j + 1]; } } root = (root << 1) ^ ((root >> 7) * 0x11D); // Multiply by 0x02 mod GF(2^8/0x11D) } } static void rs_getRemainder(uint8_t degree, uint8_t *coeff, uint8_t *data, uint8_t length, uint8_t *result, uint8_t stride) { // Compute the remainder by performing polynomial division //for (uint8_t i = 0; i < degree; i++) { result[] = 0; } //memset(result, 0, degree); for (uint_fast8_t i = 0; i < length; i++) { uint8_t factor = data[i] ^ result[0]; for (uint_fast8_t j = 1; j < degree; j++) { result[(j - 1) * stride] = result[j * stride]; } result[(degree - 1) * stride] = 0; for (uint_fast8_t j = 0; j < degree; j++) { result[j * stride] ^= rs_multiply(coeff[j], factor); } } } //#pragma mark - QrCode static int8_t encodeDataCodewords(BitBucket *dataCodewords, const uint8_t *text, uint16_t length, uint8_t version) { int8_t mode = MODE_BYTE; if (isNumeric((char*)text, length)) { mode = MODE_NUMERIC; bb_appendBits(dataCodewords, 1 << MODE_NUMERIC, 4); bb_appendBits(dataCodewords, length, getModeBits(version, MODE_NUMERIC)); uint16_t accumData = 0; uint8_t accumCount = 0; for (uint16_t i = 0; i < length; i++) { accumData = accumData * 10 + ((char)(text[i]) - '0'); accumCount++; if (accumCount == 3) { if (!bb_appendBits(dataCodewords, accumData, 10)) return -1; accumData = 0; accumCount = 0; } } // 1 or 2 digits remaining if (accumCount > 0) { bb_appendBits(dataCodewords, accumData, accumCount * 3 + 1); } } else if (isAlphanumeric((char*)text, length)) { mode = MODE_ALPHANUMERIC; bb_appendBits(dataCodewords, 1 << MODE_ALPHANUMERIC, 4); bb_appendBits(dataCodewords, length, getModeBits(version, MODE_ALPHANUMERIC)); uint16_t accumData = 0; uint8_t accumCount = 0; for (uint16_t i = 0; i < length; i++) { accumData = accumData * 45 + getAlphanumeric((char)(text[i])); accumCount++; if (accumCount == 2) { if (!bb_appendBits(dataCodewords, accumData, 11)) return -1; accumData = 0; accumCount = 0; } } // 1 character remaining if (accumCount > 0) { bb_appendBits(dataCodewords, accumData, 6); } } else { bb_appendBits(dataCodewords, 1 << MODE_BYTE, 4); bb_appendBits(dataCodewords, length, getModeBits(version, MODE_BYTE)); for (uint16_t i = 0; i < length; i++) { if (!bb_appendBits(dataCodewords, (char)(text[i]), 8)) return -1; } } //bb_setBits(dataCodewords, length, 4, getModeBits(version, mode)); return mode; } static bool performErrorCorrection(uint8_t version, uint8_t ecc, BitBucket *data) { // See: http://www.thonky.com/qr-code-tutorial/structure-final-message #if LOCK_VERSION == 0 uint8_t numBlocks = NUM_ERROR_CORRECTION_BLOCKS[ecc][version - 1]; uint16_t totalEcc = NUM_ERROR_CORRECTION_CODEWORDS[ecc][version - 1]; uint16_t moduleCount = NUM_RAW_DATA_MODULES[version - 1]; #else uint8_t numBlocks = NUM_ERROR_CORRECTION_BLOCKS[ecc]; uint16_t totalEcc = NUM_ERROR_CORRECTION_CODEWORDS[ecc]; uint16_t moduleCount = NUM_RAW_DATA_MODULES; #endif uint8_t blockEccLen = totalEcc / numBlocks; uint8_t numShortBlocks = numBlocks - moduleCount / 8 % numBlocks; uint8_t shortBlockLen = moduleCount / 8 / numBlocks; uint8_t shortDataBlockLen = shortBlockLen - blockEccLen; uint8_t result[data->capacityBytes]; memset(result, 0, sizeof(result)); uint8_t coeff[blockEccLen]; rs_init(blockEccLen, coeff); uint16_t offset = 0; uint8_t *dataBytes = data->data; // Interleave all short blocks for (uint8_t i = 0; i < shortDataBlockLen; i++) { uint16_t index = i; uint8_t stride = shortDataBlockLen; for (uint_fast8_t blockNum = 0; blockNum < numBlocks; blockNum++) { if (offset == data->capacityBytes) return false; result[offset++] = dataBytes[index]; #if LOCK_VERSION == 0 || LOCK_VERSION >= 5 if (blockNum == numShortBlocks) { stride++; } #endif index += stride; } } // Version less than 5 only have short blocks #if LOCK_VERSION == 0 || LOCK_VERSION >= 5 { // Interleave long blocks uint16_t index = shortDataBlockLen * (numShortBlocks + 1); uint8_t stride = shortDataBlockLen; for (uint8_t blockNum = 0; blockNum < numBlocks - numShortBlocks; blockNum++) { if (offset == data->capacityBytes) return false; result[offset++] = dataBytes[index]; if (blockNum == 0) { stride++; } index += stride; } } #endif // Add all ecc blocks, interleaved uint8_t blockSize = shortDataBlockLen; for (uint_fast8_t blockNum = 0; blockNum < numBlocks; blockNum++) { #if LOCK_VERSION == 0 || LOCK_VERSION >= 5 if (blockNum == numShortBlocks) { blockSize++; } #endif if (offset + blockNum >= data->capacityBytes) return false; rs_getRemainder(blockEccLen, coeff, dataBytes, blockSize, &result[offset + blockNum], numBlocks); dataBytes += blockSize; } memcpy(data->data, result, data->capacityBytes); data->bitOffsetOrWidth = moduleCount; return true; } // We store the Format bits tightly packed into a single byte (each of the 4 modes is 2 bits) // The format bits can be determined by ECC_FORMAT_BITS >> (2 * ecc) static const uint8_t ECC_FORMAT_BITS = (0x02 << 6) | (0x03 << 4) | (0x00 << 2) | (0x01 << 0); //#pragma mark - Public QRCode functions uint16_t lgfx_qrcode_getBufferSize(uint8_t version) { return bb_getGridSizeBytes(4 * version + 17); } // @TODO: Return error if data is too big. int8_t lgfx_qrcode_initBytes(QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, uint8_t *data, uint16_t length) { uint8_t size = version * 4 + 17; qrcode->version = version; qrcode->size = size; qrcode->ecc = ecc; qrcode->modules = modules; uint8_t eccFormatBits = (ECC_FORMAT_BITS >> (2 * ecc)) & 0x03; #if LOCK_VERSION == 0 uint16_t moduleCount = NUM_RAW_DATA_MODULES[version - 1]; uint16_t dataCapacity = (moduleCount >> 3) - NUM_ERROR_CORRECTION_CODEWORDS[eccFormatBits][version - 1]; #else version = LOCK_VERSION; uint16_t moduleCount = NUM_RAW_DATA_MODULES; uint16_t dataCapacity = (moduleCount >> 3) - NUM_ERROR_CORRECTION_CODEWORDS[eccFormatBits]; #endif struct BitBucket codewords; uint8_t codewordBytes[bb_getBufferSizeBytes(moduleCount)]; bb_initBuffer(&codewords, codewordBytes, (int32_t)sizeof(codewordBytes)); // Place the data code words into the buffer int8_t mode = encodeDataCodewords(&codewords, data, length, version); if (mode < 0) { return -1; } qrcode->mode = mode; // Add terminator and pad up to a byte if applicable int32_t padding = (dataCapacity * 8) - codewords.bitOffsetOrWidth; if (padding < 0) return -1; if (padding > 4) { padding = 4; } bb_appendBits(&codewords, 0, padding); bb_appendBits(&codewords, 0, (8 - (codewords.bitOffsetOrWidth & 7)) & 7); // Pad with alternate bytes until data capacity is reached for (uint8_t padByte = 0xEC; codewords.bitOffsetOrWidth < (dataCapacity * 8); padByte ^= 0xEC ^ 0x11) { bb_appendBits(&codewords, padByte, 8); } BitBucket modulesGrid; bb_initGrid(&modulesGrid, modules, size); BitBucket isFunctionGrid; uint8_t isFunctionGridBytes[bb_getGridSizeBytes(size)]; bb_initGrid(&isFunctionGrid, isFunctionGridBytes, size); // Draw function patterns, draw all codewords, do masking drawFunctionPatterns(&modulesGrid, &isFunctionGrid, version, eccFormatBits); if (!performErrorCorrection(version, eccFormatBits, &codewords)) return -1; drawCodewords(&modulesGrid, &isFunctionGrid, &codewords); // Find the best (lowest penalty) mask uint8_t mask = 0; int32_t minPenalty = INT32_MAX; for (uint_fast8_t i = 0; i < 8; i++) { drawFormatBits(&modulesGrid, &isFunctionGrid, eccFormatBits, i); applyMask(&modulesGrid, &isFunctionGrid, i); int penalty = getPenaltyScore(&modulesGrid); if (penalty < minPenalty) { mask = i; minPenalty = penalty; } applyMask(&modulesGrid, &isFunctionGrid, i); // Undoes the mask due to XOR } qrcode->mask = mask; // Overwrite old format bits drawFormatBits(&modulesGrid, &isFunctionGrid, eccFormatBits, mask); // Apply the final choice of mask applyMask(&modulesGrid, &isFunctionGrid, mask); return 0; } int8_t lgfx_qrcode_initText(QRCode *qrcode, uint8_t *modules, uint8_t version, uint8_t ecc, const char *data) { return lgfx_qrcode_initBytes(qrcode, modules, version, ecc, (uint8_t*)data, strlen(data)); } bool lgfx_qrcode_getModule(QRCode *qrcode, uint_fast8_t x, uint_fast8_t y) { if (x >= qrcode->size || y >= qrcode->size) { return false; } uint32_t offset = y * qrcode->size + x; return qrcode->modules[offset >> 3] & (1 << (7 - (offset & 0x07))); } /* uint8_t lgfx_qrcode_getHexLength(QRCode *qrcode) { return ((qrcode->size * qrcode->size) + 7) / 4; } void lgfx_qrcode_getHex(QRCode *qrcode, char *result) { } */
wakwak-koba/M5GFX
src/lgfx/Fonts/efont/lgfx_efont_ja.h
#include <stdint.h> #define U8G2_USE_LARGE_FONTS extern const uint8_t lgfx_efont_ja_10[]; extern const uint8_t lgfx_efont_ja_10_b[]; extern const uint8_t lgfx_efont_ja_10_bi[]; extern const uint8_t lgfx_efont_ja_10_i[]; extern const uint8_t lgfx_efont_ja_12[]; extern const uint8_t lgfx_efont_ja_12_b[]; extern const uint8_t lgfx_efont_ja_12_bi[]; extern const uint8_t lgfx_efont_ja_12_i[]; extern const uint8_t lgfx_efont_ja_14[]; extern const uint8_t lgfx_efont_ja_14_b[]; extern const uint8_t lgfx_efont_ja_14_bi[]; extern const uint8_t lgfx_efont_ja_14_i[]; extern const uint8_t lgfx_efont_ja_16[]; extern const uint8_t lgfx_efont_ja_16_b[]; extern const uint8_t lgfx_efont_ja_16_bi[]; extern const uint8_t lgfx_efont_ja_16_i[]; extern const uint8_t lgfx_efont_ja_24[]; extern const uint8_t lgfx_efont_ja_24_b[]; extern const uint8_t lgfx_efont_ja_24_bi[]; extern const uint8_t lgfx_efont_ja_24_i[];
wakwak-koba/M5GFX
src/lgfx/Fonts/Ascii8x16.h
#ifndef ASCIIFONTLIB8X16_H_ #define ASCIIFONTLIB8X16_H_ /*************************************************************************************/ // // 字模文件 // 软件提供:哈迪斯2001(Hades2001) @2018/09/10 // Mail: <EMAIL> // 编码: ASCII // 字体: (ASC16)8x16 Ascii // 字模水平像素 : 8 // 字模垂直像素 : 16 // 字模扫描模式 : 逐行式 // 字模储存模式 : 高位在先 // 定位方式 :( Ascii码 - 0x20 ) x 16 // /************************************************************************************/ // // original source : https://github.com/m5stack/M5-CoreInk/blob/master/src/utility/Ascii8x16.cpp // // modified by lovyan03 // /************************************************************************************/ const unsigned char FontLib8x16[] = { /* 0x00 [ ] [ 0 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x01 [ ! ] [ 1 ] */ 0x00,0x00,0x18,0x3C,0x3C,0x3C,0x18,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00,0x00, /* 0x02 [ " ] [ 2 ] */ 0x00,0x66,0x66,0x66,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x03 [ # ] [ 3 ] */ 0x00,0x00,0x00,0x6C,0x6C,0xFE,0x6C,0x6C,0x6C,0xFE,0x6C,0x6C,0x00,0x00,0x00,0x00, /* 0x04 [ $ ] [ 4 ] */ 0x18,0x18,0x7C,0xC6,0xC2,0xC0,0x7C,0x06,0x06,0x86,0xC6,0x7C,0x18,0x18,0x00,0x00, /* 0x05 [ % ] [ 5 ] */ 0x00,0x00,0x00,0x00,0xC2,0xC6,0x0C,0x18,0x30,0x60,0xC6,0x86,0x00,0x00,0x00,0x00, /* 0x06 [ & ] [ 6 ] */ 0x00,0x00,0x38,0x6C,0x6C,0x38,0x76,0xDC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00, /* 0x07 [ ' ] [ 7 ] */ 0x00,0x30,0x30,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x08 [ ( ] [ 8 ] */ 0x00,0x00,0x0C,0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x18,0x0C,0x00,0x00,0x00,0x00, /* 0x09 [ ) ] [ 9 ] */ 0x00,0x00,0x30,0x18,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x18,0x30,0x00,0x00,0x00,0x00, /* 0x0A [ * ] [ 10 ] */ 0x00,0x00,0x00,0x00,0x00,0x66,0x3C,0xFF,0x3C,0x66,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0B [ + ] [ 11 ] */ 0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x7E,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0C [ , ] [ 12 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x18,0x30,0x00,0x00,0x00, /* 0x0D [ - ] [ 13 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x0E [ . ] [ 14 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00, /* 0x0F [ / ] [ 15 ] */ 0x00,0x00,0x00,0x00,0x02,0x06,0x0C,0x18,0x30,0x60,0xC0,0x80,0x00,0x00,0x00,0x00, /* 0x10 [ 0 ] [ 16 ] */ 0x00,0x00,0x38,0x6C,0xC6,0xC6,0xD6,0xD6,0xC6,0xC6,0x6C,0x38,0x00,0x00,0x00,0x00, /* 0x11 [ 1 ] [ 17 ] */ 0x00,0x00,0x18,0x38,0x78,0x18,0x18,0x18,0x18,0x18,0x18,0x7E,0x00,0x00,0x00,0x00, /* 0x12 [ 2 ] [ 18 ] */ 0x00,0x00,0x7C,0xC6,0x06,0x0C,0x18,0x30,0x60,0xC0,0xC6,0xFE,0x00,0x00,0x00,0x00, /* 0x13 [ 3 ] [ 19 ] */ 0x00,0x00,0x7C,0xC6,0x06,0x06,0x3C,0x06,0x06,0x06,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x14 [ 4 ] [ 20 ] */ 0x00,0x00,0x0C,0x1C,0x3C,0x6C,0xCC,0xFE,0x0C,0x0C,0x0C,0x1E,0x00,0x00,0x00,0x00, /* 0x15 [ 5 ] [ 21 ] */ 0x00,0x00,0xFE,0xC0,0xC0,0xC0,0xFC,0x06,0x06,0x06,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x16 [ 6 ] [ 22 ] */ 0x00,0x00,0x38,0x60,0xC0,0xC0,0xFC,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x17 [ 7 ] [ 23 ] */ 0x00,0x00,0xFE,0xC6,0x06,0x06,0x0C,0x18,0x30,0x30,0x30,0x30,0x00,0x00,0x00,0x00, /* 0x18 [ 8 ] [ 24 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0x7C,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x19 [ 9 ] [ 25 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0x7E,0x06,0x06,0x06,0x0C,0x78,0x00,0x00,0x00,0x00, /* 0x1A [ : ] [ 26 ] */ 0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x00, /* 0x1B [ ; ] [ 27 ] */ 0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x18,0x18,0x30,0x00,0x00,0x00,0x00, /* 0x1C [ < ] [ 28 ] */ 0x00,0x00,0x00,0x06,0x0C,0x18,0x30,0x60,0x30,0x18,0x0C,0x06,0x00,0x00,0x00,0x00, /* 0x1D [ = ] [ 29 ] */ 0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x1E [ > ] [ 30 ] */ 0x00,0x00,0x00,0x60,0x30,0x18,0x0C,0x06,0x0C,0x18,0x30,0x60,0x00,0x00,0x00,0x00, /* 0x1F [ ? ] [ 31 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0x0C,0x18,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00,0x00, /* 0x20 [ @ ] [ 32 ] */ 0x00,0x00,0x00,0x7C,0xC6,0xC6,0xDE,0xDE,0xDE,0xDC,0xC0,0x7C,0x00,0x00,0x00,0x00, /* 0x21 [ A ] [ 33 ] */ 0x00,0x00,0x10,0x38,0x6C,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00, /* 0x22 [ B ] [ 34 ] */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x66,0x66,0x66,0x66,0xFC,0x00,0x00,0x00,0x00, /* 0x23 [ C ] [ 35 ] */ 0x00,0x00,0x3C,0x66,0xC2,0xC0,0xC0,0xC0,0xC0,0xC2,0x66,0x3C,0x00,0x00,0x00,0x00, /* 0x24 [ D ] [ 36 ] */ 0x00,0x00,0xF8,0x6C,0x66,0x66,0x66,0x66,0x66,0x66,0x6C,0xF8,0x00,0x00,0x00,0x00, /* 0x25 [ E ] [ 37 ] */ 0x00,0x00,0xFE,0x66,0x62,0x68,0x78,0x68,0x60,0x62,0x66,0xFE,0x00,0x00,0x00,0x00, /* 0x26 [ F ] [ 38 ] */ 0x00,0x00,0xFE,0x66,0x62,0x68,0x78,0x68,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00, /* 0x27 [ G ] [ 39 ] */ 0x00,0x00,0x3C,0x66,0xC2,0xC0,0xC0,0xDE,0xC6,0xC6,0x66,0x3A,0x00,0x00,0x00,0x00, /* 0x28 [ H ] [ 40 ] */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00, /* 0x29 [ I ] [ 41 ] */ 0x00,0x00,0x3C,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00, /* 0x2A [ J ] [ 42 ] */ 0x00,0x00,0x1E,0x0C,0x0C,0x0C,0x0C,0x0C,0xCC,0xCC,0xCC,0x78,0x00,0x00,0x00,0x00, /* 0x2B [ K ] [ 43 ] */ 0x00,0x00,0xE6,0x66,0x66,0x6C,0x78,0x78,0x6C,0x66,0x66,0xE6,0x00,0x00,0x00,0x00, /* 0x2C [ L ] [ 44 ] */ 0x00,0x00,0xF0,0x60,0x60,0x60,0x60,0x60,0x60,0x62,0x66,0xFE,0x00,0x00,0x00,0x00, /* 0x2D [ M ] [ 45 ] */ 0x00,0x00,0xC6,0xEE,0xFE,0xFE,0xD6,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00, /* 0x2E [ N ] [ 46 ] */ 0x00,0x00,0xC6,0xE6,0xF6,0xFE,0xDE,0xCE,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00, /* 0x2F [ O ] [ 47 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x30 [ P ] [ 48 ] */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x60,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00, /* 0x31 [ Q ] [ 49 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xD6,0xDE,0x7C,0x0C,0x0E,0x00,0x00, /* 0x32 [ R ] [ 50 ] */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x6C,0x66,0x66,0x66,0xE6,0x00,0x00,0x00,0x00, /* 0x33 [ S ] [ 51 ] */ 0x00,0x00,0x7C,0xC6,0xC6,0x60,0x38,0x0C,0x06,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x34 [ T ] [ 52 ] */ 0x00,0x00,0x7E,0x7E,0x5A,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00, /* 0x35 [ U ] [ 53 ] */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x36 [ V ] [ 54 ] */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x6C,0x38,0x10,0x00,0x00,0x00,0x00, /* 0x37 [ W ] [ 55 ] */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xD6,0xD6,0xD6,0xFE,0xEE,0x6C,0x00,0x00,0x00,0x00, /* 0x38 [ X ] [ 56 ] */ 0x00,0x00,0xC6,0xC6,0x6C,0x7C,0x38,0x38,0x7C,0x6C,0xC6,0xC6,0x00,0x00,0x00,0x00, /* 0x39 [ Y ] [ 57 ] */ 0x00,0x00,0x66,0x66,0x66,0x66,0x3C,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00, /* 0x3A [ Z ] [ 58 ] */ 0x00,0x00,0xFE,0xC6,0x86,0x0C,0x18,0x30,0x60,0xC2,0xC6,0xFE,0x00,0x00,0x00,0x00, /* 0x3B [ [ ] [ 59 ] */ 0x00,0x00,0x3C,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x3C,0x00,0x00,0x00,0x00, /* 0x3C [ \ ] [ 60 ] */ 0x00,0x00,0x00,0x80,0xC0,0xE0,0x70,0x38,0x1C,0x0E,0x06,0x02,0x00,0x00,0x00,0x00, /* 0x3D [ ] ] [ 61 ] */ 0x00,0x00,0x3C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x3C,0x00,0x00,0x00,0x00, /* 0x3E [ ^ ] [ 62 ] */ 0x10,0x38,0x6C,0xC6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x3F [ _ ] [ 63 ] */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00, /* 0x40 [ ` ] [ 64 ] */ 0x30,0x30,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0x41 [ a ] [ 65 ] */ 0x00,0x00,0x00,0x00,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00, /* 0x42 [ b ] [ 66 ] */ 0x00,0x00,0xE0,0x60,0x60,0x78,0x6C,0x66,0x66,0x66,0x66,0x7C,0x00,0x00,0x00,0x00, /* 0x43 [ c ] [ 67 ] */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xC0,0xC0,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x44 [ d ] [ 68 ] */ 0x00,0x00,0x1C,0x0C,0x0C,0x3C,0x6C,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00, /* 0x45 [ e ] [ 69 ] */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xFE,0xC0,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x46 [ f ] [ 70 ] */ 0x00,0x00,0x38,0x6C,0x64,0x60,0xF0,0x60,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00, /* 0x47 [ g ] [ 71 ] */ 0x00,0x00,0x00,0x00,0x00,0x76,0xCC,0xCC,0xCC,0xCC,0xCC,0x7C,0x0C,0xCC,0x78,0x00, /* 0x48 [ h ] [ 72 ] */ 0x00,0x00,0xE0,0x60,0x60,0x6C,0x76,0x66,0x66,0x66,0x66,0xE6,0x00,0x00,0x00,0x00, /* 0x49 [ i ] [ 73 ] */ 0x00,0x00,0x18,0x18,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00, /* 0x4A [ j ] [ 74 ] */ 0x00,0x00,0x06,0x06,0x00,0x0E,0x06,0x06,0x06,0x06,0x06,0x06,0x66,0x66,0x3C,0x00, /* 0x4B [ k ] [ 75 ] */ 0x00,0x00,0xE0,0x60,0x60,0x66,0x6C,0x78,0x78,0x6C,0x66,0xE6,0x00,0x00,0x00,0x00, /* 0x4C [ l ] [ 76 ] */ 0x00,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00, /* 0x4D [ m ] [ 77 ] */ 0x00,0x00,0x00,0x00,0x00,0xEC,0xFE,0xD6,0xD6,0xD6,0xD6,0xC6,0x00,0x00,0x00,0x00, /* 0x4E [ n ] [ 78 ] */ 0x00,0x00,0x00,0x00,0x00,0xDC,0x66,0x66,0x66,0x66,0x66,0x66,0x00,0x00,0x00,0x00, /* 0x4F [ o ] [ 79 ] */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x50 [ p ] [ 80 ] */ 0x00,0x00,0x00,0x00,0x00,0xDC,0x66,0x66,0x66,0x66,0x66,0x7C,0x60,0x60,0xF0,0x00, /* 0x51 [ q ] [ 81 ] */ 0x00,0x00,0x00,0x00,0x00,0x76,0xCC,0xCC,0xCC,0xCC,0xCC,0x7C,0x0C,0x0C,0x1E,0x00, /* 0x52 [ r ] [ 82 ] */ 0x00,0x00,0x00,0x00,0x00,0xDC,0x76,0x66,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00, /* 0x53 [ s ] [ 83 ] */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0x60,0x38,0x0C,0xC6,0x7C,0x00,0x00,0x00,0x00, /* 0x54 [ t ] [ 84 ] */ 0x00,0x00,0x10,0x30,0x30,0xFC,0x30,0x30,0x30,0x30,0x36,0x1C,0x00,0x00,0x00,0x00, /* 0x55 [ u ] [ 85 ] */ 0x00,0x00,0x00,0x00,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00, /* 0x56 [ v ] [ 86 ] */ 0x00,0x00,0x00,0x00,0x00,0x66,0x66,0x66,0x66,0x66,0x3C,0x18,0x00,0x00,0x00,0x00, /* 0x57 [ w ] [ 87 ] */ 0x00,0x00,0x00,0x00,0x00,0xC6,0xC6,0xD6,0xD6,0xD6,0xFE,0x6C,0x00,0x00,0x00,0x00, /* 0x58 [ x ] [ 88 ] */ 0x00,0x00,0x00,0x00,0x00,0xC6,0x6C,0x38,0x38,0x38,0x6C,0xC6,0x00,0x00,0x00,0x00, /* 0x59 [ y ] [ 89 ] */ 0x00,0x00,0x00,0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7E,0x06,0x0C,0xF8,0x00, /* 0x5A [ z ] [ 90 ] */ 0x00,0x00,0x00,0x00,0x00,0xFE,0xCC,0x18,0x30,0x60,0xC6,0xFE,0x00,0x00,0x00,0x00, /* 0x5B [ { ] [ 91 ] */ 0x00,0x00,0x0E,0x18,0x18,0x18,0x70,0x18,0x18,0x18,0x18,0x0E,0x00,0x00,0x00,0x00, /* 0x5C [ | ] [ 92 ] */ 0x00,0x00,0x18,0x18,0x18,0x18,0x00,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00, /* 0x5D [ } ] [ 93 ] */ 0x00,0x00,0x70,0x18,0x18,0x18,0x0E,0x18,0x18,0x18,0x18,0x70,0x00,0x00,0x00,0x00, /* 0x5E [ ~ ] [ 94 ] */ 0x00,0x00,0x76,0xDC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, }; #endif
wakwak-koba/M5GFX
src/lgfx/Fonts/IPA/lgfx_font_japan.h
#ifndef LGFX_FONT_JAPAN_H_ #define LGFX_FONT_JAPAN_H_ #include <stdint.h> extern const uint8_t lgfx_font_japan_mincho_8[]; extern const uint8_t lgfx_font_japan_mincho_12[]; extern const uint8_t lgfx_font_japan_mincho_16[]; extern const uint8_t lgfx_font_japan_mincho_20[]; extern const uint8_t lgfx_font_japan_mincho_24[]; extern const uint8_t lgfx_font_japan_mincho_28[]; extern const uint8_t lgfx_font_japan_mincho_32[]; extern const uint8_t lgfx_font_japan_mincho_36[]; extern const uint8_t lgfx_font_japan_mincho_40[]; extern const uint8_t lgfx_font_japan_mincho_p_8[]; extern const uint8_t lgfx_font_japan_mincho_p_12[]; extern const uint8_t lgfx_font_japan_mincho_p_16[]; extern const uint8_t lgfx_font_japan_mincho_p_20[]; extern const uint8_t lgfx_font_japan_mincho_p_24[]; extern const uint8_t lgfx_font_japan_mincho_p_28[]; extern const uint8_t lgfx_font_japan_mincho_p_32[]; extern const uint8_t lgfx_font_japan_mincho_p_36[]; extern const uint8_t lgfx_font_japan_mincho_p_40[]; extern const uint8_t lgfx_font_japan_gothic_8[]; extern const uint8_t lgfx_font_japan_gothic_12[]; extern const uint8_t lgfx_font_japan_gothic_16[]; extern const uint8_t lgfx_font_japan_gothic_20[]; extern const uint8_t lgfx_font_japan_gothic_24[]; extern const uint8_t lgfx_font_japan_gothic_28[]; extern const uint8_t lgfx_font_japan_gothic_32[]; extern const uint8_t lgfx_font_japan_gothic_36[]; extern const uint8_t lgfx_font_japan_gothic_40[]; extern const uint8_t lgfx_font_japan_gothic_p_8[]; extern const uint8_t lgfx_font_japan_gothic_p_12[]; extern const uint8_t lgfx_font_japan_gothic_p_16[]; extern const uint8_t lgfx_font_japan_gothic_p_20[]; extern const uint8_t lgfx_font_japan_gothic_p_24[]; extern const uint8_t lgfx_font_japan_gothic_p_28[]; extern const uint8_t lgfx_font_japan_gothic_p_32[]; extern const uint8_t lgfx_font_japan_gothic_p_36[]; extern const uint8_t lgfx_font_japan_gothic_p_40[]; #endif
wakwak-koba/M5GFX
src/lgfx/Fonts/efont/lgfx_efont_kr.h
#include <stdint.h> #define U8G2_USE_LARGE_FONTS extern const uint8_t lgfx_efont_kr_10[]; extern const uint8_t lgfx_efont_kr_10_b[]; extern const uint8_t lgfx_efont_kr_10_bi[]; extern const uint8_t lgfx_efont_kr_10_i[]; extern const uint8_t lgfx_efont_kr_12[]; extern const uint8_t lgfx_efont_kr_12_b[]; extern const uint8_t lgfx_efont_kr_12_bi[]; extern const uint8_t lgfx_efont_kr_12_i[]; extern const uint8_t lgfx_efont_kr_14[]; extern const uint8_t lgfx_efont_kr_14_b[]; extern const uint8_t lgfx_efont_kr_14_bi[]; extern const uint8_t lgfx_efont_kr_14_i[]; extern const uint8_t lgfx_efont_kr_16[]; extern const uint8_t lgfx_efont_kr_16_b[]; extern const uint8_t lgfx_efont_kr_16_bi[]; extern const uint8_t lgfx_efont_kr_16_i[]; extern const uint8_t lgfx_efont_kr_24[]; extern const uint8_t lgfx_efont_kr_24_b[]; extern const uint8_t lgfx_efont_kr_24_bi[]; extern const uint8_t lgfx_efont_kr_24_i[];
wakwak-koba/M5GFX
src/lgfx/Fonts/efont/lgfx_efont_cn.h
<reponame>wakwak-koba/M5GFX #include <stdint.h> #define U8G2_USE_LARGE_FONTS extern const uint8_t lgfx_efont_cn_10[]; extern const uint8_t lgfx_efont_cn_10_b[]; extern const uint8_t lgfx_efont_cn_10_bi[]; extern const uint8_t lgfx_efont_cn_10_i[]; extern const uint8_t lgfx_efont_cn_12[]; extern const uint8_t lgfx_efont_cn_12_b[]; extern const uint8_t lgfx_efont_cn_12_bi[]; extern const uint8_t lgfx_efont_cn_12_i[]; extern const uint8_t lgfx_efont_cn_14[]; extern const uint8_t lgfx_efont_cn_14_b[]; extern const uint8_t lgfx_efont_cn_14_bi[]; extern const uint8_t lgfx_efont_cn_14_i[]; extern const uint8_t lgfx_efont_cn_16[]; extern const uint8_t lgfx_efont_cn_16_b[]; extern const uint8_t lgfx_efont_cn_16_bi[]; extern const uint8_t lgfx_efont_cn_16_i[]; extern const uint8_t lgfx_efont_cn_24[]; extern const uint8_t lgfx_efont_cn_24_b[]; extern const uint8_t lgfx_efont_cn_24_bi[]; extern const uint8_t lgfx_efont_cn_24_i[];
wakwak-koba/M5GFX
src/lgfx/v1/gitTagVersion.h
<reponame>wakwak-koba/M5GFX #define LGFX_VERSION_MAJOR 1 #define LGFX_VERSION_MINOR 0 #define LGFX_VERSION_PATCH 0 #define LOVYANGFX_VERSION F( LGFX_VERSION_MAJOR "." LGFX_VERSION_MINOR "." LGFX_VERSION_PATCH )
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/MyPlgunProtocol.h
<gh_stars>1-10 // // MyPlgunProtocol.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import <Foundation/Foundation.h> #import <Cordova/CDV.h> @protocol MyPlgunProtocol <NSObject> //- (void)onHookedPluginResult:(CDVPluginResult*)result callbackId:(NSString*)callbackId; - (void)pluginUnload; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/PluginCircle.h
// // PluginCircle.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import "CordovaGoogleMaps.h" #import "MyPlgunProtocol.h" @interface PluginCircle : CDVPlugin<MyPlgunProtocol> @property (nonatomic, strong) GoogleMapsViewController* mapCtrl; @property (nonatomic) BOOL initialized; - (void)create:(CDVInvokedUrlCommand*)command; - (void)setCenter:(CDVInvokedUrlCommand*)command; - (void)setFillColor:(CDVInvokedUrlCommand*)command; - (void)setStrokeColor:(CDVInvokedUrlCommand*)command; - (void)setStrokeWidth:(CDVInvokedUrlCommand*)command; - (void)setRadius:(CDVInvokedUrlCommand*)command; - (void)setZIndex:(CDVInvokedUrlCommand*)command; - (void)setVisible:(CDVInvokedUrlCommand*)command; - (void)remove:(CDVInvokedUrlCommand*)command; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/MyPluginLayerDebugView.h
// // MyPluginLayerDebugView.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import <UIKit/UIKit.h> #import "GoogleMapsViewController.h" @interface MyPluginLayerDebugView : UIView @property (nonatomic) UIView *webView; @property (nonatomic) BOOL debuggable; @property (nonatomic) NSMutableDictionary *mapCtrls; @property (nonatomic) NSMutableDictionary *HTMLNodes; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/PluginGroundOverlay.h
<filename>plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/PluginGroundOverlay.h // // PluginGroundOverlay.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import "CordovaGoogleMaps.h" #import "MyPlgunProtocol.h" #import "PluginUtil.h" @interface PluginGroundOverlay : CDVPlugin<MyPlgunProtocol> //@property (nonatomic, strong) NSCache* imgCache; @property (nonatomic) BOOL initialized; @property (nonatomic, strong) GoogleMapsViewController* mapCtrl; - (void)create:(CDVInvokedUrlCommand*)command; - (void)remove:(CDVInvokedUrlCommand *)command; - (void)setClickable:(CDVInvokedUrlCommand*)command; - (void)setVisible:(CDVInvokedUrlCommand*)command; - (void)setImage:(CDVInvokedUrlCommand*)command; - (void)setBounds:(CDVInvokedUrlCommand*)command; - (void)setOpacity:(CDVInvokedUrlCommand*)command; - (void)setBearing:(CDVInvokedUrlCommand*)command; - (void)setZIndex:(CDVInvokedUrlCommand *)command; - (void)_setImage:(GMSGroundOverlay *)layer urlStr:(NSString *)urlStr completionHandler:(void (^)(BOOL succeeded))completionHandler; - (void)downloadImageWithURL:(NSURL *)url completionBlock:(void (^)(BOOL succeeded, UIImage *image))completionBlock; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/External.h
<filename>plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/External.h<gh_stars>1-10 // // External.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import "CordovaGoogleMaps.h" #import "MyPlgunProtocol.h" @interface External : CDVPlugin -(void)launchNavigation:(CDVInvokedUrlCommand *)command; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/MyPluginScrollView.h
// // MyPluginScrollView.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import <UIKit/UIKit.h> #import "MyPluginLayerDebugView.h" @interface MyPluginScrollView : UIScrollView @property (nonatomic) MyPluginLayerDebugView *debugView; - (void)attachView:(UIView *)view; @end
houdass/iad-ease-client
plugins/cordova-plugin-googlemaps/src/ios/GoogleMaps/CordovaGoogleMaps.h
// // CordovaGoogleMaps.h // cordova-googlemaps-plugin v2 // // Created by <NAME>. // // #import <Cordova/CDV.h> #import <GoogleMaps/GoogleMaps.h> #import "GoogleMapsViewController.h" #import "PluginUtil.h" #import "PluginMap.h" #import "MyPluginLayer.h" #import "MyPlgunProtocol.h" @interface CordovaGoogleMaps : CDVPlugin<CLLocationManagerDelegate> @property (nonatomic) MyPluginLayer *pluginLayer; @property (nonatomic, strong) CLLocationManager *locationManager; @property (nonatomic, strong) NSMutableArray *locationCommandQueue; @property (nonatomic) NSMutableDictionary *pluginMaps; @property (nonatomic) NSOperationQueue *executeQueue; - (void)getMap:(CDVInvokedUrlCommand*)command; - (void)getMyLocation:(CDVInvokedUrlCommand*)command; - (void)clearHtmlElements:(CDVInvokedUrlCommand *)command; - (void)putHtmlElements:(CDVInvokedUrlCommand *)command; - (void)removeMap:(CDVInvokedUrlCommand *)command; - (void)pause:(CDVInvokedUrlCommand *)command; - (void)resume:(CDVInvokedUrlCommand *)command; @end
TheSlipper/rng-visualisation
middle_square_rng.h
<filename>middle_square_rng.h #include <stdio.h> #include <time.h> #include <math.h> #include <stdlib.h> #include "terminal_colors.h" unsigned char ms_rng_(unsigned char seed) { int buffer = (int)pow(seed, 2); int beggining = buffer/10000; int b[3]; b[0] = buffer - (beggining * 10000); // 4516 b[1] = b[0] - (b[0]/1000) * 1000; b[2] = b[1] - (b[1]/100) * 100; int ending = b[2] - (b[2]/10) * 10; int asida = (beggining * 10) + ending; return (unsigned char) (asida); } unsigned char ms_rng(unsigned char seed) { int buffer = (int)pow(seed, 2); int beggining = buffer/1000; int b[2]; b[0] = buffer - (beggining * 1000); b[1] = b[0] - (b[0] * 100) * 100; int ending = b[1] - (b[1]/10) * 10; int asida = (beggining * 10) + ending; return (unsigned char) (asida); } void middle_square_to_ppm(const int dim_x, const int dim_y) { printf("[Creating the file (middle_square_to_ppm)]\r\n"); unsigned char entry_seed = (unsigned char) (rand() % 255); FILE * fp = fopen("middle_square.ppm", "wb"); if (fp == NULL) printf(ANSI_COLOR_RED "[An error occured - cannot create the file (rand_to_ppm)]" ANSI_COLOR_RESET); fprintf(fp, "P6\n%d %d\n255\n", dim_x, dim_y); printf("[Generating the image (middle_square_to_ppm)]\r\n"); unsigned char color[3]; for (int i=0; i < dim_x; i++) { for (int j=0; j < dim_y; j++) { if (i != 0 && j != 0) color[0] = ms_rng(color[2]); /* red */ else color[0] = ms_rng_(entry_seed); //printf("R: %i ", color[0]); color[1] = ms_rng(color[0]); //printf("G: %i ", color[1]); color[2] = ms_rng(color[1]); //printf("B: %i\r\n", color[2]); fwrite(color,1,3,fp); } } printf("[Closing the buffer (middle_square_to_ppm)]\r\n"); fclose(fp); }
TheSlipper/rng-visualisation
linear_congruential_rng.h
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "terminal_colors.h" int lin_cngr(int a, int c, int m, int *seed) { *seed = (*seed * a + c) % m; return *seed; } void lin_con_to_ppm(const int dim_x, const int dim_y) { // Modulus 2^31 int a = 1103515245; // multiplier int c = 12345; // increment int m = (int)pow(2, 31); int seed = 1; // int *seed_ptr = &seed; printf("[Creating the file (lin_con_to_ppm)]\r\n"); FILE * fp = fopen("linear_congruential.ppm", "wb"); if (fp == NULL) printf(ANSI_COLOR_RED "[An error occured - cannot create the file (lin_con_to_ppm)]" ANSI_COLOR_RESET); fprintf(fp, "P6\n%d %d\n255\n", dim_x, dim_y); printf("[Generating the image (lin_con_to_ppm)]\r\n"); unsigned char color[3]; for (int i=0; i < dim_x; i++) { for (int j=0; j < dim_y; j++) { color[0] = (unsigned char)(lin_cngr(a, c, m, &seed)%255); color[1] = (unsigned char)(lin_cngr(a, c, m, &seed)%255); color[2] = (unsigned char)(lin_cngr(a, c, m, &seed)%255); fwrite(color,1,3,fp); } } printf("[Closing the buffer (lin_con_to_ppm)]\r\n"); fclose(fp); }
TheSlipper/rng-visualisation
main.c
<filename>main.c #include <stdio.h> #include <time.h> #include <string.h> #include "terminal_colors.h" #include "middle_square_rng.h" #include "linear_congruential_rng.h" #include "perlin_noise.h" void rand_to_ppm(const int dim_x, const int dim_y) { int i, j; printf("[Creating the file (rand_to_ppm)]\r\n"); FILE * fp = fopen("rand.ppm", "wb"); if (fp == NULL) printf(ANSI_COLOR_RED "[An error occured - cannot create the file (rand_to_ppm)]" ANSI_COLOR_RESET); fprintf(fp, "P6\n%d %d\n255\n", dim_x, dim_y); printf("[Generating the image (middle_square_to_ppm)]\r\n"); for(j=0; j<dim_y; ++j) { for(i=0; i<dim_x; ++i) { static unsigned char color[3]; color[0]= (unsigned char) (rand() % 255); /* red */ color[1]= (unsigned char) (rand() % 255); /* green */ color[2]= (unsigned char) (rand() % 255); /* blue */ fwrite(color,1,3,fp); } } printf("[Closing the buffer (middle_square_to_ppm)]\r\n"); fclose(fp); } int main(int argc, const char **argv) { // TODO: Maybe make a "time-elapsed" thingy // if (argc == 1) // return 0; // else if (argc > 1) // { // if(!strcmp(argv[1], "rand")) // rand_to_ppm(255, 255); // else if(!strcmp(argv[1], "middle_square")) // middle_square_to_ppm(255, 255); // else if(!strcmp(argv[1], "linear_congruential")) // lin_con_to_ppm(255, 255); // else if(!strcmp(argv[1], "perlin_noise")) // perlin_noise_to_ppm(255, 255); // else // lin_con_to_ppm(255, 255); // } perlin_noise_to_ppm(255, 255); return 0; }
isra-fp/es-uart-comms-bt
SE_T1_FabelaPerez_UART.c
<gh_stars>0 /********************************************************** Student: <NAME> P: se_t1_FabelaPerez.c Device: Tiva C - TM4C1294NCPDT Subject: Embedded Systems *Semester: 2021-1 Topic: UART HM: "Development of wireless control of drop-down messages" ***********************************************************/ //Library #include <stdint.h> //#include "inc/tm4c1294ncpdt.h" //Create definitions for Port M registers - Display #define GPIO_PORTM_DATA_RM (*((volatile unsigned long *)0x400633FC)) #define GPIO_PORTM_DIR_RM (*((volatile unsigned long *)0x40063400)) #define GPIO_PORTM_PUR_RM (*((volatile unsigned long *)0x40063510)) #define GPIO_PORTM_DEN_RM (*((volatile unsigned long *)0x4006351C)) #define GPIO_PORTM_CR_RM (*((volatile unsigned long *)0x40063524)) #define GPIO_PORTM_AMSEL_RM (*((volatile unsigned long *)0x40063528)) #define GPIO_PORTM_PCTL_RM (*((volatile unsigned long *)0x4006352C)) //Create definitions for Port K registers - Digits #define GPIO_PORTK_DATA_RK (*((volatile unsigned long *)0x400613FC)) #define GPIO_PORTK_DIR_RK (*((volatile unsigned long *)0x40061400)) #define GPIO_PORTK_PUR_RK (*((volatile unsigned long *)0x40061510)) #define GPIO_PORTK_DEN_RK (*((volatile unsigned long *)0x4006151C)) #define GPIO_PORTK_CR_RK (*((volatile unsigned long *)0x40061524)) #define GPIO_PORTK_AMSEL_RK (*((volatile unsigned long *)0x40061528)) #define GPIO_PORTK_AFSEL_RK (*((volatile unsigned long *)0x40061420)) #define GPIO_PORTK_PCTL_RK (*((volatile unsigned long *)0x4006152C)) //Create definitions for Port C registers #define GPIO_PORTC_AFSEL_R (*((volatile uint32_t *)0x4005A420)) #define GPIO_PORTC_DEN_R (*((volatile uint32_t *)0x4005A51C)) #define GPIO_PORTC_AMSEL_R (*((volatile uint32_t *)0x4005A528)) #define GPIO_PORTC_PCTL_R (*((volatile uint32_t *)0x4005A52C)) //Create definitions for UART #define UART7_DR_R (*((volatile uint32_t *)0x40013000)) #define UART7_FR_R (*((volatile uint32_t *)0x40013018)) #define UART_FR_TXFF 0x00000020 // FIFO TX UART llena #define UART_FR_RXFE 0x00000010 // FIFO RX UART vacia #define UART7_IBRD_R (*((volatile uint32_t *)0x40013024)) //Divisor de entero de Baud Rate UART (p.1184) #define UART7_FBRD_R (*((volatile uint32_t *)0x40013028)) //Divisor de fracción de Baud Rate UART (p.1185) #define UART7_LCRH_R (*((volatile uint32_t *)0x4001302C)) // Control de linea UART (p.1186) #define UART_LCRH_WLEN_8 0x00000060 // palabra de 8 bits #define UART_LCRH_FEN 0x00000010 // Habilitación de la FIFO de la UART #define UART7_CTL_R (*((volatile uint32_t *)0x40013030)) //Control UART (p.1188) #define UART7_CC_R (*((volatile uint32_t *)0x40013FC8)) // Configuración de control (p.1213) #define UART_CC_CS_M 0x0000000F // UART fuente del reloj de Baud Rate #define UART_CC_CS_SYSCLK 0x00000000 // Sistema de reloj (basado en fuente de reloj y factor de división) // source and divisor factor) #define UART_CC_CS_PIOSC 0x00000005 // PIOSC #define SYSCTL_ALTCLKCFG_R (*((volatile uint32_t *)0x400FE138))//Configuración de reloj alterno (p.280) #define SYSCTL_ALTCLKCFG_ALTCLK_M \ 0x0000000F // Fuente alternativa de reloj #define SYSCTL_ALTCLKCFG_ALTCLK_PIOSC \ 0x00000000 // PIOSC #define SYSCTL_RCGCGPIO_R (*((volatile uint32_t *)0x400FE608)) // Control de reloj GPIO (p.382) #define SYSCTL_RCGCUART_R (*((volatile uint32_t *)0x400FE618)) // Control de reloj UART (p.388) #define SYSCTL_PRGPIO_R (*((volatile uint32_t *)0x400FEA08)) // Estado de GPIO (p.499) //#define SYSCTL_PRGPIO_R0 0x00000004 // Puerto GPIO C listo #define SYSCTL_PRUART_R (*((volatile uint32_t *)0x400FEA18))//Estado del UART (p.505) #define SYSCTL_PRUART_R0 0x00000080 // UART Module 7 del UART listo volatile uint8_t uart; void init(void); void delay(void); void msg0(void); void msg1(void); //Initialize the Ports void init(void){ SYSCTL_RCGCUART_R |= 0x00000080; // activa el reloj para el UART7 (p.388) while((SYSCTL_PRUART_R&SYSCTL_PRUART_R0) == 0){}; // Se espera a que el reloj se estabilice (p.505) UART7_CTL_R &= ~0x00000001; // se deshabilita el UART (p.1188) UART7_IBRD_R = 104; // IBRD = int(9,600 / (16 * 115,200)) = int(104.1667) (p.1184) UART7_FBRD_R = 11; // FBRD = round(0.1667 * 64) = 44 (p. 1185) // Palabra de 8 bits (sin bits de paridad, un bit stop, FIFOs) (p. 1186) UART7_LCRH_R = (UART_LCRH_WLEN_8|UART_LCRH_FEN); // UART toma su reloj del la fuente alterna como se define por SYSCTL_ALTCLKCFG_R (p. 1213) UART7_CC_R = (UART7_CC_R&~UART_CC_CS_M)+UART_CC_CS_PIOSC; // La fuente de reloj alterna es el PIOSC (default)(P. 280) SYSCTL_ALTCLKCFG_R = (SYSCTL_ALTCLKCFG_R&~SYSCTL_ALTCLKCFG_ALTCLK_M)+SYSCTL_ALTCLKCFG_ALTCLK_PIOSC; // // alta velocidad deshabilitada;divide el reloj por 16 en lugar de 8 (default)(1208) UART7_CTL_R &= ~0x00000020; UART7_CTL_R |= 0x00000001; // habilita el UART (p.1208) SYSCTL_RCGCGPIO_R |= 0xE06; // Clock Enable, Port K, M and C while ((SYSCTL_RCGCGPIO_R & 0xE06) == 0){}; //Initialize Port M - Display GPIO_PORTM_CR_RM = 0x7F; GPIO_PORTM_AMSEL_RM = 0x00; // Disable analog function GPIO_PORTM_PCTL_RM = 0x00000000; // GPIO clear bit PCTL GPIO_PORTM_DIR_RM = 0xFF; // Set PM6-PM0 outputs GPIO_PORTM_PUR_RM = 0x00; // Enable pullup resistors GPIO_PORTM_DEN_RM = 0xFF; // Enable digital pins PM6-PM0 //Initialize Port K - Digits GPIO_PORTK_CR_RK = 0x7F; GPIO_PORTK_AMSEL_RK = 0x00; // Disable analog function GPIO_PORTK_PCTL_RK = 0x00000000; // GPIO clear bit PCTL GPIO_PORTK_DIR_RK = 0xFF; // PK3-PK0 output GPIO_PORTK_PUR_RK = 0x00; // Disable pullup resistors GPIO_PORTK_DEN_RK = 0xFF; // Enable digital pins PK3-PK0 //Initialize Port C - UART GPIO_PORTC_AFSEL_R |= 0x30; // habilita funcion alterna en PC5-4 GPIO_PORTC_DEN_R |= 0x30; // habilita digital I/O en PC5-4 // configura PC5-4 como UART GPIO_PORTC_PCTL_R = (GPIO_PORTC_PCTL_R &0xFF00FFFF)+0x00110000; GPIO_PORTC_AMSEL_R &= ~0x30; // deshabilita la funcionabilidad analogica de PC } //Messages void msg0(void){ GPIO_PORTM_DATA_RM = 0x5E; //Write D GPIO_PORTK_DATA_RK = 0x1; //Write in Digit 1 delay(); GPIO_PORTM_DATA_RM = 0x39; //Write C GPIO_PORTK_DATA_RK = 0x2; //Write in Digit 2 delay(); GPIO_PORTM_DATA_RM = 0x7C; //Write B GPIO_PORTK_DATA_RK = 0x4; //Write in Digit 3 delay(); GPIO_PORTM_DATA_RM = 0x77; //Write A GPIO_PORTK_DATA_RK = 0x8; //Write in Digit 4 delay(); } void msg1(void){ GPIO_PORTM_DATA_RM = 0x66; //Write 4 GPIO_PORTK_DATA_RK = 0x1; //Write in Digit 1 delay(); GPIO_PORTM_DATA_RM = 0x4F; //Write 3 GPIO_PORTK_DATA_RK = 0x2; //Write in Digit 2 delay(); GPIO_PORTM_DATA_RM = 0x5B; //Write 2 GPIO_PORTK_DATA_RK = 0x4; //Write in Digit 3 delay(); GPIO_PORTM_DATA_RM = 0x06; //Write 1 GPIO_PORTK_DATA_RK = 0x8; //Write in Digit 4 delay(); } void msg2(void){ GPIO_PORTM_DATA_RM = 0x3E; //Write U GPIO_PORTK_DATA_RK = 0x1; //Write in Digit 1 delay(); GPIO_PORTM_DATA_RM = 0x76; //Write H GPIO_PORTK_DATA_RK = 0x2; //Write in Digit 2 delay(); GPIO_PORTM_DATA_RM = 0x3E; //Write U GPIO_PORTK_DATA_RK = 0x4; //Write in Digit 3 delay(); GPIO_PORTM_DATA_RM = 0x76; //Write H GPIO_PORTK_DATA_RK = 0x8; //Write in Digit 4 delay(); } void msg3(void){ GPIO_PORTM_DATA_RM = 0x79; //Write E GPIO_PORTK_DATA_RK = 0x1; //Write in Digit 1 delay(); GPIO_PORTM_DATA_RM = 0x3E; //Write V GPIO_PORTK_DATA_RK = 0x2; //Write in Digit 2 delay(); GPIO_PORTM_DATA_RM = 0x06; //Write I GPIO_PORTK_DATA_RK = 0x4; //Write in Digit 3 delay(); GPIO_PORTM_DATA_RM = 0x71; //Write F GPIO_PORTK_DATA_RK = 0x8; //Write in Digit 4 delay(); } // Delay void delay(void){ int t = 0; for(t=0;t<20000;t++){} //Aprox. 0.1 ms } // Main Program void main(void){ init(); while(1){ if((UART7_FR_R&UART_FR_RXFE) == 0){ uart=UART7_DR_R&0xFF; } else{ switch(uart){ case 0x01: //Msg 1 msg0(); break; case 0x02: //Msg 2 msg1(); break; case 0x03: //Msg 3 msg2(); break; case 0x04: //Msg 4 msg3(); break; } } } }
gordonIanJ/vagrant-oracle-cloud-insfrastructure
MySQL_Support_Exercise/working_directories/16_/thcr.c
<filename>MySQL_Support_Exercise/working_directories/16_/thcr.c /* thcr.c - random thread failure */ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <assert.h> /* 1 of 3 possible failure points */ void pf3() { void *m; m= malloc(8192); free(m); free(m); free(0); } /* 1 of 3 possible failure points */ void pf2() { int x= 1/0; free((void *)x); } /* 1 of 3 possible failure points */ void pf1() { int a= 0; assert(a=1); assert(a==0); } /* arguments passed to each thread */ struct targ { int tc; /* thread count (number) */ int cr; /* whether thread should crash */ int pf; /* failure point to use */ }; void* handler( void* arg ) { struct targ *ta; ta= (struct targ*)arg; if (ta->cr == 1) { switch (ta->pf) { case 0: pf1(); break; case 1: pf2(); break; case 2: pf3(); break; } } pthread_exit(0); } int main() { pthread_t tp[10]; struct targ ta[10]; int ctr; srandom(time(0)); for (ctr= 0; ctr< 10; ctr++) { ta[ctr].tc= ctr; ta[ctr].cr= random()%2; ta[ctr].pf= random()%3; } for (ctr= 0; ctr< 10; ctr++) { pthread_create(&tp[ctr], NULL, handler, (void*)&ta[ctr]); } for (ctr= 0; ctr< 10; ctr++) { pthread_join(tp[ctr],0); } return 0; }
gordonIanJ/vagrant-oracle-cloud-insfrastructure
MySQL_Support_Exercise/working_directories/7_hostnames/hostnames.c
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { MYSQL *m; MYSQL_RES *r; MYSQL_ROW w; MYSQL_STMT *s; MYSQL_BIND par[2]; MYSQL_BIND res[2]; char sd[4][60]; unsigned long sdl[4]; my_bool nl[4]; char sql1[]= "SELECT user, host FROM mysql.user WHERE host LIKE '%localhost%'"; char sql2[]= "SELECT user, host FROM mysql.user WHERE host LIKE ?"; mysql_real_connect(m,"localhost","root","","test",0,NULL,0); puts("Regular Execution"); mysql_real_query(m, sql1, strlen(sql1)); r= mysql_store_result(m); while (w= mysql_fetch_row) { printf("%s@%s\n", w[0], w[1]); } puts("Prepared Statement"); mysql_stmt_prepare(s, sql2, strlen(sql2)); // parameter par[0].buffer_type= MYSQL_TYPE_STRING; par[0].buffer= sd[0]; par[0].is_null= 0; par[0].length= &sdl[0]; mysql_stmt_bind_param(s,par); strncpy(sd[0],"%localhost%",60); sdl[0]= strlen(sd[0]); mysql_stmt_execute(s); res[0].buffer_type= MYSQL_TYPE_STRING; res[0].buffer= sd[1]; res[0].buffer_length= 60; res[0].is_null= &nl[1]; res[0].length= &sdl[1]; res[1].buffer_type= MYSQL_TYPE_STRING; res[1].buffer= sd[2]; res[1].buffer_length= 60; res[1].is_null= &nl[2]; res[1].length= &sdl[2]; mysql_stmt_bind_result(s,res); while(w= mysql_fetch_row(r)) { printf("%s@%s\n", sd[1], sd[2]); } mysql_stmt_free_result(s); mysql_stmt_close(s); mysql_close(m); }
pywttb/libhv
examples/httpd/handler.h
<filename>examples/httpd/handler.h #ifndef HV_HTTPD_HANDLER_H #define HV_HTTPD_HANDLER_H #include "HttpService.h" class Handler { public: // preprocessor => api_handlers => postprocessor static int preprocessor(HttpRequest* req, HttpResponse* resp); static int postprocessor(HttpRequest* req, HttpResponse* resp); static int errorHandler(const HttpContextPtr& ctx); static int largeFileHandler(const HttpContextPtr& ctx); static int sleep(const HttpRequestPtr& req, const HttpResponseWriterPtr& writer); static int setTimeout(const HttpContextPtr& ctx); static int query(const HttpContextPtr& ctx); static int kv(HttpRequest* req, HttpResponse* resp); static int json(HttpRequest* req, HttpResponse* resp); static int form(HttpRequest* req, HttpResponse* resp); static int grpc(HttpRequest* req, HttpResponse* resp); static int test(const HttpContextPtr& ctx); static int restful(const HttpContextPtr& ctx); static int login(const HttpContextPtr& ctx); static int upload(const HttpContextPtr& ctx); private: static int response_status(HttpResponse* resp, int code = 200, const char* message = NULL) { if (message == NULL) message = http_status_str((enum http_status)code); resp->Set("code", code); resp->Set("message", message); return code; } static int response_status(const HttpResponseWriterPtr& writer, int code = 200, const char* message = NULL) { response_status(writer->response.get(), code, message); writer->End(); return code; } static int response_status(const HttpContextPtr& ctx, int code = 200, const char* message = NULL) { response_status(ctx->response.get(), code, message); ctx->send(); return code; } }; #endif // HV_HTTPD_HANDLER_H
pywttb/libhv
examples/tinyproxyd.c
<filename>examples/tinyproxyd.c /* * tinyproxyd tiny http proxy server * * @build make examples * * @http_server bin/tinyhttpd 8000 * @proxy_server bin/tinyproxyd 1080 * * @proxy_client bin/curl -v www.httpbin.org/get --http-proxy 127.0.0.1:1080 * bin/curl -v www.httpbin.org/post -d hello --http-proxy 127.0.0.1:1080 * curl -v www.httpbin.org/get --proxy http://127.0.0.1:1080 * curl -v www.httpbin.org/post -d hello --proxy http://127.0.0.1:1080 * */ #include "hv.h" #include "hloop.h" /* * workflow: * hloop_new -> hloop_create_tcp_server -> hloop_run -> * on_accept -> HV_ALLOC(http_conn_t) -> hio_readline -> * on_recv -> parse_http_request_line -> hio_readline -> * on_recv -> parse_http_head -> ... -> hio_readline -> * on_head_end -> hio_setup_upstream -> * on_upstream_connect -> hio_write_upstream(head) -> * on_body -> hio_write_upstream(body) -> * on_upstream_close -> hio_close -> * on_close -> HV_FREE(http_conn_t) * */ static char proxy_host[64] = "0.0.0.0"; static int proxy_port = 1080; static int proxy_ssl = 0; static int thread_num = 1; static hloop_t* accept_loop = NULL; static hloop_t** worker_loops = NULL; #define HTTP_KEEPALIVE_TIMEOUT 60000 // ms #define HTTP_MAX_URL_LENGTH 256 #define HTTP_MAX_HEAD_LENGTH 1024 typedef enum { s_begin, s_first_line, s_request_line = s_first_line, s_status_line = s_first_line, s_head, s_head_end, s_body, s_end } http_state_e; typedef struct { // first line int major_version; int minor_version; union { // request line struct { char method[32]; char path[HTTP_MAX_URL_LENGTH]; }; // status line struct { int status_code; char status_message[64]; }; }; // headers char host[64]; int content_length; char content_type[64]; unsigned keepalive: 1; unsigned proxy: 1; char head[HTTP_MAX_HEAD_LENGTH]; int head_len; // body char* body; int body_len; // body_len = content_length } http_msg_t; typedef struct { hio_t* io; http_state_e state; http_msg_t request; // http_msg_t response; } http_conn_t; static int http_request_dump(http_conn_t* conn, char* buf, int len) { http_msg_t* msg = &conn->request; int offset = 0; // request line const char* path = msg->path; if (msg->proxy) { const char* pos = strstr(msg->path, "://"); pos = pos ? pos + 3 : msg->path; path = strchr(pos, '/'); } if (path == NULL) path = "/"; offset += snprintf(buf + offset, len - offset, "%s %s HTTP/%d.%d\r\n", msg->method, path, msg->major_version, msg->minor_version); // headers if (msg->proxy) { if (msg->head_len) { memcpy(buf + offset, msg->head, msg->head_len); offset += msg->head_len; } char peeraddrstr[SOCKADDR_STRLEN] = {0}; SOCKADDR_STR(hio_peeraddr(conn->io), peeraddrstr); offset += snprintf(buf + offset, len - offset, "X-Origin-IP: %s\r\n", peeraddrstr); } else { offset += snprintf(buf + offset, len - offset, "Connection: %s\r\n", msg->keepalive ? "keep-alive" : "close"); if (msg->content_length > 0) { offset += snprintf(buf + offset, len - offset, "Content-Length: %d\r\n", msg->content_length); } if (*msg->content_type) { offset += snprintf(buf + offset, len - offset, "Content-Type: %s\r\n", msg->content_type); } } // TODO: Add your headers offset += snprintf(buf + offset, len - offset, "\r\n"); // body if (msg->body && msg->content_length > 0) { memcpy(buf + offset, msg->body, msg->content_length); offset += msg->content_length; } return offset; } static bool parse_http_request_line(http_conn_t* conn, char* buf, int len) { // GET / HTTP/1.1 http_msg_t* req = &conn->request; sscanf(buf, "%s %s HTTP/%d.%d", req->method, req->path, &req->major_version, &req->minor_version); if (req->major_version != 1) return false; if (req->minor_version == 1) req->keepalive = 1; // printf("%s %s HTTP/%d.%d\r\n", req->method, req->path, req->major_version, req->minor_version); return true; } static bool parse_http_head(http_conn_t* conn, char* buf, int len) { http_msg_t* req = &conn->request; // Content-Type: text/html const char* key = buf; const char* val = buf; char* delim = strchr(buf, ':'); if (!delim) return false; *delim = '\0'; val = delim + 1; // trim space while (*val == ' ') ++val; // printf("%s: %s\r\n", key, val); if (stricmp(key, "Host") == 0) { strncpy(req->host, val, sizeof(req->host) - 1); } else if (stricmp(key, "Content-Length") == 0) { req->content_length = atoi(val); } else if (stricmp(key, "Content-Type") == 0) { strncpy(req->content_type, val, sizeof(req->content_type) - 1); } else if (stricmp(key, "Connection") == 0 || stricmp(key, "Proxy-Connection") == 0) { if (stricmp(val, "close") == 0) { req->keepalive = 0; } } return true; } static void on_upstream_connect(hio_t* upstream_io) { // printf("on_upstream_connect\n"); http_conn_t* conn = (http_conn_t*)hevent_userdata(upstream_io); http_msg_t* req = &conn->request; // send head char stackbuf[HTTP_MAX_HEAD_LENGTH + 1024] = {0}; char* buf = stackbuf; int buflen = sizeof(stackbuf); int msglen = http_request_dump(conn, buf, buflen); hio_write(upstream_io, buf, msglen); if (conn->state != s_end) { // start recv body then upstream hio_read_start(conn->io); } else { if (req->keepalive) { // Connection: keep-alive\r\n // reset and receive next request memset(&conn->request, 0, sizeof(http_msg_t)); // memset(&conn->response, 0, sizeof(http_msg_t)); conn->state = s_first_line; hio_readline(conn->io); } } // start recv response hio_read_start(upstream_io); } static int on_head_end(http_conn_t* conn) { http_msg_t* req = &conn->request; if (req->host[0] == '\0') { fprintf(stderr, "No Host header!\n"); return -1; } char backend_host[64] = {0}; strcpy(backend_host, req->host); int backend_port = 80; char* pos = strchr(backend_host, ':'); if (pos) { *pos = '\0'; backend_port = atoi(pos + 1); } if (backend_port == proxy_port && (strcmp(backend_host, proxy_host) == 0 || strcmp(backend_host, "localhost") == 0 || strcmp(backend_host, "127.0.0.1") == 0)) { req->proxy = 0; return 0; } // NOTE: blew for proxy req->proxy = 1; int backend_ssl = strncmp(req->path, "https", 5) == 0 ? 1 : 0; // printf("upstream %s:%d\n", backend_host, backend_port); hloop_t* loop = hevent_loop(conn->io); // hio_t* upstream_io = hio_setup_tcp_upstream(conn->io, backend_host, backend_port, backend_ssl); hio_t* upstream_io = hio_create_socket(loop, backend_host, backend_port, HIO_TYPE_TCP, HIO_CLIENT_SIDE); if (upstream_io == NULL) { fprintf(stderr, "Failed to upstream %s:%d!\n", backend_host, backend_port); return -3; } if (backend_ssl) { hio_enable_ssl(upstream_io); } hevent_set_userdata(upstream_io, conn); hio_setup_upstream(conn->io, upstream_io); hio_setcb_read(upstream_io, hio_write_upstream); hio_setcb_close(upstream_io, hio_close_upstream); hio_setcb_connect(upstream_io, on_upstream_connect); hio_connect(upstream_io); return 0; } static int on_body(http_conn_t* conn, void* buf, int readbytes) { http_msg_t* req = &conn->request; if (req->proxy) { hio_write_upstream(conn->io, buf, readbytes); } return 0; } static int on_request(http_conn_t* conn) { // NOTE: just reply 403, please refer to examples/tinyhttpd if you want to reply other. http_msg_t* req = &conn->request; char buf[256] = {0}; int len = snprintf(buf, sizeof(buf), "HTTP/%d.%d %d %s\r\nContent-Length: 0\r\n\r\n", req->major_version, req->minor_version, 403, "Forbidden"); hio_write(conn->io, buf, len); return 403; } static void on_close(hio_t* io) { // printf("on_close fd=%d error=%d\n", hio_fd(io), hio_error(io)); http_conn_t* conn = (http_conn_t*)hevent_userdata(io); if (conn) { HV_FREE(conn); hevent_set_userdata(io, NULL); } hio_close_upstream(io); } static void on_recv(hio_t* io, void* buf, int readbytes) { char* str = (char*)buf; // printf("on_recv fd=%d readbytes=%d\n", hio_fd(io), readbytes); // printf("%.*s", readbytes, str); http_conn_t* conn = (http_conn_t*)hevent_userdata(io); http_msg_t* req = &conn->request; switch (conn->state) { case s_begin: // printf("s_begin"); conn->state = s_first_line; case s_first_line: // printf("s_first_line\n"); if (readbytes < 2) { fprintf(stderr, "Not match \r\n!"); hio_close(io); return; } str[readbytes - 2] = '\0'; if (parse_http_request_line(conn, str, readbytes - 2) == false) { fprintf(stderr, "Failed to parse http request line:\n%s\n", str); hio_close(io); return; } // start read head conn->state = s_head; hio_readline(io); break; case s_head: // printf("s_head\n"); if (readbytes < 2) { fprintf(stderr, "Not match \r\n!"); hio_close(io); return; } if (readbytes == 2 && str[0] == '\r' && str[1] == '\n') { conn->state = s_head_end; } else { // NOTE: save head if (strnicmp(str, "Proxy-", 6) != 0) { if (req->head_len + readbytes < HTTP_MAX_HEAD_LENGTH) { memcpy(req->head + req->head_len, buf, readbytes); req->head_len += readbytes; } } str[readbytes - 2] = '\0'; if (parse_http_head(conn, str, readbytes - 2) == false) { fprintf(stderr, "Failed to parse http head:\n%s\n", str); hio_close(io); return; } hio_readline(io); break; } case s_head_end: // printf("s_head_end\n"); if (on_head_end(conn) < 0) { hio_close(io); return; } if (req->content_length == 0) { conn->state = s_end; if (req->proxy) { // NOTE: wait upstream connect! } else { goto s_end; } } else { conn->state = s_body; if (req->proxy) { // NOTE: start read body on_upstream_connect // hio_read_start(io); } else { // WARN: too large content_length should read multiple times! hio_readbytes(io, req->content_length); } break; } case s_body: // printf("s_body\n"); if (on_body(conn, buf, readbytes) < 0) { hio_close(io); return; } req->body = str; req->body_len += readbytes; if (readbytes == req->content_length) { conn->state = s_end; } else { // Not end break; } case s_end: s_end: // printf("s_end\n"); // received complete request if (req->proxy) { // NOTE: reply by upstream } else { on_request(conn); } if (hio_is_closed(io)) return; if (req->keepalive) { // Connection: keep-alive\r\n // reset and receive next request memset(&conn->request, 0, sizeof(http_msg_t)); // memset(&conn->response, 0, sizeof(http_msg_t)); conn->state = s_first_line; hio_readline(io); } else { // Connection: close\r\n if (req->proxy) { // NOTE: wait upstream close! } else { hio_close(io); } } break; default: break; } } static void new_conn_event(hevent_t* ev) { hloop_t* loop = ev->loop; hio_t* io = (hio_t*)hevent_userdata(ev); hio_attach(loop, io); /* char localaddrstr[SOCKADDR_STRLEN] = {0}; char peeraddrstr[SOCKADDR_STRLEN] = {0}; printf("tid=%ld connfd=%d [%s] <= [%s]\n", (long)hv_gettid(), (int)hio_fd(io), SOCKADDR_STR(hio_localaddr(io), localaddrstr), SOCKADDR_STR(hio_peeraddr(io), peeraddrstr)); */ hio_setcb_close(io, on_close); hio_setcb_read(io, on_recv); hio_set_keepalive_timeout(io, HTTP_KEEPALIVE_TIMEOUT); http_conn_t* conn = NULL; HV_ALLOC_SIZEOF(conn); conn->io = io; hevent_set_userdata(io, conn); // start read first line conn->state = s_first_line; hio_readline(io); } static hloop_t* get_next_loop() { static int s_cur_index = 0; if (s_cur_index == thread_num) { s_cur_index = 0; } return worker_loops[s_cur_index++]; } static void on_accept(hio_t* io) { hio_detach(io); hloop_t* worker_loop = get_next_loop(); hevent_t ev; memset(&ev, 0, sizeof(ev)); ev.loop = worker_loop; ev.cb = new_conn_event; ev.userdata = io; hloop_post_event(worker_loop, &ev); } static HTHREAD_RETTYPE worker_thread(void* userdata) { hloop_t* loop = (hloop_t*)userdata; hloop_run(loop); return 0; } static HTHREAD_RETTYPE accept_thread(void* userdata) { hloop_t* loop = (hloop_t*)userdata; hio_t* listenio = hloop_create_tcp_server(loop, proxy_host, proxy_port, on_accept); if (listenio == NULL) { exit(1); } if (proxy_ssl) { hio_enable_ssl(listenio); } printf("tinyproxyd listening on %s:%d, listenfd=%d, thread_num=%d\n", proxy_host, proxy_port, hio_fd(listenio), thread_num); hloop_run(loop); return 0; } int main(int argc, char** argv) { if (argc < 2) { printf("Usage: %s proxy_port [thread_num]\n", argv[0]); return -10; } proxy_port = atoi(argv[1]); if (argc > 2) { thread_num = atoi(argv[3]); } else { thread_num = get_ncpu(); } if (thread_num == 0) thread_num = 1; worker_loops = (hloop_t**)malloc(sizeof(hloop_t*) * thread_num); for (int i = 0; i < thread_num; ++i) { worker_loops[i] = hloop_new(HLOOP_FLAG_AUTO_FREE); hthread_create(worker_thread, worker_loops[i]); } accept_loop = hloop_new(HLOOP_FLAG_AUTO_FREE); accept_thread(accept_loop); return 0; }
WullT/MultisensorLoRaNode
MultiSensorNode/NodeConfiguration.h
<reponame>WullT/MultisensorLoRaNode<gh_stars>0 // https://fhnw.mit-license.org/ #include <Arduino.h> #ifndef SERIAL_DEBUG #define SERIAL_DEBUG false #endif // !SERIAL_DEBUG enum { ID_AIR_TEMP_HUMI = 0x01, ID_SOIL_MOIST = 0x02, ID_SOIL_TEMP = 0x03, ID_UV = 0x04, ID_SOUND = 0x05, ID_TURBIDITY = 0x06, ID_DISTANCE = 0x07, ID_MC_GAS = 0x08, }; struct config { String name; // LoRa Parameters uint32_t txInterval; uint8_t loraSf = 7; bool use_adr = true; bool use_otaa = false; // abp uint32_t devAddr; uint8_t appskey[16]; uint8_t nwkskey[16]; // otaa uint8_t appeui[8]; uint8_t deveui[8]; uint8_t appkey[16]; bool appeui_valid = false; // Sensors bool has_sht31 = false; uint8_t sht31Address = 0x44; bool has_ds18b20 = false; uint8_t ds18b20Pin = 2; bool has_moisture = false; uint8_t moisturePin = 0; bool has_uv = false; uint8_t uvPin = 0; bool has_mcgas = false; uint8_t mcGasAddress = 0x08; bool has_turbidity = false; uint8_t turbidityPin = 0; bool has_sound = false; uint8_t soundPin = 0; bool has_distance = false; }; uint8_t getPinNumberFromA(uint8_t analogPin); class NodeConfiguration { public: NodeConfiguration(); ~NodeConfiguration(); void addLine(String line); void printConfiguration(); bool validate(); void clearConfig(); config conf; bool validateHex(String tovalidate); };
WullT/MultisensorLoRaNode
MultiSensorNode/SensorHelper.h
// https://fhnw.mit-license.org/ #include <Arduino.h> #include <Multichannel_Gas_GMXXX.h> #include <Wire.h> #include <OneWire.h> #include <DallasTemperature.h> #include <Adafruit_SHT31.h> #define DISTANCE_READ_TIMEOUT_MS 3000 #define MAX_SENSORS 8 #ifndef SERIAL_DEBUG #define SERIAL_DEBUG false #endif // !SERIAL_DEBUG enum { GAS_NO2 = 0, GAS_C2H5OH = 1, GAS_VOC = 2, GAS_CO = 3, }; void initMCGasSensor(uint8_t addr); bool initSHT31(uint8_t addr, bool heater = true); bool initDS18B20(uint8_t pin); bool initDistanceSensor(); uint8_t getBatteryLevel(uint8_t batteryPin); uint16_t measureSoundLevel(uint8_t micPin); uint16_t measureDistance(); uint16_t measureAnalogLevel(uint8_t analogPin); uint16_t getGas(uint8_t gasNr); int16_t getSHTTemp(); uint16_t getSHTHumi(); int16_t getDs18b21Temp(); int getUVIndex(uint8_t analogPin);
madebr/cc65
libsrc/cx16/exec.c
<filename>libsrc/cx16/exec.c<gh_stars>1-10 /* ** Program-chaining function for Commodore platforms. ** ** 2019-12-25, <NAME> ** ** This function exploits the program-chaining feature in Commander X16 BASIC's ROM. ** ** CC65's CBM programs have a BASIC program stub. We start those programs by ** RUNning that stub; it SYSes to the Machine Language code. Normally, after ** the ML code exits, the BASIC ROM continues running the stub. But, it has ** no more statements; so, the program stops. ** ** This function puts the desired program's name and device number into a LOAD ** statement. Then, it points BASIC to that statement, so that the ROM will run ** that statement after this program quits. The ROM will load the next program, ** and will execute it (because the LOAD will be seen in a running program). */ #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <device.h> /* The struct below is a line of BASIC code. It sits in the LOWCODE segment ** to make sure that it won't be hidden by a ROM when BASIC is re-enabled. ** The line is: ** 0 CLR:LOAD""+"" ,01 ** After this function has written into the line, it might look like this: ** 0 CLR:LOAD""+"program name" ,08 ** ** When BASIC's LOAD command asks the Kernal to load a file, it gives the ** Kernal a pointer to a file-name string. CC65's CBM programs use that ** pointer to give a copy of the program's name to main()'s argv[0] parameter. ** But, when BASIC uses a string literal that is in a program, it points ** directly to that literal -- in the models that don't use banked RAM ** (Pet/CBM, VIC-20, and 64). The literal is overwritten by the next program ** that is loaded. So, argv[0] would point to machine code. String operations ** create a new result string -- even when that operation changes nothing. The ** result is put in the string space at the top of BASIC's memory. So, the ""+ ** in this BASIC line guarantees that argv[0] will get a name from a safe place. */ #pragma data-name(push, "LOWCODE") static struct line { const char end_of_line; /* fake previous line */ const struct line* const next; const unsigned line_num; const char CLR_token, colon, LOAD_token, quotes[2], add_token, quote; char name[21]; const char comma; char unit[3]; } basic = { '\0', &basic + 1, /* high byte of link must be non-zero */ 0, 0x9C, ':', 0x93, "\"\"", 0xAA, '\"', "\" ", /* format: "123:1234567890123456\"" */ ',', "01" }; #pragma data-name(pop) /* These values are platform-specific. */ extern const void* vartab; /* points to BASIC program variables */ extern const void* memsize; /* points to top of BASIC RAM */ extern const struct line* txtptr; /* points to BASIC code */ #pragma zpsym("txtptr") extern char basbuf[]; /* BASIC's input buffer */ extern void basbuf_len[]; #pragma zpsym("basbuf_len") int __fastcall__ exec (const char* progname, const char* cmdline) { static int fd; static unsigned char dv, n; /* Exclude devices that can't load files. */ /* (Use hand optimization, to make smaller code.) */ dv = getcurrentdevice (); if (dv < 8 && __AX__ != 1 || __AX__ > 30) { return _mappederrno (9); /* illegal device number */ } utoa (dv, basic.unit, 10); /* The emulator supports only loading and saving on its file-system. */ if (dv != 1) { /* Don't try to run a program that doesn't exist. */ fd = open (progname, O_RDONLY); if (fd < 0) { return _mappederrno (4); /* file not found */ } close (fd); } n = 0; do { if ((basic.name[n] = progname[n]) == '\0') { break; } } while (++n < 20); /* truncate long names */ basic.name[n] = '\"'; /* cc65 program loads might extend beyond the end of the RAM that is allowed ** for BASIC. Then, the LOAD statement would complain that it is "out of ** memory". Some pointers that say where to put BASIC program variables ** must be changed, so that we do not get that error. One pointer is ** changed here; a BASIC CLR statement changes the others. */ vartab = (char*)memsize - 256; /* Build the next program's argument list. */ basbuf[0] = 0x8F; /* REM token */ basbuf[1] = '\0'; if (cmdline != NULL) { strncat (basbuf, cmdline, (size_t)basbuf_len - 2); } /* Tell the ROM where to find that BASIC program. */ txtptr = &basic; /* (The return code, in STATUS, will be destroyed by LOAD. ** So, don't bother to set it here.) */ exit (__AX__); }
zhu410289616/RHCategoryKit
RHCategory/NSData+AES.h
<filename>RHCategory/NSData+AES.h<gh_stars>1-10 // // NSData+AES.h // RHToolkitsDemo // // Created by zhuruhong on 15/7/20. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSData (AES) - (NSData *)AES256EncryptWithKey:(NSString *)key; - (NSData *)AES256DecryptWithKey:(NSString *)key; @end
zhu410289616/RHCategoryKit
RHCategory/NSDate+Ext.h
// // NSDate+Ext.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (Ext) + (NSDate *)rh_dateWithString:(NSString *)tDateStr formatter:(NSString *)tFormatter; + (NSTimeInterval)rh_timeIntervalWithString:(NSString *)tDateStr formatter:(NSString *)tFormatter; @end
zhu410289616/RHCategoryKit
RHCategory/NSString+MD5.h
// // NSString+MD5.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (MD5) + (NSString *)rh_stringWithMD5Encode:(NSString *)src; - (NSString *)rh_stringWithMD5Encode; @end
zhu410289616/RHCategoryKit
RHCategory/NSFileManager+Ext.h
// // NSFileManager+Ext.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSFileManager (Ext) + (NSString *)rh_pathWithFilePath:(NSString *)filepath; + (NSString *)rh_directoryInUserDomain:(NSSearchPathDirectory)directory; + (NSString *)rh_cacheDirectory; + (NSString *)rh_documentDirectory; + (unsigned long long)rh_fileSizeWithFilePath:(NSString *)filepath; + (unsigned long long)rh_fileSizeWithDirectory:(NSString *)directory; @end
zhu410289616/RHCategoryKit
RHCategory/NSObject+Log.h
<gh_stars>1-10 // // NSObject+Log.h // RHToolkit // // Created by zhuruhong on 15/6/27. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> #ifdef DEBUG #define RHLogDebug #endif #ifdef RHLogDebug #define RHLogLog(format, ...) NSLog(format, ## __VA_ARGS__) #else #define RHLogLog(format, ...) #endif @interface NSObject (Log) - (void)logWithMark:(NSString *)mark; - (void)log; @end
zhu410289616/RHCategoryKit
RHCategory/NSNull+Ext.h
// // NSNull+Ext.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> #define NSNullObjects @[@"", @0, @{}, @[]] @interface NSNull (Ext) @end
zhu410289616/RHCategoryKit
RHCategory/NSDictionary+Ext.h
// // NSDictionary+Ext.h // RHSocketKitDemo // // Created by zhuruhong on 16/2/16. // Copyright © 2016年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (Ext) /** * json的二进制数据NSData通过NSJSONSerialization转换为NSDictionary * * @param jsonData json的二进制数据NSData * * @return NSDictionary,失败时返回nil */ + (NSDictionary *)rh_dictionaryWithJsonData:(NSData *)jsonData; /** * json的字符串数据NSString通过NSJSONSerialization转换为NSDictionary * * @param jsonString json的字符串数据NSString * * @return NSDictionary,失败时返回nil */ + (NSDictionary *)rh_dictionaryWithJsonString:(NSString *)jsonString; @end
zhu410289616/RHCategoryKit
RHCategory/NSString+Ext.h
// // NSString+Ext.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Ext) /** * 生成唯一字符串 * * @return sequence */ + (NSString *)rh_stingWithSequence; /** * 对nsdata坐解码,生成nsstring * * @param data data description * @param encoding encoding description * * @return return nsstring */ + (NSString *)rh_stringWithData:(NSData *)data encoding:(NSStringEncoding)encoding; /** * 对nsdata坐解码,生成nsstring * default NSUTF8StringEncoding * * @param data data description * * @return nsstring */ + (NSString *)rh_stringWithData:(NSData *)data; /** * 格式化时间为字符串 * * @param tDate nsdate * @param tFormatter string like @"yyyy-MM-dd HH:mm:ss" * * @return string */ + (NSString *)rh_stringWithDate:(NSDate *)tDate formatter:(NSString *)tFormatter; /** * 格式化时间戳为字符串 * * @param tTimeInterval 距离1970年的时间戳 * @param tFormatter string like @"yyyy-MM-dd HH:mm:ss" * * @return string */ + (NSString *)rh_stringWithTime:(long)tTimeInterval formatter:(NSString *)tFormatter; /** * url编码 * * @return string */ - (NSString *)rh_stringWithUrlEncode; /** * url解码 * * @return string */ - (NSString *)rh_stringWithUrlDecode; /** * 遍历字符串编码格式 */ - (void)enumStringEncodings; /** * gb2312编码 * * @return string */ - (NSString *)rh_stringWithGB2312Encode; @end
zhu410289616/RHCategoryKit
RHCategory/UIImage+Ext.h
// // UIImage+Ext.h // RHHttpDemo // // Created by zhuruhong on 15/8/25. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Ext) + (UIImage *)rh_imageWithColor:(UIColor *)tColor size:(CGSize)tSize; + (UIImage *)rh_imageWithName:(NSString *)tName; + (UIImage *)rh_imageWithName:(NSString *)tName type:(NSString *)tType; - (UIImage *)rh_imageStretchWithInsets:(UIEdgeInsets)insets; @end
zhu410289616/RHCategoryKit
RHCategory/NSObject+Property.h
<reponame>zhu410289616/RHCategoryKit // // NSObject+Property.h // RHHttpDemo // // Created by zhuruhong on 16/1/28. // Copyright © 2016年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> #import <objc/runtime.h> //http://www.jianshu.com/p/6dcb18161fbb //https://github.com/lianchengjiang/LcCategoryProperty /* @interface Model (Property) @property (nonatomic, strong)NSString *name; @property (nonatomic, strong)NSURL *URL; @property (nonatomic, strong)NSDate *date; @property (nonatomic, assign)CGPoint point; @property (nonatomic, assign)CGRect myRect; @property (nonatomic, assign)float f; @property (nonatomic, assign)int a; @end @implementation Model (Property) + (void)load { [self addObjectProperty:@"URL"]; [self addObjectProperty:@"date"]; [self addObjectProperty:@"name" associationPolicy:OBJC_ASSOCIATION_COPY_NONATOMIC]; [self addBasicProperty:@"point" encodingType:@encode(CGPoint)]; [self addBasicProperty:@"myRect" encodingType:@encode(CGRect)]; [self addBasicProperty:@"f" encodingType:@encode(float)]; [self addBasicProperty:@"a" encodingType:@encode(int)]; } @end */ @interface NSObject (Property) /** * 为类添加id类型的属性,objc_AssociationPolicy类型为OBJC_ASSOCIATION_RETAIN_NONATOMIC * @param name 属性的name */ + (void)addObjectProperty:(NSString *)name; /** * 为类添加id类型的属性 * @param name 属性的name * @param policy 属性的policy */ + (void)addObjectProperty:(NSString *)name associationPolicy:(objc_AssociationPolicy)policy; /** * 为类添加基础类型的属性,如:int,float,CGPoint,CGRect等 * @param name 属性的name * @param type 属性的encodingType,如int类型的属性,type为@encode(int) */ + (void)addBasicProperty:(NSString *)name encodingType:(char *)type; @end
zhu410289616/RHCategoryKit
RHCategory/UIFont+App.h
// // UIFont+App.h // RHToolkit // // Created by zhuruhong on 15/6/27. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <UIKit/UIKit.h> @interface UIFont (App) + (void)showAllFont; + (UIFont *)fontForAppWithSize:(CGFloat)size; + (UIFont *)fontForAppBoldWithSize:(CGFloat)size; @end
zhu410289616/RHCategoryKit
RHCategory/NSData+RSA.h
// // NSData+RSA.h // RHToolkitsDemo // // Created by zhuruhong on 15/7/20. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <Foundation/Foundation.h> /** 构造公钥,私钥,证书 openssl genrsa -out private_key.pem 1024 openssl req -new -key private_key.pem -out rsaCertReq.csr openssl x509 -req -days 3650 -in rsaCertReq.csr -signkey private_key.pem -out rsaCert.crt openssl x509 -outform der -in rsaCert.crt -out public_key.der               // Create public_key.der For IOS openssl pkcs12 -export -out private_key.p12 -inkey private_key.pem -in rsaCert.crt  // Create private_key.p12 For IOS. 这一步,请记住你输入的密码,IOS代码里会用到 openssl rsa -in private_key.pem -out rsa_public_key.pem -pubout             // Create rsa_public_key.pem For Java openssl pkcs8 -topk8 -in private_key.pem -out pkcs8_private_key.pem -nocrypt     // Create pkcs8_private_key.pem For Java */ /** * rsa加密 * * NSString *rsaPublicKeyPath = [[NSBundle mainBundle] pathForResource:@"rsa_public_key" ofType:@"der"]; * NSData *rsaPublicKeyData = [NSData dataWithContentsOfFile:rsaPublicKeyPath]; * * rsa解密 * * NSString *rsaPrivateKeyPath = [[NSBundle mainBundle] pathForResource:@"rsa_private_key" ofType:@"p12"]; * NSData *rsaPrivateKeyData = [NSData dataWithContentsOfFile:rsaPrivateKeyPath]; */ @interface NSData (RSA) - (NSData *)RSAEncryptWithPublicKey:(NSString *)publicKey; - (NSData *)RSAEncryptWithPublicKeyData:(NSData *)publicKeyData; - (NSData *)RSADecryptWithPrivateKey:(NSString *)privateKey password:(NSString *)password; - (NSData *)RSADecryptWithPrivateKeyData:(NSData *)privateKeyData password:(NSString *)password; @end
zhu410289616/RHCategoryKit
RHCategory/UIDevice+App.h
<filename>RHCategory/UIDevice+App.h // // UIDevice+App.h // RHToolkit // // Created by zhuruhong on 15/6/29. // Copyright (c) 2015年 zhuruhong. All rights reserved. // #import <UIKit/UIKit.h> @interface UIDevice (App) + (CGFloat)screenScale; + (BOOL)isRetinaScreen; + (NSString *)systemVersion; + (BOOL)isVersionEqualTo:(NSString *)version; + (BOOL)isVersionGreaterThan:(NSString *)version; + (BOOL)isVersionGreaterThanOrEqualTo:(NSString *)version; + (BOOL)isVersionLessThan:(NSString *)version; + (BOOL)isVersionLessThanOrEquealTo:(NSString *)version; @end
zhu410289616/RHCategoryKit
RHCategory/UIImage+RHHook.h
<gh_stars>0 // // UIImage+RHHook.h // RHCategoryDemo // // Created by zhuruhong on 16/3/14. // Copyright © 2016年 zhuruhong. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (RHHook) @end
julienlopez/FactorioModRecipePlanner
3rd_party/json/json.h
/*! @file @copyright The code is licensed under the MIT License <http://opensource.org/licenses/MIT>, Copyright (c) 2013-2015 <NAME>. @author <NAME> <http://nlohmann.me> @see https://github.com/nlohmann/json */ #pragma once #include <initializer_list> // std::initializer_list #include <iostream> // std::istream, std::ostream #include <map> // std::map #include <string> // std::string #include <vector> // std::vector #include <iterator> // std::iterator #include <limits> // std::numeric_limits #include <functional> // std::hash #include <iso646.h> namespace nlohmann { /*! @brief JSON for Modern C++ The size of a JSON object is 16 bytes: 8 bytes for the value union whose largest item is a pointer type and another 8 byte for an element of the type union. The latter only needs 1 byte - the remaining 7 bytes are wasted due to alignment. @see http://stackoverflow.com/questions/7758580/writing-your-own-stl-container/7759622#7759622 @bug Numbers are currently handled too generously. There are several formats that are forbidden by the standard, but are accepted by the parser. @todo Implement json::insert(), json::emplace(), json::emplace_back, json::erase */ class json { public: // forward declaration to friend this class class iterator; class const_iterator; public: // container types /// the type of elements in a JSON class using value_type = json; /// the type of element references using reference = json&; /// the type of const element references using const_reference = const json&; /// the type of pointers to elements using pointer = json*; /// the type of const pointers to elements using const_pointer = const json*; /// a type to represent differences between iterators using difference_type = std::ptrdiff_t; /// a type to represent container sizes using size_type = std::size_t; /// an iterator for a JSON container using iterator = json::iterator; /// a const iterator for a JSON container using const_iterator = json::const_iterator; /// a reverse iterator for a JSON container using reverse_iterator = std::reverse_iterator<iterator>; /// a const reverse iterator for a JSON container using const_reverse_iterator = std::reverse_iterator<const_iterator>; /// a type for an object using object_t = std::map<std::string, json>; /// a type for an array using array_t = std::vector<json>; /// a type for a string using string_t = std::string; /// a type for a Boolean using boolean_t = bool; /// a type for an integer number using number_t = int64_t; /// a type for a floating point number using number_float_t = double; /// a type for list initialization using list_init_t = std::initializer_list<json>; /// a JSON value union value { /// array as pointer to array_t array_t* array; /// object as pointer to object_t object_t* object; /// string as pointer to string_t string_t* string; /// Boolean boolean_t boolean; /// number (integer) number_t number; /// number (float) number_float_t number_float; /// default constructor value() = default; /// constructor for arrays value(array_t*); /// constructor for objects value(object_t*); /// constructor for strings value(string_t*); /// constructor for Booleans value(boolean_t); /// constructor for numbers (integer) value(number_t); /// constructor for numbers (float) value(number_float_t); }; /// possible types of a JSON object enum class value_t : uint8_t { /// ordered collection of values array = 0, /// unordered set of name/value pairs object, /// null value null, /// string value string, /// Boolean value boolean, /// number value (integer) number, /// number value (float) number_float }; public: /// create an object according to given type json(const value_t); /// create a null object json() noexcept; /// create a null object json(std::nullptr_t) noexcept; /// create a string object from a C++ string json(const std::string&); /// create a string object from a C++ string (move) json(std::string&&); /// create a string object from a C string json(const char*); /// create a Boolean object json(const bool) noexcept; /// create an array json(const array_t&); /// create an array (move) json(array_t&&); /// create an object json(const object_t&); /// create an object (move) json(object_t&&); /// create from an initializer list (to an array or object) json(list_init_t, bool = true, value_t = value_t::array); /*! @brief create a number object (integer) @param n an integer number to wrap in a JSON object */ template<typename T, typename std::enable_if< std::numeric_limits<T>::is_integer, T>::type = 0> json(const T n) noexcept : final_type_(0), type_(value_t::number), value_(static_cast<number_t>(n)) {} /*! @brief create a number object (float) @param n a floating point number to wrap in a JSON object */ template<typename T, typename = typename std::enable_if< std::is_floating_point<T>::value>::type > json(const T n) noexcept : final_type_(0), type_(value_t::number_float), value_(static_cast<number_float_t>(n)) {} /*! @brief create an array object @param v any type of container whose elements can be use to construct JSON objects (e.g., std::vector, std::set, std::array) @note For some reason, we need to explicitly forbid JSON iterator types. */ template <class V, typename std::enable_if< not std::is_same<V, json::iterator>::value and not std::is_same<V, json::const_iterator>::value and not std::is_same<V, json::reverse_iterator>::value and not std::is_same<V, json::const_reverse_iterator>::value and std::is_constructible<json, typename V::value_type>::value, int>::type = 0> json(const V& v) : json(array_t(v.begin(), v.end())) {} /*! @brief create a JSON object @param v any type of associative container whose elements can be use to construct JSON objects (e.g., std::map<std::string, *>) */ template <class V, typename std::enable_if< std::is_constructible<std::string, typename V::key_type>::value and std::is_constructible<json, typename V::mapped_type>::value, int>::type = 0> json(const V& v) : json(object_t(v.begin(), v.end())) {} /// copy constructor json(const json&); /// move constructor json(json&&) noexcept; /// copy assignment json& operator=(json) noexcept; /// destructor ~json() noexcept; /// explicit keyword to force array creation static json array(list_init_t = list_init_t()); /// explicit keyword to force object creation static json object(list_init_t = list_init_t()); /// create from string representation static json parse(const std::string&); /// create from string representation static json parse(const char*); private: /// return the type as string std::string type_name() const noexcept; /// dump the object (with pretty printer) std::string dump(const bool, const unsigned int, unsigned int = 0) const noexcept; /// replaced a character in a string with another string void replaceChar(std::string& str, char c, const std::string& replacement) const; /// escapes special characters to safely dump the string std::string escapeString(const std::string&) const; public: /// explicit value conversion template<typename T> T get() const; /// implicit conversion to string representation operator std::string() const; /// implicit conversion to integer (only for numbers) operator int() const; /// implicit conversion to integer (only for numbers) operator int64_t() const; /// implicit conversion to double (only for numbers) operator double() const; /// implicit conversion to Boolean (only for Booleans) operator bool() const; /// implicit conversion to JSON vector (not for objects) operator array_t() const; /// implicit conversion to JSON map (only for objects) operator object_t() const; /// serialize to stream friend std::ostream& operator<<(std::ostream& o, const json& j) { o << j.dump(); return o; } /// serialize to stream friend std::ostream& operator>>(const json& j, std::ostream& o) { o << j.dump(); return o; } /// deserialize from stream friend std::istream& operator>>(std::istream& i, json& j) { j = parser(i).parse(); return i; } /// deserialize from stream friend std::istream& operator<<(json& j, std::istream& i) { j = parser(i).parse(); return i; } /// explicit serialization std::string dump(int = -1) const noexcept; /// add constructible objects to an array template<class T, typename std::enable_if<std::is_constructible<json, T>::value>::type = 0> json & operator+=(const T& o) { push_back(json(o)); return *this; } /// add an object/array to an array json& operator+=(const json&); /// add a pair to an object json& operator+=(const object_t::value_type&); /// add a list of elements to array or list of pairs to object json& operator+=(list_init_t); /// add constructible objects to an array template<class T, typename std::enable_if<std::is_constructible<json, T>::value>::type = 0> void push_back(const T& o) { push_back(json(o)); } /// add an object/array to an array void push_back(const json&); /// add an object/array to an array (move) void push_back(json&&); /// add a pair to an object void push_back(const object_t::value_type&); /// add a list of elements to array or list of pairs to object void push_back(list_init_t); /// operator to set an element in an array reference operator[](const int); /// operator to get an element in an array const_reference operator[](const int) const; /// operator to get an element in an array reference at(const int); /// operator to get an element in an array const_reference at(const int) const; /// operator to set an element in an object reference operator[](const std::string&); /// operator to set an element in an object reference operator[](const char*); /// operator to get an element in an object const_reference operator[](const std::string&) const; /// operator to get an element in an object const_reference operator[](const char*) const; /// operator to set an element in an object reference at(const std::string&); /// operator to set an element in an object reference at(const char*); /// operator to get an element in an object const_reference at(const std::string&) const; /// operator to get an element in an object const_reference at(const char*) const; /// return the number of stored values size_type size() const noexcept; /// return the maximal number of values that can be stored size_type max_size() const noexcept; /// checks whether object is empty bool empty() const noexcept; /// removes all elements from compounds and resets values to default void clear() noexcept; /// swaps content with other object void swap(json&) noexcept; /// return the type of the object value_t type() const noexcept; /// find an element in an object (returns end() iterator otherwise) iterator find(const std::string&); /// find an element in an object (returns end() iterator otherwise) const_iterator find(const std::string&) const; /// find an element in an object (returns end() iterator otherwise) iterator find(const char*); /// find an element in an object (returns end() iterator otherwise) const_iterator find(const char*) const; /// lexicographically compares the values bool operator==(const json&) const noexcept; /// lexicographically compares the values bool operator!=(const json&) const noexcept; /// returns an iterator to the beginning (array/object) iterator begin() noexcept; /// returns an iterator to the end (array/object) iterator end() noexcept; /// returns an iterator to the beginning (array/object) const_iterator begin() const noexcept; /// returns an iterator to the end (array/object) const_iterator end() const noexcept; /// returns an iterator to the beginning (array/object) const_iterator cbegin() const noexcept; /// returns an iterator to the end (array/object) const_iterator cend() const noexcept; /// returns a reverse iterator to the beginning reverse_iterator rbegin() noexcept; /// returns a reverse iterator to the end reverse_iterator rend() noexcept; /// returns a reverse iterator to the beginning const_reverse_iterator crbegin() const noexcept; /// returns a reverse iterator to the end const_reverse_iterator crend() const noexcept; private: /// whether the type is final unsigned final_type_ : 1; /// the type of this object value_t type_ = value_t::null; /// the payload value value_ {}; public: /// an iterator class iterator : public std::iterator<std::bidirectional_iterator_tag, json> { friend class json; friend class json::const_iterator; public: iterator() = default; iterator(json*, bool); iterator(const iterator&); ~iterator(); iterator& operator=(iterator); bool operator==(const iterator&) const; bool operator!=(const iterator&) const; iterator& operator++(); iterator& operator--(); json& operator*() const; json* operator->() const; /// getter for the key (in case of objects) std::string key() const; /// getter for the value json& value() const; private: /// a JSON value json* object_ = nullptr; /// an iterator for JSON arrays array_t::iterator* vi_ = nullptr; /// an iterator for JSON objects object_t::iterator* oi_ = nullptr; /// whether iterator points to a valid object bool invalid = true; }; /// a const iterator class const_iterator : public std::iterator<std::bidirectional_iterator_tag, const json> { friend class json; public: const_iterator() = default; const_iterator(const json*, bool); const_iterator(const const_iterator&); const_iterator(const json::iterator&); ~const_iterator(); const_iterator& operator=(const_iterator); bool operator==(const const_iterator&) const; bool operator!=(const const_iterator&) const; const_iterator& operator++(); const_iterator& operator--(); const json& operator*() const; const json* operator->() const; /// getter for the key (in case of objects) std::string key() const; /// getter for the value const json& value() const; private: /// a JSON value const json* object_ = nullptr; /// an iterator for JSON arrays array_t::const_iterator* vi_ = nullptr; /// an iterator for JSON objects object_t::const_iterator* oi_ = nullptr; /// whether iterator reached past the end bool invalid = true; }; private: /// a helper class to parse a JSON object class parser { public: /// a parser reading from a C string parser(const char*); /// a parser reading from a C++ string parser(const std::string&); /// a parser reading from an input stream parser(std::istream&); /// destructor of the parser ~parser() = default; // no copy constructor parser(const parser&) = delete; // no copy assignment parser& operator=(parser) = delete; /// parse and return a JSON object json parse(); private: /// read the next character, stripping whitespace bool next(); /// raise an exception with an error message [[noreturn]] inline void error(const std::string&) const; /// parse a quoted string inline std::string parseString(); /// transforms a unicode codepoint to it's UTF-8 presentation std::string codePointToUTF8(unsigned int codePoint) const; /// parses 4 hex characters that represent a unicode code point inline unsigned int parse4HexCodePoint(); /// parses \uXXXX[\uXXXX] unicode escape characters inline std::string parseUnicodeEscape(); /// parse a Boolean "true" inline void parseTrue(); /// parse a Boolean "false" inline void parseFalse(); /// parse a null object inline void parseNull(); /// a helper function to expect a certain character inline void expect(const char); private: /// a buffer of the input std::string buffer_ {}; /// the current character char current_ {}; /// the position inside the input buffer std::size_t pos_ = 0; }; }; } /// user-defined literal operator to create JSON objects from strings nlohmann::json operator "" _json(const char*, std::size_t); // specialization of std::swap, and std::hash namespace std { template <> /// swaps the values of two JSON objects inline void swap(nlohmann::json& j1, nlohmann::json& j2) noexcept( is_nothrow_move_constructible<nlohmann::json>::value and is_nothrow_move_assignable<nlohmann::json>::value ) { j1.swap(j2); } template <> /// hash value for JSON objects struct hash<nlohmann::json> { size_t operator()(const nlohmann::json& j) const { // a naive hashing via the string representation return hash<std::string>()(j.dump()); } }; }
Inndy/formatstring-exploit
sample/sample-fmt.c
<gh_stars>10-100 #include <stdio.h> long long z = 0xdeadbeef; int main() { char buff[256]; while(1) { gets(buff); printf(buff); printf("z = %.16llx..\n", z); } }
002and001/FHHSandBoxViewer
Demo-OC/Demo-OC/Demo_OC-Bridging-Header.h
// // Demo_OC-Bridging-Header.h // Demo-OC // // Created by hefanghui on 2018/4/28. // Copyright © 2018年 hefanghui. All rights reserved. // #ifndef Demo_OC_Bridging_Header_h #define Demo_OC_Bridging_Header_h #endif /* Demo_OC_Bridging_Header_h */
002and001/FHHSandBoxViewer
Demo-OC/Demo-OC/ViewController.h
<gh_stars>1-10 // // ViewController.h // Demo-OC // // Created by hefanghui on 2018/4/28. // Copyright © 2018年 hefanghui. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
GitMoDu/AVR-ADC-Wrapper
src/AvrAdc.h
<filename>src/AvrAdc.h // AvrAdc.h // Static wrapper for AVR ADC functionality. // Made possible by <NAME> (www.gammon.com.au/adc). #if !defined(_AVRADC_h) && defined(ARDUINO_ARCH_AVR) #define _AVRADC_h #include <avr/sleep.h> #include <Arduino.h> enum PrescalerEnum { P2, P4, P8, P16, P32, P64, P128 }; const uint16_t AdcRange = 1024; const uint16_t AdcChannelCount = 5; //TODO: Check if more available? const uint32_t AdcSamplingPeriodDefault = 1; const uint32_t AdcSettlePeriodDefault = 1; // Sensible defaults for usable sampling. #if F_CPU > 8000000 const PrescalerEnum PrescalerDefault = PrescalerEnum::P16; #elif F_CPU > 1000000 const PrescalerEnum PrescalerDefault = PrescalerEnum::P8; #else const PrescalerEnum PrescalerDefault = PrescalerEnum::P1; #endif #if defined(ATTINY_CORE) // TODO: Validate for ATTiny85. class BaseAvrAdc { public: static void SetReferenceExternal() { ADMUX &= ~(bit(REFS0) | bit(REFS1)); // External AREF reference. } static void SetReferenceInternal1100() { ADMUX |= bit(REFS0) | bit(REFS1); // Internal 1100 mV reference. } static void SetReferenceAvcc() { ADMUX = (ADMUX | bit(REFS0)) & ~bit(REFS1); // Internal AVcc reference. } static void SetReferenceInternal2560() { ADMUX = bit(REFS0); // Internal 2560 mV reference. } ////// TODO: Validate all method bellow and move upwards if they're the same in ATTiny and 328. static void StartSample() { ADCSRA |= bit(ADSC); } static bool IsSampleDone() { return bit_is_clear(ADCSRA, ADSC); // ADC clears bit when sample is done. } static void AdcOn() { ADCSRA |= bit(ADEN) | bit(ADIF); } static void AdcOff() { ADCSRA &= ~bit(ADEN); } static void SetPrescaler(const PrescalerEnum prescalar) { ADCSRA &= ~(bit(ADPS0) | bit(ADPS1) | bit(ADPS2)); // Clear prescalar. switch (prescalar) { case PrescalerEnum::P2: ADCSRA |= bit(ADPS0); break; case PrescalerEnum::P4: ADCSRA |= bit(ADPS1); break; case PrescalerEnum::P8: ADCSRA |= bit(ADPS0) | bit(ADPS1); break; case PrescalerEnum::P16: ADCSRA |= bit(ADPS2); break; case PrescalerEnum::P32: ADCSRA |= bit(ADPS0) | bit(ADPS2); break; case PrescalerEnum::P64: ADCSRA |= bit(ADPS1) | bit(ADPS2); break; case PrescalerEnum::P128: ADCSRA |= bit(ADPS0) | bit(ADPS1) | bit(ADPS2); break; default: break; } } }; enum PositiveNegativePairEnum : uint8_t { ADC2ADC0 = 100, ADC2ADC1 = 110, ADC2ADC3 = 101, ADC0ADC1, ADC0ADC2, ADC0ADC3, }; enum DifferentialGainEnum { X1 = 1, X20 = 20 }; class DifferentialAvrAdc : public BaseAvrAdc { public: static void SetChannels(PositiveNegativePairEnum pair) { switch (pair) { case ADC0ADC1: ADMUX = bit(MUX2); break; case ADC0ADC2: ADMUX = bit(MUX2) | bit(MUX3); break; case ADC0ADC3: break; case ADC2ADC0: break; case ADC2ADC1: break; case ADC2ADC3: break; default: break; } } static void SetChannels(const uint8_t channel) { ADMUX |= channel << 2; } static void SetDifferentialGain(DifferentialGainEnum gain) { switch (gain) { case DifferentialGainEnum::X1: ADMUX &= ~bit(MUX0); break; case DifferentialGainEnum::X20: ADMUX |= bit(MUX0); break; default: break; } } }; #else class BaseAvrAdc { public: static void AdcOn() { ADCSRA |= bit(ADEN) | bit(ADIF); } static void AdcOff() { ADCSRA &= ~bit(ADEN); } static void SetReferenceExternal() { ADMUX &= ~(bit(REFS0) | bit(REFS1)); // External AREF reference. } static void SetReferenceInternal1100() { ADMUX |= bit(REFS0) | bit(REFS1); // Internal 1100 mV reference. } static void SetReferenceAvcc() { ADMUX &= ~bit(REFS1); // Internal AVcc reference. ADMUX |= bit(REFS0); } static bool IsSampleDone() { return bit_is_clear(ADCSRA, ADSC); // ADC clears bit when sample is done. } static void StartSampleWithSleep() { noInterrupts(); set_sleep_mode(SLEEP_MODE_ADC); // Sleep during sample. sleep_enable(); // Start the conversion with interrupt. ADCSRA |= bit(ADSC) | bit(ADIE); interrupts(); sleep_cpu(); sleep_disable(); } static void StartSample() { ADCSRA |= bit(ADSC); } static void SetPrescaler(const PrescalerEnum prescalar) { ADCSRA &= ~(bit(ADPS0) | bit(ADPS1) | bit(ADPS2)); // Clear prescalar. switch (prescalar) { case PrescalerEnum::P2: ADCSRA |= bit(ADPS0); break; case PrescalerEnum::P4: ADCSRA |= bit(ADPS1); break; case PrescalerEnum::P8: ADCSRA |= bit(ADPS0) | bit(ADPS1); break; case PrescalerEnum::P16: ADCSRA |= bit(ADPS2); break; case PrescalerEnum::P32: ADCSRA |= bit(ADPS0) | bit(ADPS2); break; case PrescalerEnum::P64: ADCSRA |= bit(ADPS1) | bit(ADPS2); break; case PrescalerEnum::P128: ADCSRA |= bit(ADPS0) | bit(ADPS1) | bit(ADPS2); break; default: break; } } }; #endif class HalfScaleAvrAdc : public BaseAvrAdc { public: static const uint16_t AdcMax = UINT8_MAX; public: static void SetScale() { ADMUX |= bit(ADLAR); } static uint8_t GetSample() { return ADCL; } }; class FullScaleAvrAdc : public BaseAvrAdc { public: static const uint16_t AdcMax = 0x3FF; public: static void SetScale() { ADMUX &= ~bit(ADLAR); } static uint16_t GetSample() { return ADC; } static void SetChannel(const uint8_t channel) { ADMUX &= ~0x0F; ADMUX |= channel; } }; #endif
jrth/zephyr
soc/arm/st_stm32/stm32l1/dts_fixup.h
/* * Copyright (c) 2019 Linaro Ltd. * * SPDX-License-Identifier: Apache-2.0 */ /* SoC level DTS fixup file */ #define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS #define DT_GPIO_STM32_GPIOA_BASE_ADDRESS DT_ST_STM32_GPIO_40020000_BASE_ADDRESS #define DT_GPIO_STM32_GPIOA_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020000_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOA_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020000_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOA_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020000_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOA_LABEL DT_ST_STM32_GPIO_40020000_LABEL #define DT_GPIO_STM32_GPIOA_SIZE DT_ST_STM32_GPIO_40020000_SIZE #define DT_GPIO_STM32_GPIOA_CLOCK_BITS DT_ST_STM32_GPIO_40020000_CLOCK_BITS #define DT_GPIO_STM32_GPIOA_CLOCK_BUS DT_ST_STM32_GPIO_40020000_CLOCK_BUS #define DT_GPIO_STM32_GPIOB_BASE_ADDRESS DT_ST_STM32_GPIO_40020400_BASE_ADDRESS #define DT_GPIO_STM32_GPIOB_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020400_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOB_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020400_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOB_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020400_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOB_LABEL DT_ST_STM32_GPIO_40020400_LABEL #define DT_GPIO_STM32_GPIOB_SIZE DT_ST_STM32_GPIO_40020400_SIZE #define DT_GPIO_STM32_GPIOB_CLOCK_BITS DT_ST_STM32_GPIO_40020400_CLOCK_BITS #define DT_GPIO_STM32_GPIOB_CLOCK_BUS DT_ST_STM32_GPIO_40020400_CLOCK_BUS #define DT_GPIO_STM32_GPIOC_BASE_ADDRESS DT_ST_STM32_GPIO_40020800_BASE_ADDRESS #define DT_GPIO_STM32_GPIOC_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020800_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOC_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020800_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOC_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020800_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOC_LABEL DT_ST_STM32_GPIO_40020800_LABEL #define DT_GPIO_STM32_GPIOC_SIZE DT_ST_STM32_GPIO_40020800_SIZE #define DT_GPIO_STM32_GPIOC_CLOCK_BITS DT_ST_STM32_GPIO_40020800_CLOCK_BITS #define DT_GPIO_STM32_GPIOC_CLOCK_BUS DT_ST_STM32_GPIO_40020800_CLOCK_BUS #define DT_GPIO_STM32_GPIOD_BASE_ADDRESS DT_ST_STM32_GPIO_40020C00_BASE_ADDRESS #define DT_GPIO_STM32_GPIOD_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020C00_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOD_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020C00_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOD_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020C00_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOD_LABEL DT_ST_STM32_GPIO_40020C00_LABEL #define DT_GPIO_STM32_GPIOD_SIZE DT_ST_STM32_GPIO_40020C00_SIZE #define DT_GPIO_STM32_GPIOD_CLOCK_BITS DT_ST_STM32_GPIO_40020C00_CLOCK_BITS #define DT_GPIO_STM32_GPIOD_CLOCK_BUS DT_ST_STM32_GPIO_40020C00_CLOCK_BUS #define DT_GPIO_STM32_GPIOE_BASE_ADDRESS DT_ST_STM32_GPIO_40021000_BASE_ADDRESS #define DT_GPIO_STM32_GPIOE_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021000_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOE_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021000_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOE_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021000_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOE_LABEL DT_ST_STM32_GPIO_40021000_LABEL #define DT_GPIO_STM32_GPIOE_SIZE DT_ST_STM32_GPIO_40021000_SIZE #define DT_GPIO_STM32_GPIOE_CLOCK_BITS DT_ST_STM32_GPIO_40021000_CLOCK_BITS #define DT_GPIO_STM32_GPIOE_CLOCK_BUS DT_ST_STM32_GPIO_40021000_CLOCK_BUS #define DT_GPIO_STM32_GPIOH_BASE_ADDRESS DT_ST_STM32_GPIO_40021400_BASE_ADDRESS #define DT_GPIO_STM32_GPIOH_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021400_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOH_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021400_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOH_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021400_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOH_LABEL DT_ST_STM32_GPIO_40021400_LABEL #define DT_GPIO_STM32_GPIOH_SIZE DT_ST_STM32_GPIO_40021400_SIZE #define DT_GPIO_STM32_GPIOH_CLOCK_BITS DT_ST_STM32_GPIO_40021400_CLOCK_BITS #define DT_GPIO_STM32_GPIOH_CLOCK_BUS DT_ST_STM32_GPIO_40021400_CLOCK_BUS #define DT_UART_STM32_USART_1_BASE_ADDRESS DT_ST_STM32_USART_40013800_BASE_ADDRESS #define DT_UART_STM32_USART_1_BAUD_RATE DT_ST_STM32_USART_40013800_CURRENT_SPEED #define DT_UART_STM32_USART_1_IRQ_PRI DT_ST_STM32_USART_40013800_IRQ_0_PRIORITY #define DT_UART_STM32_USART_1_NAME DT_ST_STM32_USART_40013800_LABEL #define DT_USART_1_IRQ DT_ST_STM32_USART_40013800_IRQ_0 #define DT_UART_STM32_USART_1_CLOCK_BITS DT_ST_STM32_USART_40013800_CLOCK_BITS #define DT_UART_STM32_USART_1_CLOCK_BUS DT_ST_STM32_USART_40013800_CLOCK_BUS #define DT_UART_STM32_USART_1_HW_FLOW_CONTROL DT_ST_STM32_USART_40013800_HW_FLOW_CONTROL #define DT_UART_STM32_USART_2_BASE_ADDRESS DT_ST_STM32_USART_40004400_BASE_ADDRESS #define DT_UART_STM32_USART_2_BAUD_RATE DT_ST_STM32_USART_40004400_CURRENT_SPEED #define DT_UART_STM32_USART_2_IRQ_PRI DT_ST_STM32_USART_40004400_IRQ_0_PRIORITY #define DT_UART_STM32_USART_2_NAME DT_ST_STM32_USART_40004400_LABEL #define DT_USART_2_IRQ DT_ST_STM32_USART_40004400_IRQ_0 #define DT_UART_STM32_USART_2_CLOCK_BITS DT_ST_STM32_USART_40004400_CLOCK_BITS #define DT_UART_STM32_USART_2_CLOCK_BUS DT_ST_STM32_USART_40004400_CLOCK_BUS #define DT_UART_STM32_USART_2_HW_FLOW_CONTROL DT_ST_STM32_USART_40004400_HW_FLOW_CONTROL #define DT_UART_STM32_USART_3_BASE_ADDRESS DT_ST_STM32_USART_40004800_BASE_ADDRESS #define DT_UART_STM32_USART_3_BAUD_RATE DT_ST_STM32_USART_40004800_CURRENT_SPEED #define DT_UART_STM32_USART_3_IRQ_PRI DT_ST_STM32_USART_40004800_IRQ_0_PRIORITY #define DT_UART_STM32_USART_3_NAME DT_ST_STM32_USART_40004800_LABEL #define DT_USART_3_IRQ DT_ST_STM32_USART_40004800_IRQ_0 #define DT_UART_STM32_USART_3_CLOCK_BITS DT_ST_STM32_USART_40004800_CLOCK_BITS #define DT_UART_STM32_USART_3_CLOCK_BUS DT_ST_STM32_USART_40004800_CLOCK_BUS #define DT_UART_STM32_USART_3_HW_FLOW_CONTROL DT_ST_STM32_USART_40004800_HW_FLOW_CONTROL #define DT_I2C_1_BASE_ADDRESS DT_ST_STM32_I2C_V1_40005400_BASE_ADDRESS #define DT_I2C_1_EVENT_IRQ_PRI DT_ST_STM32_I2C_V1_40005400_IRQ_EVENT_PRIORITY #define DT_I2C_1_ERROR_IRQ_PRI DT_ST_STM32_I2C_V1_40005400_IRQ_ERROR_PRIORITY #define CONFIG_I2C_1_NAME DT_ST_STM32_I2C_V1_40005400_LABEL #define DT_I2C_1_EVENT_IRQ DT_ST_STM32_I2C_V1_40005400_IRQ_EVENT #define DT_I2C_1_ERROR_IRQ DT_ST_STM32_I2C_V1_40005400_IRQ_ERROR #define DT_I2C_1_BITRATE DT_ST_STM32_I2C_V1_40005400_CLOCK_FREQUENCY #define DT_I2C_1_CLOCK_BITS DT_ST_STM32_I2C_V1_40005400_CLOCK_BITS #define DT_I2C_1_CLOCK_BUS DT_ST_STM32_I2C_V1_40005400_CLOCK_BUS #define DT_I2C_2_BASE_ADDRESS DT_ST_STM32_I2C_V1_40005800_BASE_ADDRESS #define DT_I2C_2_EVENT_IRQ_PRI DT_ST_STM32_I2C_V1_40005800_IRQ_EVENT_PRIORITY #define DT_I2C_2_ERROR_IRQ_PRI DT_ST_STM32_I2C_V1_40005800_IRQ_ERROR_PRIORITY #define CONFIG_I2C_2_NAME DT_ST_STM32_I2C_V1_40005800_LABEL #define DT_I2C_2_EVENT_IRQ DT_ST_STM32_I2C_V1_40005800_IRQ_EVENT #define DT_I2C_2_ERROR_IRQ DT_ST_STM32_I2C_V1_40005800_IRQ_ERROR #define DT_I2C_2_BITRATE DT_ST_STM32_I2C_V1_40005800_CLOCK_FREQUENCY #define DT_I2C_2_CLOCK_BITS DT_ST_STM32_I2C_V1_40005800_CLOCK_BITS #define DT_I2C_2_CLOCK_BUS DT_ST_STM32_I2C_V1_40005800_CLOCK_BUS #define DT_WWDT_0_BASE_ADDRESS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_BASE_ADDRESS #define DT_WWDT_0_NAME DT_INST_0_ST_STM32_WINDOW_WATCHDOG_LABEL #define DT_WWDT_0_IRQ DT_INST_0_ST_STM32_WINDOW_WATCHDOG_IRQ_0 #define DT_WWDT_0_IRQ_PRI DT_INST_0_ST_STM32_WINDOW_WATCHDOG_IRQ_0_PRIORITY #define DT_WWDT_0_CLOCK_BITS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_CLOCK_BITS #define DT_WWDT_0_CLOCK_BUS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_CLOCK_BUS /* End of SoC Level DTS fixup file */
jrth/zephyr
soc/arm/st_stm32/stm32f2/dts_fixup.h
<gh_stars>0 /* SPDX-License-Identifier: Apache-2.0 */ /* SoC level DTS fixup file */ #define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS #define DT_GPIO_STM32_GPIOA_BASE_ADDRESS DT_ST_STM32_GPIO_40020000_BASE_ADDRESS #define DT_GPIO_STM32_GPIOA_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020000_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOA_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020000_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOA_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020000_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOA_LABEL DT_ST_STM32_GPIO_40020000_LABEL #define DT_GPIO_STM32_GPIOA_SIZE DT_ST_STM32_GPIO_40020000_SIZE #define DT_GPIO_STM32_GPIOA_CLOCK_BITS DT_ST_STM32_GPIO_40020000_CLOCK_BITS #define DT_GPIO_STM32_GPIOA_CLOCK_BUS DT_ST_STM32_GPIO_40020000_CLOCK_BUS #define DT_GPIO_STM32_GPIOB_BASE_ADDRESS DT_ST_STM32_GPIO_40020400_BASE_ADDRESS #define DT_GPIO_STM32_GPIOB_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020400_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOB_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020400_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOB_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020400_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOB_LABEL DT_ST_STM32_GPIO_40020400_LABEL #define DT_GPIO_STM32_GPIOB_SIZE DT_ST_STM32_GPIO_40020400_SIZE #define DT_GPIO_STM32_GPIOB_CLOCK_BITS DT_ST_STM32_GPIO_40020400_CLOCK_BITS #define DT_GPIO_STM32_GPIOB_CLOCK_BUS DT_ST_STM32_GPIO_40020400_CLOCK_BUS #define DT_GPIO_STM32_GPIOC_BASE_ADDRESS DT_ST_STM32_GPIO_40020800_BASE_ADDRESS #define DT_GPIO_STM32_GPIOC_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020800_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOC_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020800_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOC_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020800_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOC_LABEL DT_ST_STM32_GPIO_40020800_LABEL #define DT_GPIO_STM32_GPIOC_SIZE DT_ST_STM32_GPIO_40020800_SIZE #define DT_GPIO_STM32_GPIOC_CLOCK_BITS DT_ST_STM32_GPIO_40020800_CLOCK_BITS #define DT_GPIO_STM32_GPIOC_CLOCK_BUS DT_ST_STM32_GPIO_40020800_CLOCK_BUS #define DT_GPIO_STM32_GPIOD_BASE_ADDRESS DT_ST_STM32_GPIO_40020C00_BASE_ADDRESS #define DT_GPIO_STM32_GPIOD_CLOCK_BITS_0 DT_ST_STM32_GPIO_40020C00_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOD_CLOCK_BUS_0 DT_ST_STM32_GPIO_40020C00_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOD_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40020C00_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOD_LABEL DT_ST_STM32_GPIO_40020C00_LABEL #define DT_GPIO_STM32_GPIOD_SIZE DT_ST_STM32_GPIO_40020C00_SIZE #define DT_GPIO_STM32_GPIOD_CLOCK_BITS DT_ST_STM32_GPIO_40020C00_CLOCK_BITS #define DT_GPIO_STM32_GPIOD_CLOCK_BUS DT_ST_STM32_GPIO_40020C00_CLOCK_BUS #define DT_GPIO_STM32_GPIOE_BASE_ADDRESS DT_ST_STM32_GPIO_40021000_BASE_ADDRESS #define DT_GPIO_STM32_GPIOE_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021000_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOE_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021000_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOE_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021000_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOE_LABEL DT_ST_STM32_GPIO_40021000_LABEL #define DT_GPIO_STM32_GPIOE_SIZE DT_ST_STM32_GPIO_40021000_SIZE #define DT_GPIO_STM32_GPIOE_CLOCK_BITS DT_ST_STM32_GPIO_40021000_CLOCK_BITS #define DT_GPIO_STM32_GPIOE_CLOCK_BUS DT_ST_STM32_GPIO_40021000_CLOCK_BUS #define DT_GPIO_STM32_GPIOF_BASE_ADDRESS DT_ST_STM32_GPIO_40021400_BASE_ADDRESS #define DT_GPIO_STM32_GPIOF_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021400_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOF_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021400_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOF_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021400_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOF_LABEL DT_ST_STM32_GPIO_40021400_LABEL #define DT_GPIO_STM32_GPIOF_SIZE DT_ST_STM32_GPIO_40021400_SIZE #define DT_GPIO_STM32_GPIOF_CLOCK_BITS DT_ST_STM32_GPIO_40021400_CLOCK_BITS #define DT_GPIO_STM32_GPIOF_CLOCK_BUS DT_ST_STM32_GPIO_40021400_CLOCK_BUS #define DT_GPIO_STM32_GPIOG_BASE_ADDRESS DT_ST_STM32_GPIO_40021800_BASE_ADDRESS #define DT_GPIO_STM32_GPIOG_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021800_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOG_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021800_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOG_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021800_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOG_LABEL DT_ST_STM32_GPIO_40021800_LABEL #define DT_GPIO_STM32_GPIOG_SIZE DT_ST_STM32_GPIO_40021800_SIZE #define DT_GPIO_STM32_GPIOG_CLOCK_BITS DT_ST_STM32_GPIO_40021800_CLOCK_BITS #define DT_GPIO_STM32_GPIOG_CLOCK_BUS DT_ST_STM32_GPIO_40021800_CLOCK_BUS #define DT_GPIO_STM32_GPIOH_BASE_ADDRESS DT_ST_STM32_GPIO_40021C00_BASE_ADDRESS #define DT_GPIO_STM32_GPIOH_CLOCK_BITS_0 DT_ST_STM32_GPIO_40021C00_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOH_CLOCK_BUS_0 DT_ST_STM32_GPIO_40021C00_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOH_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40021C00_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOH_LABEL DT_ST_STM32_GPIO_40021C00_LABEL #define DT_GPIO_STM32_GPIOH_SIZE DT_ST_STM32_GPIO_40021C00_SIZE #define DT_GPIO_STM32_GPIOH_CLOCK_BITS DT_ST_STM32_GPIO_40021C00_CLOCK_BITS #define DT_GPIO_STM32_GPIOH_CLOCK_BUS DT_ST_STM32_GPIO_40021C00_CLOCK_BUS #define DT_GPIO_STM32_GPIOI_BASE_ADDRESS DT_ST_STM32_GPIO_40022000_BASE_ADDRESS #define DT_GPIO_STM32_GPIOI_CLOCK_BITS_0 DT_ST_STM32_GPIO_40022000_CLOCK_BITS_0 #define DT_GPIO_STM32_GPIOI_CLOCK_BUS_0 DT_ST_STM32_GPIO_40022000_CLOCK_BUS_0 #define DT_GPIO_STM32_GPIOI_CLOCK_CONTROLLER DT_ST_STM32_GPIO_40022000_CLOCK_CONTROLLER #define DT_GPIO_STM32_GPIOI_LABEL DT_ST_STM32_GPIO_40022000_LABEL #define DT_GPIO_STM32_GPIOI_SIZE DT_ST_STM32_GPIO_40022000_SIZE #define DT_GPIO_STM32_GPIOI_CLOCK_BITS DT_ST_STM32_GPIO_40022000_CLOCK_BITS #define DT_GPIO_STM32_GPIOI_CLOCK_BUS DT_ST_STM32_GPIO_40022000_CLOCK_BUS #define DT_UART_STM32_USART_1_BASE_ADDRESS DT_ST_STM32_USART_40011000_BASE_ADDRESS #define DT_UART_STM32_USART_1_BAUD_RATE DT_ST_STM32_USART_40011000_CURRENT_SPEED #define DT_UART_STM32_USART_1_IRQ_PRI DT_ST_STM32_USART_40011000_IRQ_0_PRIORITY #define DT_UART_STM32_USART_1_NAME DT_ST_STM32_USART_40011000_LABEL #define DT_USART_1_IRQ DT_ST_STM32_USART_40011000_IRQ_0 #define DT_UART_STM32_USART_1_CLOCK_BITS DT_ST_STM32_USART_40011000_CLOCK_BITS #define DT_UART_STM32_USART_1_CLOCK_BUS DT_ST_STM32_USART_40011000_CLOCK_BUS #define DT_UART_STM32_USART_1_HW_FLOW_CONTROL DT_ST_STM32_USART_40011000_HW_FLOW_CONTROL #define DT_UART_STM32_USART_2_BASE_ADDRESS DT_ST_STM32_USART_40004400_BASE_ADDRESS #define DT_UART_STM32_USART_2_BAUD_RATE DT_ST_STM32_USART_40004400_CURRENT_SPEED #define DT_UART_STM32_USART_2_IRQ_PRI DT_ST_STM32_USART_40004400_IRQ_0_PRIORITY #define DT_UART_STM32_USART_2_NAME DT_ST_STM32_USART_40004400_LABEL #define DT_USART_2_IRQ DT_ST_STM32_USART_40004400_IRQ_0 #define DT_UART_STM32_USART_2_CLOCK_BITS DT_ST_STM32_USART_40004400_CLOCK_BITS #define DT_UART_STM32_USART_2_CLOCK_BUS DT_ST_STM32_USART_40004400_CLOCK_BUS #define DT_UART_STM32_USART_2_HW_FLOW_CONTROL DT_ST_STM32_USART_40004400_HW_FLOW_CONTROL #define DT_UART_STM32_USART_3_BASE_ADDRESS DT_ST_STM32_USART_40004800_BASE_ADDRESS #define DT_UART_STM32_USART_3_BAUD_RATE DT_ST_STM32_USART_40004800_CURRENT_SPEED #define DT_UART_STM32_USART_3_IRQ_PRI DT_ST_STM32_USART_40004800_IRQ_0_PRIORITY #define DT_UART_STM32_USART_3_NAME DT_ST_STM32_USART_40004800_LABEL #define DT_USART_3_IRQ DT_ST_STM32_USART_40004800_IRQ_0 #define DT_UART_STM32_USART_3_CLOCK_BITS DT_ST_STM32_USART_40004800_CLOCK_BITS #define DT_UART_STM32_USART_3_CLOCK_BUS DT_ST_STM32_USART_40004800_CLOCK_BUS #define DT_UART_STM32_USART_3_HW_FLOW_CONTROL DT_ST_STM32_USART_40004800_HW_FLOW_CONTROL #define DT_UART_STM32_USART_6_NAME DT_ST_STM32_USART_40011400_LABEL #define DT_UART_STM32_USART_6_BASE_ADDRESS DT_ST_STM32_USART_40011400_BASE_ADDRESS #define DT_UART_STM32_USART_6_BAUD_RATE DT_ST_STM32_USART_40011400_CURRENT_SPEED #define DT_UART_STM32_USART_6_IRQ_PRI DT_ST_STM32_USART_40011400_IRQ_0_PRIORITY #define DT_USART_6_IRQ DT_ST_STM32_USART_40011400_IRQ_0 #define DT_UART_STM32_USART_6_CLOCK_BITS DT_ST_STM32_USART_40011400_CLOCK_BITS #define DT_UART_STM32_USART_6_CLOCK_BUS DT_ST_STM32_USART_40011400_CLOCK_BUS #define DT_UART_STM32_USART_6_HW_FLOW_CONTROL DT_ST_STM32_USART_40011400_HW_FLOW_CONTROL #define DT_UART_STM32_UART_4_NAME DT_ST_STM32_UART_40004C00_LABEL #define DT_UART_STM32_UART_4_BASE_ADDRESS DT_ST_STM32_UART_40004C00_BASE_ADDRESS #define DT_UART_STM32_UART_4_BAUD_RATE DT_ST_STM32_UART_40004C00_CURRENT_SPEED #define DT_UART_STM32_UART_4_IRQ_PRI DT_ST_STM32_UART_40004C00_IRQ_0_PRIORITY #define DT_UART_4_IRQ DT_ST_STM32_UART_40004C00_IRQ_0 #define DT_UART_STM32_UART_4_CLOCK_BITS DT_ST_STM32_UART_40004C00_CLOCK_BITS #define DT_UART_STM32_UART_4_CLOCK_BUS DT_ST_STM32_UART_40004C00_CLOCK_BUS #define DT_UART_STM32_UART_4_HW_FLOW_CONTROL DT_ST_STM32_UART_40004C00_HW_FLOW_CONTROL #define DT_UART_STM32_UART_5_NAME DT_ST_STM32_UART_40005000_LABEL #define DT_UART_STM32_UART_5_BASE_ADDRESS DT_ST_STM32_UART_40005000_BASE_ADDRESS #define DT_UART_STM32_UART_5_BAUD_RATE DT_ST_STM32_UART_40005000_CURRENT_SPEED #define DT_UART_STM32_UART_5_IRQ_PRI DT_ST_STM32_UART_40005000_IRQ_0_PRIORITY #define DT_UART_5_IRQ DT_ST_STM32_UART_40005000_IRQ_0 #define DT_UART_STM32_UART_5_CLOCK_BITS DT_ST_STM32_UART_40005000_CLOCK_BITS #define DT_UART_STM32_UART_5_CLOCK_BUS DT_ST_STM32_UART_40005000_CLOCK_BUS #define DT_UART_STM32_UART_5_HW_FLOW_CONTROL DT_ST_STM32_UART_40005000_HW_FLOW_CONTROL #define DT_USB_BASE_ADDRESS DT_ST_STM32_OTGFS_50000000_BASE_ADDRESS #define DT_USB_IRQ DT_ST_STM32_OTGFS_50000000_IRQ_OTGFS #define DT_USB_IRQ_PRI DT_ST_STM32_OTGFS_50000000_IRQ_OTGFS_PRIORITY #define DT_USB_NUM_BIDIR_ENDPOINTS DT_ST_STM32_OTGFS_50000000_NUM_BIDIR_ENDPOINTS #define DT_USB_RAM_SIZE DT_ST_STM32_OTGFS_50000000_RAM_SIZE #define DT_USB_MAXIMUM_SPEED DT_ST_STM32_OTGFS_50000000_MAXIMUM_SPEED #define DT_USB_CLOCK_BITS DT_ST_STM32_OTGFS_50000000_CLOCK_BITS #define DT_USB_CLOCK_BUS DT_ST_STM32_OTGFS_50000000_CLOCK_BUS #define DT_WDT_0_NAME DT_INST_0_ST_STM32_WATCHDOG_LABEL #define DT_WWDT_0_BASE_ADDRESS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_BASE_ADDRESS #define DT_WWDT_0_NAME DT_INST_0_ST_STM32_WINDOW_WATCHDOG_LABEL #define DT_WWDT_0_IRQ DT_INST_0_ST_STM32_WINDOW_WATCHDOG_IRQ_0 #define DT_WWDT_0_IRQ_PRI DT_INST_0_ST_STM32_WINDOW_WATCHDOG_IRQ_0_PRIORITY #define DT_WWDT_0_CLOCK_BITS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_CLOCK_BITS #define DT_WWDT_0_CLOCK_BUS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_CLOCK_BUS #define DT_ADC_1_BASE_ADDRESS DT_ST_STM32_ADC_40012000_BASE_ADDRESS #define DT_ADC_1_IRQ DT_ST_STM32_ADC_40012000_IRQ_0 #define DT_ADC_1_IRQ_PRI DT_ST_STM32_ADC_40012000_IRQ_0_PRIORITY #define DT_ADC_1_NAME DT_ST_STM32_ADC_40012000_LABEL #define DT_ADC_1_CLOCK_BITS DT_ST_STM32_ADC_40012000_CLOCK_BITS_0 #define DT_ADC_1_CLOCK_BUS DT_ST_STM32_ADC_40012000_CLOCK_BUS_0 /* End of SoC Level DTS fixup file */
jrth/zephyr
arch/x86/core/offsets/offsets.c
/* * Copyright (c) 2019 Intel Corp. * SPDX-License-Identifier: Apache-2.0 */ #include <gen_offset.h> #include <kernel_structs.h> #include <arch/x86/multiboot.h> #ifdef CONFIG_X86_LONGMODE #include "intel64_offsets.c" #else #include "ia32_offsets.c" #endif /* size of struct x86_multiboot_info, used by crt0.S/locore.S */ GEN_ABSOLUTE_SYM(__X86_MULTIBOOT_INFO_SIZEOF, sizeof(struct x86_multiboot_info)); GEN_ABS_SYM_END
jrth/zephyr
soc/arm/nxp_kinetis/k8x/soc.h
/* * Copyright (c) 2019 SEAL AG * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _SOC__H_ #define _SOC__H_ #include <misc/util.h> #ifdef __cplusplus extern "C" { #endif #ifndef _ASMLANGUAGE #include <fsl_common.h> /* ARM CMSIS definitions must be included before kernel_includes.h. * Therefore, it is essential to include kernel_includes.h after including * core SOC-specific headers. */ #include <kernel_includes.h> #endif /* !_ASMLANGUAGE */ #ifdef __cplusplus } #endif /* address bases */ #define PERIPH_ADDR_BASE_WDOG 0x40052000 /* Watchdog Timer module */ #endif /* _SOC__H_ */