id int64 0 877k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 66 | repo_stars int64 94 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 11
values | repo_extraction_date stringclasses 197
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,542,824 | Chi.cpp | RCameron93_FehlerFabrik/src/Chi.cpp | // 3-Band Voltage controlled crossover
// Ross Cameron 2020/08/16
// Title Font - Rumeur Bold
// https://github.com/groupeccc/Rumeur
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
#include "ffFilters.hpp"
struct Chi : Module
{
enum ParamIds
{
LOW_GAIN_PARAM,
MID_GAIN_PARAM... | 7,679 | C++ | .cpp | 203 | 34.640394 | 200 | 0.677731 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,825 | Aspect.cpp | RCameron93_FehlerFabrik/src/Aspect.cpp | // Clock Divider and sequential sequencer
// Ross Cameron
// Title font - Resistance Regular
// https://velvetyne.fr/fonts/resistance/
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
struct Aspect : Module
{
enum ParamIds
{
NUM_PARAMS
};
enum InputIds
... | 3,985 | C++ | .cpp | 115 | 26.617391 | 140 | 0.574617 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,826 | Fax.cpp | RCameron93_FehlerFabrik/src/Fax.cpp | // CV Recorder/Sequencer
// Ross Cameron 2020/07/11
// Title font - ARK-ES Dense Regular
// https://stued.io/projects/ark-typeface
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
// Magic numbers for the led positions
// These came from using tranform tools in Adobe Illustrator
... | 14,632 | C++ | .cpp | 512 | 25.197266 | 577 | 0.656768 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,827 | Rasoir.cpp | RCameron93_FehlerFabrik/src/Rasoir.cpp | // Asymmetrical Voltage Processor
// Ross Cameron 2020/07/21
// Title Font - VTF Lment
// https://velvetyne.fr/fonts/lment/
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
#include "samplerate.h"
#include "ffFilters.hpp"
#include "ffCommon.hpp"
#define HISTORY_SIZE (1 << 21)
str... | 13,246 | C++ | .cpp | 331 | 37.009063 | 119 | 0.716319 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,828 | plugin.cpp | RCameron93_FehlerFabrik/src/plugin.cpp | #include "plugin.hpp"
Plugin *pluginInstance;
void init(Plugin *p)
{
pluginInstance = p;
// Add modules here
// p->addModel(modelMyModule);
p->addModel(modelPSIOP);
p->addModel(modelPlanck);
p->addModel(modelLuigi);
p->addModel(modelAspect);
p->addModel(modelMonte);
p->addModel(modelArpanet);
p->addModel(m... | 670 | C++ | .cpp | 23 | 27.173913 | 130 | 0.766719 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,829 | Lilt.cpp | RCameron93_FehlerFabrik/src/Lilt.cpp | // Phase-Shifted Shuffling Clock Pair
// Ross Cameron
// Title font - Velvetyne Basteleur Bold
// https://velvetyne.fr/fonts/basteleur/
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
const float amplitude = 10.0f;
struct Lilt : Module
{
enum ParamIds
{
ALPHA_RATE_PARAM,
B... | 4,115 | C++ | .cpp | 132 | 28.515152 | 112 | 0.712014 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,830 | PSIOP.cpp | RCameron93_FehlerFabrik/src/PSIOP.cpp | // Title Font - Jaapokki
// https://mikkonuuttila.com/jaapokki/
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
#include "PSIOP.hpp"
#include "ffCommon.hpp"
#include "ffFilters.hpp"
struct PSIOP : Module
{
enum ParamIds
{
START_PARAM,
FINE_PARAM,
E... | 16,257 | C++ | .cpp | 379 | 32.751979 | 159 | 0.583254 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,831 | Arpanet.cpp | RCameron93_FehlerFabrik/src/Arpanet.cpp | // 1601 Style Step Sequencer
// Ross Cameron 2020/06/04
// Title Font - ZXX Camo
// https://www.librarystack.org/zxx/
// Main font - Jost
// https://indestructibletype.com/Jost.html
#include "plugin.hpp"
struct Arpanet : Module
{
enum ParamIds
{
ENUMS(GATE1_PARAM, 16),
ENUMS(SLIDER1_PARAM, 16),
STARTTOGGLE_P... | 13,435 | C++ | .cpp | 385 | 31.784416 | 129 | 0.706797 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,832 | ffComponents.hpp | RCameron93_FehlerFabrik/src/ffComponents.hpp | // #include "plugin.hpp"
// #include <rack.hpp>
extern Plugin *pluginInstance;
// Switches
struct HCKSS : app::SvgSwitch
{
HCKSS()
{
addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Components/HCKSS_0.svg")));
addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Com... | 2,654 | C++ | .h | 116 | 18.965517 | 101 | 0.659953 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,833 | ffFilters.hpp | RCameron93_FehlerFabrik/src/ffFilters.hpp | struct DCBlock
{
// https://www.dsprelated.com/freebooks/filters/DC_Blocker.html
float xm1 = 0;
float ym1 = 0;
float r = 0.995;
float process(float x)
{
float y = x - xm1 + r * ym1;
xm1 = x;
ym1 = y;
return y;
}
};
struct ButterWorth2Filter : dsp::IIRFilte... | 4,083 | C++ | .h | 133 | 23.240602 | 86 | 0.533741 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,834 | ffCommon.hpp | RCameron93_FehlerFabrik/src/ffCommon.hpp | #include "wavetables/Wavetables.hpp"
struct FFLogger
{
int counter = 0;
// Outputs a message to the log once a second
void log(const char *message, float samplerate)
{
if (counter == (int)samplerate)
{
DEBUG("error: %s", message);
counter = 0;
}
c... | 6,824 | C++ | .h | 274 | 17.821168 | 137 | 0.529529 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,835 | PSIOP.hpp | RCameron93_FehlerFabrik/src/PSIOP.hpp | // 3D modulation matrix
// 6 algorithims, 4 sources (each operators sine output), 5 destinations (each ops fm in and the master output)
float modMatrix[6][4][5] =
{
{{0, 1, 0, 0, 0}, {0, 0, 0, 0, 1}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}},
{{0, 0, 0, 0, 0.5}, {0, 0, 0, 0, 0.5}, {0, 0, 0, 0, 0}, {0, 0, 0,... | 2,869 | C++ | .h | 24 | 110.458333 | 900 | 0.386915 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,836 | plugin.hpp | RCameron93_FehlerFabrik/src/plugin.hpp | #pragma once
#include <rack.hpp>
using namespace rack;
#include "ffComponents.hpp"
// Declare the Plugin, defined in plugin.cpp
extern Plugin *pluginInstance;
// Declare each Model, defined in each module source file
// extern Model* modelMyModule;
extern Model *modelPSIOP;
extern Model *modelPlanck;
extern Model ... | 595 | C++ | .h | 21 | 27.095238 | 57 | 0.824253 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,837 | Wavetables.hpp | RCameron93_FehlerFabrik/src/wavetables/Wavetables.hpp | // Wavetables from Valley Rack
// https://github.com/ValleyAudio/ValleyRackFree/tree/v1.0/src/Common/Wavetables
// #pragma once
#include "opal_wavetable/opal_wavetable.h"
// #include "TeeEks_wavetable/TeeEks_wavetable.h"
// #include "basic_wavetable/basic_wavetable.h"
// #include "additiveBank_wavetable/additiveBank_w... | 2,011 | C++ | .h | 39 | 50.512821 | 80 | 0.788832 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,838 | opal_5.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_5.h | #ifndef WAVETABLE_OPAL_5_H
#define WAVETABLE_OPAL_5_H
#define WAVETABLE_OPAL_5_LENGTH 4096
static long opal_5_tableLength = 4096;
static float opal_5_waveTable[WAVETABLE_OPAL_5_LENGTH] = {
0.000000e+00, 3.067851e-03, 6.135821e-03, 9.203672e-03, 1.227152e-02, 1.533914e-02, 1.840663e-02, 2.147400e-02, 2.454114e-02, ... | 59,868 | C++ | .h | 263 | 221.764259 | 244 | 0.690016 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,839 | opal_2.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_2.h | #ifndef WAVETABLE_OPAL_2_H
#define WAVETABLE_OPAL_2_H
#define WAVETABLE_OPAL_2_LENGTH 4096
static long opal_2_tableLength = 4096;
static float opal_2_waveTable[WAVETABLE_OPAL_2_LENGTH] = {
0.000000e+00, 1.533866e-03, 3.067851e-03, 4.601836e-03, 6.135821e-03, 7.669806e-03, 9.203672e-03, 1.073766e-02, 1.227152e-02, ... | 58,845 | C++ | .h | 263 | 217.874525 | 228 | 0.702066 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,840 | opal_wavetable.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_wavetable.h | #ifndef WAVETABLE_OPAL_H
#define WAVETABLE_OPAL_H
#define WAVETABLE_OPAL_NUM 8
#include "opal_1.h"
#include "opal_2.h"
#include "opal_3.h"
#include "opal_4.h"
#include "opal_5.h"
#include "opal_6.h"
#include "opal_7.h"
#include "opal_8.h"
static float* wavetable_opal[WAVETABLE_OPAL_NUM] = {
opal_1_waveTable,
... | 754 | C++ | .h | 32 | 20.4375 | 58 | 0.713092 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,841 | opal_6.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_6.h | #ifndef WAVETABLE_OPAL_6_H
#define WAVETABLE_OPAL_6_H
#define WAVETABLE_OPAL_6_LENGTH 4096
static long opal_6_tableLength = 4096;
static float opal_6_waveTable[WAVETABLE_OPAL_6_LENGTH] = {
0.000000e+00, 3.067851e-03, 6.135821e-03, 9.203672e-03, 1.227152e-02, 1.533914e-02, 1.840663e-02, 2.147400e-02, 2.454114e-02, ... | 58,845 | C++ | .h | 263 | 217.874525 | 228 | 0.702066 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,842 | opal_7.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_7.h | #ifndef WAVETABLE_OPAL_7_H
#define WAVETABLE_OPAL_7_H
#define WAVETABLE_OPAL_7_LENGTH 4096
static long opal_7_tableLength = 4096;
static float opal_7_waveTable[WAVETABLE_OPAL_7_LENGTH] = {
9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, 9.999999e-01, ... | 60,893 | C++ | .h | 263 | 225.661597 | 244 | 0.67835 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,843 | opal_3.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_3.h | #ifndef WAVETABLE_OPAL_3_H
#define WAVETABLE_OPAL_3_H
#define WAVETABLE_OPAL_3_LENGTH 4096
static long opal_3_tableLength = 4096;
static float opal_3_waveTable[WAVETABLE_OPAL_3_LENGTH] = {
0.000000e+00, 1.533866e-03, 3.067851e-03, 4.601836e-03, 6.135821e-03, 7.669806e-03, 9.203672e-03, 1.073766e-02, 1.227152e-02, ... | 58,845 | C++ | .h | 263 | 217.874525 | 228 | 0.702066 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,844 | opal_8.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_8.h | #ifndef WAVETABLE_OPAL_8_H
#define WAVETABLE_OPAL_8_H
#define WAVETABLE_OPAL_8_LENGTH 4096
static long opal_8_tableLength = 4096;
static float opal_8_waveTable[WAVETABLE_OPAL_8_LENGTH] = {
9.999999e-01, 9.990234e-01, 9.980474e-01, 9.970717e-01, 9.960966e-01, 9.951220e-01, 9.941478e-01, 9.931741e-01, 9.922009e-01, ... | 60,893 | C++ | .h | 263 | 225.661597 | 244 | 0.67835 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,845 | opal_4.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_4.h | #ifndef WAVETABLE_OPAL_4_H
#define WAVETABLE_OPAL_4_H
#define WAVETABLE_OPAL_4_LENGTH 4096
static long opal_4_tableLength = 4096;
static float opal_4_waveTable[WAVETABLE_OPAL_4_LENGTH] = {
0.000000e+00, 1.533866e-03, 3.067851e-03, 4.601836e-03, 6.135821e-03, 7.669806e-03, 9.203672e-03, 1.073766e-02, 1.227152e-02, ... | 58,845 | C++ | .h | 263 | 217.874525 | 228 | 0.702066 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,846 | opal_1.h | RCameron93_FehlerFabrik/src/wavetables/opal_wavetable/opal_1.h | #ifndef WAVETABLE_OPAL_1_H
#define WAVETABLE_OPAL_1_H
#define WAVETABLE_OPAL_1_LENGTH 4096
static long opal_1_tableLength = 4096;
static float opal_1_waveTable[WAVETABLE_OPAL_1_LENGTH] = {
0.000000e+00, 1.533866e-03, 3.067851e-03, 4.601836e-03, 6.135821e-03, 7.669806e-03, 9.203672e-03, 1.073766e-02, 1.227152e-02, ... | 60,892 | C++ | .h | 263 | 225.657795 | 244 | 0.678361 | RCameron93/FehlerFabrik | 30 | 3 | 7 | GPL-3.0 | 9/20/2024, 10:45:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,847 | config.cpp | nzh63_syc/src/config.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 2,463 | C++ | .cpp | 79 | 26.316456 | 73 | 0.594288 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,848 | main.cpp | nzh63_syc/src/main.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,697 | C++ | .cpp | 49 | 32.040816 | 73 | 0.710719 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,849 | optimize.cpp | nzh63_syc/src/assembly/optimize/optimize.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,378 | C++ | .cpp | 42 | 30.738095 | 73 | 0.728024 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,850 | peephole.cpp | nzh63_syc/src/assembly/optimize/passes/peephole.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 4,192 | C++ | .cpp | 140 | 24.65 | 79 | 0.589495 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,851 | reorder.cpp | nzh63_syc/src/assembly/optimize/passes/reorder.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 24,910 | C++ | .cpp | 785 | 23.315924 | 80 | 0.552191 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,852 | context.cpp | nzh63_syc/src/assembly/generate/context.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 12,133 | C++ | .cpp | 337 | 30.454006 | 80 | 0.545727 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,853 | generate.cpp | nzh63_syc/src/assembly/generate/generate.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 22,650 | C++ | .cpp | 551 | 33.686025 | 80 | 0.463793 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,854 | ir.cpp | nzh63_syc/src/ir/ir.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 8,740 | C++ | .cpp | 257 | 28.680934 | 80 | 0.562463 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,855 | optimize.cpp | nzh63_syc/src/ir/optimize/optimize.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,562 | C++ | .cpp | 43 | 32.534884 | 73 | 0.698088 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,856 | optimize_phi_var.cpp | nzh63_syc/src/ir/optimize/passes/optimize_phi_var.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 2,171 | C++ | .cpp | 68 | 27.088235 | 73 | 0.596667 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,857 | dead_code_elimination.cpp | nzh63_syc/src/ir/optimize/passes/dead_code_elimination.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,694 | C++ | .cpp | 44 | 35 | 73 | 0.662211 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,858 | local_common_subexpression_elimination.cpp | nzh63_syc/src/ir/optimize/passes/local_common_subexpression_elimination.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 3,563 | C++ | .cpp | 90 | 34 | 80 | 0.585622 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,859 | invariant_code_motion.cpp | nzh63_syc/src/ir/optimize/passes/invariant_code_motion.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 3,345 | C++ | .cpp | 96 | 27.3125 | 74 | 0.570485 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,860 | unreachable_code_elimination.cpp | nzh63_syc/src/ir/optimize/passes/unreachable_code_elimination.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,429 | C++ | .cpp | 39 | 32.25641 | 77 | 0.651297 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,861 | local_common_constexpr_function_elimination.cpp | nzh63_syc/src/ir/optimize/passes/local_common_constexpr_function_elimination.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 4,512 | C++ | .cpp | 137 | 26.664234 | 80 | 0.593364 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,862 | context.cpp | nzh63_syc/src/ir/generate/context.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 3,321 | C++ | .cpp | 81 | 38.382716 | 79 | 0.672136 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,863 | generate_ir.cpp | nzh63_syc/src/ir/generate/generate_ir.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 26,500 | C++ | .cpp | 682 | 31.633431 | 80 | 0.575385 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,864 | generate.cpp | nzh63_syc/src/ir/generate/generate.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 930 | C++ | .cpp | 26 | 33.807692 | 73 | 0.740864 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,865 | eval.cpp | nzh63_syc/src/ir/generate/eval.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 17,492 | C++ | .cpp | 539 | 25.786642 | 79 | 0.559373 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,866 | node.cpp | nzh63_syc/src/ast/node.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 12,753 | C++ | .cpp | 310 | 37.454839 | 80 | 0.674982 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,867 | generate.cpp | nzh63_syc/src/ast/generate/generate.cpp | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,142 | C++ | .cpp | 34 | 31.735294 | 73 | 0.739837 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,868 | config.h | nzh63_syc/src/config.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,114 | C++ | .h | 33 | 32.242424 | 73 | 0.764815 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,869 | optimize.h | nzh63_syc/src/assembly/optimize/optimize.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 888 | C++ | .h | 23 | 36.869565 | 73 | 0.753472 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,870 | passes.h | nzh63_syc/src/assembly/optimize/passes.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 834 | C++ | .h | 20 | 39.9 | 73 | 0.762899 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,873 | context.h | nzh63_syc/src/assembly/generate/context.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 4,346 | C++ | .h | 101 | 34.712871 | 77 | 0.688284 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,874 | generate.h | nzh63_syc/src/assembly/generate/generate.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 962 | C++ | .h | 24 | 38.333333 | 73 | 0.747863 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,875 | ir.h | nzh63_syc/src/ir/ir.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 3,976 | C++ | .h | 113 | 32.044248 | 73 | 0.58329 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,876 | optimize.h | nzh63_syc/src/ir/optimize/optimize.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 966 | C++ | .h | 24 | 37.583333 | 73 | 0.730851 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,877 | passes.h | nzh63_syc/src/ir/optimize/passes.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,106 | C++ | .h | 24 | 44.416667 | 75 | 0.778189 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,878 | local_common_subexpression_elimination.h | nzh63_syc/src/ir/optimize/passes/local_common_subexpression_elimination.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 878 | C++ | .h | 22 | 38.136364 | 73 | 0.754386 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,879 | unreachable_code_elimination.h | nzh63_syc/src/ir/optimize/passes/unreachable_code_elimination.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 868 | C++ | .h | 22 | 37.681818 | 73 | 0.752663 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,880 | invariant_code_motion.h | nzh63_syc/src/ir/optimize/passes/invariant_code_motion.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,006 | C++ | .h | 24 | 37.541667 | 73 | 0.701325 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,881 | dead_code_elimination.h | nzh63_syc/src/ir/optimize/passes/dead_code_elimination.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 861 | C++ | .h | 22 | 37.363636 | 73 | 0.750597 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,882 | local_common_constexpr_function_elimination.h | nzh63_syc/src/ir/optimize/passes/local_common_constexpr_function_elimination.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 883 | C++ | .h | 22 | 38.363636 | 73 | 0.754651 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,883 | optimize_phi_var.h | nzh63_syc/src/ir/optimize/passes/optimize_phi_var.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 1,042 | C++ | .h | 29 | 33.655172 | 73 | 0.720766 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,884 | context.h | nzh63_syc/src/ir/generate/context.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 2,483 | C++ | .h | 72 | 31.819444 | 80 | 0.714583 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,885 | generate.h | nzh63_syc/src/ir/generate/generate.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 873 | C++ | .h | 23 | 36.173913 | 73 | 0.746462 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,886 | node.h | nzh63_syc/src/ast/node.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 11,971 | C++ | .h | 343 | 30.463557 | 80 | 0.685393 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,887 | generate.h | nzh63_syc/src/ast/generate/generate.h | /*
* syc, a compiler for SysY
* Copyright (C) 2020-2021 nzh63, skywf21
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ... | 918 | C++ | .h | 24 | 36.5 | 73 | 0.745516 | nzh63/syc | 39 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,890 | FakeArduino.cpp | Open-Smartwatch_lib-open-smartwatch/FakeArduino.cpp | #include "FakeArduino.h"
#ifdef OSW_EMULATOR
#include <SDL.h>
#include <stdint.h>
#include <stdlib.h>
#include <random>
std::mt19937_64 gen(std::random_device{}());
// copy over missing functions from Arduino.h here, and fix them so they run :)
long millis() { return SDL_GetTicks(); }
long random(int howbig) {
ui... | 1,014 | C++ | .cpp | 38 | 23.578947 | 79 | 0.613402 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,891 | osm_render.cpp | Open-Smartwatch_lib-open-smartwatch/osm_render.cpp | #include "osm_render.h"
#include "gfx_2d.h"
// #include <stdio.h>
// Memory estimation in bytes:
// 256*256*2=131.072
// 2x2 = 524.288
// 3x3 = 1.179.648
// 4x4 = 2.097.152
// 5x5 = 3.276.800
Graphics2D *getTile(BufferedTile **buffer, uint8_t bufferLength, loadTile loadTileFn, uint32_t tileX, uint32_t tileY,
... | 5,605 | C++ | .cpp | 100 | 51.89 | 119 | 0.652641 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,892 | gfx_util.cpp | Open-Smartwatch_lib-open-smartwatch/gfx_util.cpp | #include "gfx_util.h"
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
uint16_t rgb565(uint8_t red, uint8_t green, uint8_t blue) {
return ((red & 0b00011111000) << 8) | ((green & 0b00011111100) << 3) | (blue >> 3);
}
uint32_t rgb888(uint8_t red, uint8_t green, uint8_t blue) {
return... | 4,107 | C++ | .cpp | 145 | 24.634483 | 119 | 0.594663 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,893 | time_util.cpp | Open-Smartwatch_lib-open-smartwatch/time_util.cpp | #include "time_util.h"
long seconds(long seconds) { return (seconds % 60); }
long minutes(long seconds) {
long fh = (seconds / 3600); // full hours
return (((seconds - fh * 3600) / 60.0));
}
long hours24(long seconds) {
long fd = (seconds / 3600) / 24; // full days
return ((seconds - fd * 24 * 3600) / 3600.... | 330 | C++ | .cpp | 10 | 31.1 | 53 | 0.626959 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,894 | math_osm.cpp | Open-Smartwatch_lib-open-smartwatch/math_osm.cpp | #include "math_osm.h"
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
// source: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#C.2FC.2B.2B
// we return float here, because we need the fraction
float lon2tilex(float lon, uint8_t z) { return (lon + 180.0) / 360.0 * (float)(1 ... | 1,216 | C++ | .cpp | 26 | 43.961538 | 117 | 0.632203 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,895 | anim_doom_fire_old.cpp | Open-Smartwatch_lib-open-smartwatch/anim_doom_fire_old.cpp | #include "anim_doom_fire_old.h"
#include "gfx_2d.h"
#include "gfx_util.h"
// see: https://p3dt.net/post/2019/01/05/playing-with-doom.html
const uint16_t doomColorMap[36] = {
//
rgb565(0x00, 0x00, 0x00), // #000000
rgb565(0x1f, 0x07, 0x07), // #1f0707
rgb565(0x2f, 0x0f, 0x07), // #2f0f07
rgb565(... | 2,707 | C++ | .cpp | 71 | 33.521127 | 87 | 0.576967 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,896 | anim_water_ripple.cpp | Open-Smartwatch_lib-open-smartwatch/anim_water_ripple.cpp | #include "anim_water_ripple.h"
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_2d.h"
#include "gfx_util.h"
// helper to calculate position in the buffer
#define a(x, y, width) (x) + ((y)*width)
// implementation according to:
// https://web.archive.org/web/2016041800414... | 1,780 | C++ | .cpp | 42 | 36.142857 | 105 | 0.568537 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,897 | math_angles.cpp | Open-Smartwatch_lib-open-smartwatch/math_angles.cpp | #include "math_angles.h"
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
// rotate a point around a center (cy,cy), with a radius r, 0 degrees ist 12 o'clock
float rpx(float cx, float r, float d) { return cx + r * cos((d - 90) * 1000.0 / 57296.0); }
float rpy(float cy, float r, float d)... | 1,948 | C++ | .cpp | 48 | 38.625 | 106 | 0.615996 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,898 | anim_firework.cpp | Open-Smartwatch_lib-open-smartwatch/anim_firework.cpp | #include "anim_firework.h"
void Particle::tick(long ms, float friction, float gravity) {
// update position
locationX += speedX * (ms / 1000.0);
locationY += speedY * (ms / 1000.0);
// update velocity
speedX = speedX - friction * (ms / 1000.0);
speedY = speedY + gravity * (ms / 1000.0);
// printf("parti... | 1,812 | C++ | .cpp | 48 | 33.708333 | 115 | 0.637244 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,899 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/perlin/main.cpp |
#include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../math_angles.h"
#include "../../SimplexNoise.h"
SimplexNoise sn;
using namespace std;
#define BUF_W 240
#define BUF_H 240
uint16_t scr... | 2,381 | C++ | .cpp | 59 | 35.440678 | 120 | 0.518631 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,900 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/text/main.cpp | #include <stdint.h>
#include <stdio.h>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d_print.h"
#include "../../gfx_util.h"
#include "../../fonts/Picopixel.h"
#include "../../fonts/FreeSans11pt8b.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
Graphics2DPri... | 2,412 | C++ | .cpp | 79 | 26.21519 | 99 | 0.652682 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,901 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/water/main.cpp | #include <stdint.h>
#include <iostream>
#include "../../anim_water_ripple.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
#define WATER_W 120
#define WATER_H 120
int8_t wbuf1[WAT... | 1,575 | C++ | .cpp | 51 | 27.470588 | 82 | 0.62649 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,902 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/osm/main.cpp | #include <stdint.h>
#include <stdio.h>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../osm_render.h"
// full screen buffer
#define BUF_W 240
#define BUF_H 240
// we buffer a quarter tile + 50% and upscale it by a factor of 2... | 2,321 | C++ | .cpp | 70 | 29.342857 | 109 | 0.619857 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,903 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/matrix/main.cpp | #include <stdint.h>
#include <stdio.h>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../anim_matrix.h"
#include "../../anim_water_ripple.h"
#include "../../gfx_2d_print.h"
#include "../../gfx_util.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
Graphics2DPrint gfx2d... | 903 | C++ | .cpp | 33 | 24.727273 | 90 | 0.683353 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,904 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/doom-fire-old/main.cpp |
#include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../anim_doom_fire_old.h"
#include "../../gfx_util.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
uint8_t** firePixels = new uint8_t*[BUF_H];
Graphics2D gfx2d(BUF_W, BUF_H,120);
c... | 864 | C++ | .cpp | 32 | 24.1875 | 79 | 0.646061 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,905 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/rotation/main.cpp | #include <stdint.h>
#include <stdio.h>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../anim_water_ripple.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
#define WATER_W 120
#define WATER_H 120
Graphics2D gfx2d(... | 3,385 | C++ | .cpp | 89 | 34.280899 | 90 | 0.629279 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,906 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/shapes/main.cpp | #include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../math_angles.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
uint16_t screenBuffer[BUF_W * BUF_H];
Graphics2D gfx2d(BUF_W, B... | 4,458 | C++ | .cpp | 87 | 46.91954 | 95 | 0.613244 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,907 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/watch-simple/main.cpp | #include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../math_angles.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
uint16_t screenBuffer[BUF_W * BUF_H];
Graphics2D gfx2d(BUF_W, B... | 1,319 | C++ | .cpp | 38 | 31.578947 | 120 | 0.612903 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,908 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/doom-fire/main.cpp |
#include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../anim_doom_fire.h"
#include "../../gfx_util.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
Graphics2DPrint gfx2d(BUF_W, BUF_H, 120);
AnimDoomFire d;
class FireWindow : public S... | 706 | C++ | .cpp | 29 | 21.689655 | 79 | 0.666667 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,909 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/mix-face/main.cpp | #include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../gfx_2d.h"
#include "../../gfx_2d_print.h"
#include "../../gfx_util.h"
#include "../../fonts/Picopixel.h"
#include "../../fonts/FreeSans11pt8b.h"
#include "../../math_angles.h"
using namesp... | 5,016 | C++ | .cpp | 143 | 28.881119 | 156 | 0.577424 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,910 | main.cpp | Open-Smartwatch_lib-open-smartwatch/examples/fireworks/main.cpp | #include <stdint.h>
#include <iostream>
#include "../../FakeArduino.h"
#include "../../FakeArduinoWindowSDL.h"
#include "../../anim_firework.h"
#include "../../gfx_2d.h"
#include "../../gfx_util.h"
#include "../../math_angles.h"
using namespace std;
#define BUF_W 240
#define BUF_H 240
#define NUM_FIREWORKS 10
Graph... | 1,473 | C++ | .cpp | 48 | 26.8125 | 86 | 0.630835 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,912 | gfx_2d.h | Open-Smartwatch_lib-open-smartwatch/gfx_2d.h | #ifndef P3DT_GFX_2D_H
#define P3DT_GFX_2D_H
#ifdef OSW_EMULATOR
#include <iostream>
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_util.h"
#include "math_angles.h"
enum CIRC_OPT { DRAW_UPPER_RIGHT, DRAW_UPPER_LEFT, DRAW_LOWER_RIGHT, DRAW_LOWER_LEFT, DRAW_ALL };
class DrawPixel {
public:
... | 31,411 | C++ | .h | 1,012 | 25 | 117 | 0.558007 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,913 | math_osm.h | Open-Smartwatch_lib-open-smartwatch/math_osm.h | #ifndef OSM_H
#define OSM_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
// source: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#C.2FC.2B.2B
// we return float here, because we need the fraction
float lon2tilex(float lon, uint8_t z);
float lat2tiley(float lat, uint8_t ... | 542 | C++ | .h | 17 | 30.352941 | 79 | 0.77907 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,914 | FakeArduinoWindowSDL.h | Open-Smartwatch_lib-open-smartwatch/FakeArduinoWindowSDL.h | #ifndef OSW_EMULATOR_WINDOW_SDL_H
#define OSW_EMULATOR_WINDOW_SDL_H
#include <SDL.h>
#include <SDL_image.h>
#include <fstream>
#include "gfx_2d.h"
#include "gfx_util.h"
// Source: https://stackoverflow.com/questions/53033971/how-to-get-the-color-of-a-specific-pixel-from-sdl-surface
Uint32 getpixel(SDL_Surface* surfa... | 4,422 | C++ | .h | 128 | 29.820313 | 113 | 0.641704 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,915 | esp32_cpu.h | Open-Smartwatch_lib-open-smartwatch/esp32_cpu.h | #ifndef P3DT_ESP32_CPU_H
#define P3DT_ESP32_CPU_H
void setMinCPUSpeed() {
// https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-cpu.h
// ESP32 PICO D4 -> https://docs.espressif.com/projects/esp-idf/en/latest/hw-reference/get-started-pico-kit.html
// -> 40MHz Oscillator
// // 240, 160... | 392 | C++ | .h | 10 | 37.1 | 114 | 0.721785 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,916 | anim_matrix.h | Open-Smartwatch_lib-open-smartwatch/anim_matrix.h | #ifndef ANIM_MATRIX_H
#define ANIM_MATRIX_H
#include "gfx_2d_print.h"
#define MATRIX_STRING_MAX_LENGTH 16
class MatrixString {
public:
MatrixString(Graphics2DPrint* gfx, const char* matrixChars = "GATC", uint8_t numMatrixChars = 4,
uint8_t maxScale = 3) {
this->gfx = gfx;
this->matrixChars =... | 2,601 | C++ | .h | 87 | 25.252874 | 114 | 0.634654 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,917 | osm_render.h | Open-Smartwatch_lib-open-smartwatch/osm_render.h | #ifndef OSM_RENDER_H
#define OSM_RENDER_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_2d.h"
#include "math_osm.h"
#define TILE_W 256
#define TILE_H 256
#define TILE_CHUNK_H 16
typedef void (*loadTile)(Graphics2D *target, int8_t z, float tilex, float tiley, int32_t of... | 1,457 | C++ | .h | 46 | 28.369565 | 115 | 0.692143 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,918 | math_angles.h | Open-Smartwatch_lib-open-smartwatch/math_angles.h | #ifndef GFX_ANGLES_H
#define GFX_ANGLES_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
/**
* @brief Find the x-axis point which is at a distance r and an angle d of a point C(cx,cy).
*
* 0 degrees ist 12 o'clock
*
* This function can be used to find coordonnates of the extremi... | 1,676 | C++ | .h | 51 | 30.901961 | 105 | 0.705518 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,919 | anim_water_ripple.h | Open-Smartwatch_lib-open-smartwatch/anim_water_ripple.h | #ifndef WATER_RIPPLE_H
#define WATER_RIPPLE_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_2d.h"
#include "gfx_util.h"
// implementation according to:
// https://web.archive.org/web/20160418004149/http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
void calcWa... | 575 | C++ | .h | 15 | 36.066667 | 105 | 0.747748 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,920 | anim_firework.h | Open-Smartwatch_lib-open-smartwatch/anim_firework.h | #ifndef ANIM_FIREWORK_H
#define ANIM_FIREWORK_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_2d.h"
#include "gfx_util.h"
class Particle {
public:
Particle() {}
float locationX;
float locationY;
float speedX;
float speedY;
void tick(long ms, float friction,... | 864 | C++ | .h | 38 | 20.026316 | 63 | 0.72561 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,922 | anim_doom_fire_old.h | Open-Smartwatch_lib-open-smartwatch/anim_doom_fire_old.h | #pragma once
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
#include "gfx_2d.h"
#include "gfx_util.h"
// see: https://p3dt.net/post/2019/01/05/playing-with-doom.html
void setupFire(uint8_t **firePixels, uint16_t w, uint16_t h);
void calcFire(uint8_t **firePixels, uint16_t w, uint16_t... | 472 | C++ | .h | 13 | 33.846154 | 73 | 0.730684 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,924 | anim_doom_fire.h | Open-Smartwatch_lib-open-smartwatch/anim_doom_fire.h | #pragma once
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
//#include "gfx_2d.h"
#include "gfx_2d_print.h"
#include "gfx_util.h"
// see: https://p3dt.net/post/2019/01/05/playing-with-doom.html
class AnimDoomFire{
public:
AnimDoomFire() {
for (int i = 0; i < 240; i++) {
fir... | 3,413 | C++ | .h | 91 | 31.802198 | 89 | 0.561255 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,925 | FakeArduino.h | Open-Smartwatch_lib-open-smartwatch/FakeArduino.h | #ifndef OSW_EMULATOR_H
#define OSW_EMULATOR_H
#include <stdint.h>
#include <math.h>
#define PI 3.1415926535897932384626433832795
#define HALF_PI 1.5707963267948966192313216916398
#define TWO_PI 6.283185307179586476925286766559
#define DEG_TO_RAD 0.017453292519943295769236907684886
#define RAD_TO_DEG 57.29577951308232... | 645 | C++ | .h | 18 | 34.722222 | 79 | 0.8192 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,927 | gfx_util.h | Open-Smartwatch_lib-open-smartwatch/gfx_util.h | #ifndef P3DT_GFX_UTIL_H
#define P3DT_GFX_UTIL_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
uint16_t rgb565(uint8_t red, uint8_t green, uint8_t blue);
uint32_t rgb888(uint8_t red, uint8_t green, uint8_t blue);
uint32_t rgb565to888(uint16_t rgb565);
uint16_t rgb888to565(uint32_t rg... | 1,037 | C++ | .h | 25 | 39 | 103 | 0.751745 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,928 | gfx_2d_print.h | Open-Smartwatch_lib-open-smartwatch/gfx_2d_print.h | #ifndef P3DT_GFX_2D_PRINT_H
#define P3DT_GFX_2D_PRINT_H
// This is (still) a nasty copy paste job of Arduino_GFX.h, sorry, but it works.
#ifdef OSW_EMULATOR
#include <iostream>
#include "FakeArduino.h"
#include "FakePrint.h"
#include "Fakegfxfont.h"
#include "Fakeglcdfont.h"
#include "Fakepgmspace.h"
#else
#include ... | 17,995 | C++ | .h | 488 | 30.956967 | 120 | 0.583591 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,929 | Fakepgmspace.h | Open-Smartwatch_lib-open-smartwatch/Fakepgmspace.h | #ifdef OSW_EMULATOR
// this is copy and paste form the ESP IDF
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#define pgm_read_word(addr) ({ \
typeof(addr) _addr = (addr); \
*(const unsigned short *)(_addr); \
})
#endif
| 243 | C++ | .h | 8 | 28.5 | 62 | 0.668103 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,930 | time_util.h | Open-Smartwatch_lib-open-smartwatch/time_util.h | #ifndef TIME_UTIL_H
#define TIME_UTIL_H
#ifdef OSW_EMULATOR
#include "FakeArduino.h"
#else
#include <Arduino.h>
#endif
long seconds(long seconds);
long minutes(long seconds);
long hours24(long seconds);
#endif | 212 | C++ | .h | 11 | 18.090909 | 27 | 0.80402 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,932 | FreeSans11pt8b.h | Open-Smartwatch_lib-open-smartwatch/fonts/FreeSans11pt8b.h | const uint8_t FreeSans11pt8bBitmaps[] PROGMEM = {
0xFF, 0xFF, 0xFF, 0x0F, 0xDE, 0xF7, 0xB9, 0x00, 0x0C, 0x60, 0xC4, 0x0C,
0x47, 0xFF, 0x7F, 0xF0, 0x8C, 0x18, 0x81, 0x88, 0x19, 0x8F, 0xFE, 0xFF,
0xE3, 0x10, 0x31, 0x03, 0x30, 0x23, 0x00, 0x08, 0x07, 0xE1, 0xFF, 0x74,
0xEC, 0x87, 0x90, 0xF2, 0x07, 0x40, 0x7E, 0x03... | 37,408 | C++ | .h | 513 | 69.929825 | 99 | 0.573214 | Open-Smartwatch/lib-open-smartwatch | 39 | 14 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.