repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
myrjola/margames | src/martet/gui.c | <gh_stars>1-10
#include "tetgfx.h"
void pause_martet(SDL_Surface* screen, SDL_Surface* board) {
clear_surface(board, NULL);
draw_surface(0, 0, board, screen, NULL);
draw_text(74, 315, screen, "PAUSED, 'p' to continue", 255, 255, 255);
SDL_Flip(screen);
// Stub method for process_key_events.
int... |
myrjola/margames | src/gamefunc/misc/miscutils.c | <filename>src/gamefunc/misc/miscutils.c<gh_stars>1-10
#include "miscutils.h"
void reverse(char s[])
{
int i, j;
char c;
for (i = 0, j = strlen(s)-1; i<j; i++, j--) {
c = s[i];
s[i] = s[j];
s[j] = c;
}
}
void itos(int n, char* s)
{
int i;
int sign;
if ((sign = n) < ... |
myrjola/margames | src/martet/tetbase.h | <filename>src/martet/tetbase.h
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include "../gamefunc/misc/score.h"
#ifndef TETBASE_H_
#define TETBASE_H_
enum {BLOCK_SIZE = 32,
BOARD_HEIGHT = 20,
BOARD_WIDTH = 10,
UP = 'u',
DOWN = 'd',
... |
myrjola/margames | src/gamefunc/misc/miscutils.h | #include <string.h>
#include "SDL/SDL.h"
#ifndef MISCUTILS_H_
#define MISCUTILS_H_
// reverse: Reverse string s.
void reverse(char[]);
// itoa: Convert n to characters in s.
void itos(int n, char* s);
#endif |
myrjola/margames | src/gamefunc/misc/score.h | <filename>src/gamefunc/misc/score.h
// A simple hiscore system.
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <SDL/SDL.h>
#include "miscutils.h"
#ifndef SCORE_H_
#define SCORE_H_
enum {SCORE_TABLE_LENGTH = 10};
struct Score{
char name[32];
int points;
};
// get_h... |
myrjola/margames | src/gamefunc/misc/timer.c | <gh_stars>1-10
#include "timer.h"
struct Timer* create_timer(void){
struct Timer* timer = malloc(sizeof(struct Timer));
timer->running = 0;
timer->time_from_start = 0;
timer->time_passed_from_stop = 0;
timer->time_stopped = 0;
timer->alarm_interval = 0;
timer->alarms = 0;
return timer;... |
myrjola/margames | src/gamefunc/misc/timer.h | // timer functions needed in various games
#include <stdlib.h>
#include "SDL/SDL.h"
#ifndef TIMER_H_
#define TIMER_H_
struct Timer{
unsigned int running;
// time passed from program start to timer start in milliseconds
unsigned int time_from_start;
unsigned int time_passed_from_stop;
unsigned int ... |
myrjola/margames | src/martet/main.c | #include <time.h>
#include "../gamefunc/misc/timer.h"
#include "tetbase.h"
#include "tetgfx.h"
const int GAME_SPEED = 600;
int run_martet(SDL_Surface*, SDL_Surface*);
int main(int argc, char** argv){
int i;
int j;
int* score = (int*) malloc(sizeof(int));
if (SDL_Init(SDL_INIT_EVERYTHING) == -1){
... |
myrjola/margames | src/martet/tetromino.c | <filename>src/martet/tetromino.c<gh_stars>1-10
#include "tetbase.h"
// Tetrominoes as coordinates
const int TETROMINO_I[4][2] = {{0, 0},
{-1, 0},
{1, 0},
{2, 0}};
const int TETROMINO_J[4][2] = {{0, 0},
... |
myrjola/margames | src/gamefunc/input/keyeventinput.h | <reponame>myrjola/margames<filename>src/gamefunc/input/keyeventinput.h
#include "SDL/SDL.h"
#ifndef KEYEVENTINPUT_H
#define KEYEVENTINPUT_H
enum {KEYEVENT_NOTHING, KEYEVENT_EXIT,
KEYEVENT_PAUSE, KEYEVENT_MENU,
KEYEVENT_EOL, KEYEVENT_ANY_OTHER_KEY};
// process_key_events: Input using SDL_KEY_UP
// and SDL... |
myrjola/margames | src/martet/movement.c | #include "tetbase.h"
int tetaction(char input, void* tetromino){
switch (input){
case (UP): tetrotate(tetromino); break;
case (DOWN): tetfall(tetromino); break;
case (LEFT):
case (RIGHT): tetmove(input, tetromino); break;
default: break;
}
return 0;
}
int tetmove(ch... |
myrjola/margames | src/gamefunc/gfx/imagefunc.c | <gh_stars>1-10
#include "imagefunc.h"
SDL_Surface* create_surface(int w, int h){
SDL_Surface* surface_unoptimized = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h,
32, 0, 0, 0, 0);
SDL_Surface* surface = SDL_DisplayFormat(surface_unoptimized);
SDL_FreeS... |
myrjola/margames | src/gamefunc/gfx/imagefunc.h | #include <stdlib.h>
#include <stdbool.h>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#ifndef IMAGEFUNC_H
#define IMAGEFUNC_H
// create_surface - Returns black surface optimized to display format.
SDL_Surface* create_surface(int w, int h);
// load_image - Loads everything SDL_image knows... |
myrjola/margames | src/martet/tetgfx.c | #include "tetgfx.h"
SDL_Surface* get_spritesheet(bool transparent){
static SDL_Surface* spritesheet = NULL;
static SDL_Surface* spritesheet_transparent = NULL;
if ( spritesheet ) {
if (transparent)
return spritesheet_transparent;
else if (!transparent)
return sprite... |
npr/LUNTabBarController | LUNTabBarController/LUNTabBarAnimationController/LUNTabBarAnimationController.h | //
// Created by <NAME> on 2/11/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface LUNTabBarAnimationController : UIPercentDrivenInteractiveTransition <UIViewControllerAnimatedTransitioning, UIViewControllerInteractiveTransitioning>
/**
@b... |
npr/LUNTabBarController | LUNTabBarController/LUNTabBarFloatingControllerAnimatedTransitioning/LUNTabBarFloatingControllerAnimatedTransitioning.h | //
// Created by <NAME> on 2/24/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol LUNTabBarFloatingControllerAnimatedTransitioning <NSObject>
@optional
/**
@brief Notifies when animated transition starts
@param isPresenting Specifies whether view controller i... |
npr/LUNTabBarController | LUNTabBarControllerDemo/LUNTabBarControllerDemo/Demo/DemoFloatingViewController/DemoFloatingViewController.h | //
// Created by <NAME> on 2/15/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LUNTabBarFloatingControllerAnimatedTransitioning.h"
@interface DemoFloatingViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, LUNTab... |
npr/LUNTabBarController | LUNTabBarControllerDemo/LUNTabBarControllerDemo/Demo/DemoTabBarController/DemoTabBarController.h | <reponame>npr/LUNTabBarController
//
// Created by <NAME> on 2/24/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LUNTabBarController.h"
@interface DemoTabBarController : LUNTabBarController
@end |
npr/LUNTabBarController | LUNTabBarController/LUNTabBarController/LUNTabBarController.h | //
// Created by <NAME> on 2/11/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface LUNTabBarController : UITabBarController <UITabBarControllerDelegate>
/**
@brief Specifies which tab should use animated transition
*/
@property (nonatomic... |
npr/LUNTabBarController | LUNTabBarControllerDemo/LUNTabBarControllerDemo/Demo/DemoFadeAnimationController/DemoFadeAnimationController.h | //
// Created by <NAME> on 2/25/16.
// Copyright (c) 2016 Lunapps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface DemoFadeAnimationController : NSObject <UIViewControllerAnimatedTransitioning>
@property (nonatomic) CGFloat transitionDuration;
@end |
ystk/debian-sg3-utils | src/sg_senddiag.c | #include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "sg_lib.h"
#include "sg_cmds_basic.h"
#include "sg_cmds_extra.h"
/* A utility program originally written for the Linux OS SC... |
ystk/debian-sg3-utils | src/sg_get_config.c | <gh_stars>0
/*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <getopt... |
ystk/debian-sg3-utils | src/sg_luns.c | <filename>src/sg_luns.c
/*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#de... |
ystk/debian-sg3-utils | include/sg_cmds_mmc.h | <gh_stars>0
#ifndef SG_CMDS_MMC_H
#define SG_CMDS_MMC_H
/*
* Copyright (c) 2008-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Invokes a SCSI GET CONFIGURATION command (MM... |
ystk/debian-sg3-utils | src/sg_ses.c | <gh_stars>0
/*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#ifdef HAVE_CO... |
ystk/debian-sg3-utils | src/sg_write_same.c | /*
* Copyright (c) 2009-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include... |
ystk/debian-sg3-utils | lib/sg_cmds_mmc.c | <filename>lib/sg_cmds_mmc.c
/*
* Copyright (c) 2008-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define __STDC_FORMAT_MACROS 1
#includ... |
ystk/debian-sg3-utils | src/sg_readcap.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <getopt.h>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "sg_lib.h"
#include "sg_cmds_basic.h"
/* This code is does a SCSI READ CAPACIT... |
ystk/debian-sg3-utils | src/sg_write_buffer.c | <reponame>ystk/debian-sg3-utils<filename>src/sg_write_buffer.c
/*
* Copyright (c) 2006-2010 <NAME> and <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <std... |
ystk/debian-sg3-utils | src/sg_wr_mode.c | <filename>src/sg_wr_mode.c<gh_stars>0
/*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include ... |
ystk/debian-sg3-utils | src/sg_verify.c | <reponame>ystk/debian-sg3-utils
/*
* Copyright (c) 2004-2008 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getop... |
ystk/debian-sg3-utils | include/sg_cmds_extra.h | <gh_stars>0
#ifndef SG_CMDS_EXTRA_H
#define SG_CMDS_EXTRA_H
/*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#ifdef __cplusplus
extern "C" {
#endif
/* Invokes a ATA PASS-THROUGH (12 or 16) SC... |
ystk/debian-sg3-utils | src/sg_logs.c | <reponame>ystk/debian-sg3-utils<gh_stars>0
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "sg_lib.h"
#include "sg_cmds_... |
ystk/debian-sg3-utils | utils/sg_lib.h | #include "../include/sg_lib.h"
|
ystk/debian-sg3-utils | src/sg_inq.c | <filename>src/sg_inq.c
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef SG_LIB_LINUX
#include <errno.h>
#include <sys/ioctl... |
ystk/debian-sg3-utils | src/sg_test_rwbuf.c | /* sg_test_rwbuf.c */
/*
* Program to test the SCSI host adapter by issueing
* write and read operations on a device's buffer
* and calculating checksums.
* NOTE: If you can not reserve the buffer of the device
* for this purpose (SG_GET_RESERVED_SIZE), you risk
* serious data corruption, if the device is accesse... |
ystk/debian-sg3-utils | lib/sg_cmds_extra.c | <gh_stars>0
/*
* Copyright (c) 1999-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
... |
ystk/debian-sg3-utils | utils/sg_chk_asc.c | <reponame>ystk/debian-sg3-utils
/*
* Copyright (c) 2006-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getop... |
ystk/debian-sg3-utils | examples/sg_sense_test.c | #include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "sg_lib.h"
/* This is a simple program that tests the sense data descriptor format
printout function in sg_lib.c
* Copyr... |
ystk/debian-sg3-utils | src/sg_vpd.c | /*
* Copyright (c) 2006-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#define ... |
ystk/debian-sg3-utils | examples/sg_iovec_tst.c | #include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "sg_lib.h"
#include "sg_io_linux.h"
/* Test code for D. Gilbert's extensions to the Linux OS SCSI generic... |
ystk/debian-sg3-utils | src/sg_sync.c | /*
* Copyright (c) 2004-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "sg_lib.h"
#inclu... |
ystk/debian-sg3-utils | src/sg_raw.c | /*
* A utility program originally written for the Linux OS SCSI subsystem.
*
* Copyright (C) 2000-2009 <NAME> <<EMAIL>>
*
* 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 2,... |
ystk/debian-sg3-utils | lib/sg_cmds_basic.c | /*
* Copyright (c) 1999-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
/*
* CONTENTS
* Some SCSI commands are executed in many contexts and hence began
* to appear in several sg3_utils utilities. This files ... |
ystk/debian-sg3-utils | src/sg_reset.c | <gh_stars>0
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "sg_io_linux.h"
/* A utility program originally written for the ... |
ystk/debian-sg3-utils | lib/sg_pt_common.c | <reponame>ystk/debian-sg3-utils<gh_stars>0
/*
* Copyright (c) 2009-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <stdlib.h>
#include "sg_pt.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
static cons... |
ystk/debian-sg3-utils | lib/sg_lib.c | <gh_stars>0
/*
* Copyright (c) 1999-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
/* NOTICE:
* On 5th October 2004 (v1.00) this file name was changed from sg_err.c
* to sg_lib.c and the previous GPL was chan... |
ystk/debian-sg3-utils | src/sg_ident.c | /*
* Copyright (c) 2005-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#ifdef HAVE_CONFIG_H
#incl... |
ystk/debian-sg3-utils | src/sg_vpd_vendor.c | /*
* Copyright (c) 2006-2010 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef SG_LIB_MINGW
#include <time.h>
#endif
... |
MaximilianBlase/EA-DogLibrary | sys_src/iodef.h | <gh_stars>1-10
/*! @file iodef.h
*
* @author <NAME>
* @date 2017-01-17
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and binary forms, ... |
MaximilianBlase/EA-DogLibrary | lcd_src/dogm128.h | /*! @file dogm128.h
*
* @author <NAME>
* @date 2016-02-15
*
*
* #####################################################################################################################
* @Copyright (c) 2016, J.Wiese, <jw-lighting at ewetel dot net>
* All rights reserved.
*
* Redistribution and use in source and ... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingNumbers.h | /*! @file drawingNumbers.h
*
* @author <NAME>
* @date 2016-06-07
*
* @date 2016-06-07
* @note This file implements abstract font functions based on dogm128-graphic.h, like line, dot eg. This fonts
* start at a given coordinate point defined in drawingDotsAndLines.h as a complex struct. The fonts will be printed
... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_back.c | <reponame>MaximilianBlase/EA-DogLibrary
/*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_back_data[] PROGMEM = {
0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_diskette.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_diskette_data[] PROGMEM = {
0xFF, 0x01, 0x01, 0x01, 0x1F, 0x11, 0x15, 0x15, 0x11, 0x11, 0x11, 0x1F, 0x02, 0x04, 0x08, 0xF0,
0xFF, 0... |
MaximilianBlase/EA-DogLibrary | logging_src/logging.c | <gh_stars>1-10
/*! @file logging.c
*
* @author <NAME>
* @date 2016-07-06
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and binary forms... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_ok.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_ok_data[] PROGMEM = {
0x00, 0x80, 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xF0, 0xF8, 0x7C, 0x38, 0x10,
0x01, 0x03, 0... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingInclude.h | <gh_stars>1-10
/*! @file drawingInclude.h
*
* @author <NAME>
* @date 2016-02-24
* @copyright
* 2016 M.Blase
*
* @date 2016-02-24
* @note This file defines all global used extern sources, like:
* * images
* * logos
* * symbols
* * fonts
*/
#ifndef MCU_DRAWINGINCLUDE_H
#define MCU_DRAWINGINCLUDE_H
#in... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_disketteWrite.c | /*
* author: <NAME>
* date: 10.6.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_diskette_write_data[] PROGMEM = {
0x00, 0x7F, 0x01, 0x01, 0x01, 0x1F, 0x11, 0xD5, 0x95, 0x11, 0x11, 0x1F, 0x02, 0x04, 0x08, 0xF0,
0x07... |
MaximilianBlase/EA-DogLibrary | lcd_src/dogm128-graphic.c | /*! @file dogm128-graphic.c
*
* @author <NAME>
* @date 2016-02-09
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and binary forms, wit... |
MaximilianBlase/EA-DogLibrary | logging_src/ringbuf.c | <reponame>MaximilianBlase/EA-DogLibrary<filename>logging_src/ringbuf.c
/*! @file ringbuf.c
*
* @author <NAME>
* @date 2016-02-15
*
* #####################################################################################################################
* @Copyright (c) 2017, J.Wiese, <jw-lighting at ewetel dot net>... |
MaximilianBlase/EA-DogLibrary | logging_src/logging.h | <filename>logging_src/logging.h<gh_stars>1-10
/*! @file logging.h
*
* @author <NAME>
* @date 2016-07-06
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_reset.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_reset_data[] PROGMEM = {
0x80, 0x60, 0x1A, 0x06, 0x0E, 0x00, 0xF0, 0x90, 0x90, 0x62, 0x02, 0x04, 0x04, 0x18, 0x60, 0x80,
0x01, 0x06... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingText.h | <reponame>MaximilianBlase/EA-DogLibrary
/*! @file drawingText.h
*
* @author <NAME>
* @date 2016-02-20
*
* @date 2016-02-21
* @note This file implements abstract font functions based on dogm128-graphic.h, like line, dot eg. This fonts
* start at a given coordinate point defined in drawingDotsAndLines.h as a compl... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_abort.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_abort_data[] PROGMEM = {
0x00, 0x0C, 0x1E, 0x3E, 0x7C, 0xF8, 0xF0, 0xE0, 0xE0, 0xF0, 0xF8, 0x7C, 0x3E, 0x1E, 0x0C, 0x00,
0x00, 0x30... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingPartlyFigures.c | <reponame>MaximilianBlase/EA-DogLibrary<gh_stars>1-10
/*! @file drawingPartlyFigures.c
*
* @author <NAME>
* @date 2016-02-29
*
* @date 2016-02-29
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* ... |
MaximilianBlase/EA-DogLibrary | lcd_src/dogm128-graphic.h | <gh_stars>1-10
/*! @file dogm128-graphic.h
*
* @author <NAME>
* @date 2016-02-09
*
* @date 2016-02-24
* @note This file contains the graphic functions laying on the deepest layer. This file implements a ram copy of the
* actual screen, changes pixel on it and flashes them to the hardware display. So this functio... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingNumbers.c | /*! @file drawingNumbers.h
*
* @author <NAME>
* @date 2016-06-07
*
* @date 2016-06-07
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source a... |
MaximilianBlase/EA-DogLibrary | logging_src/ringbuf.h | /*! @file ringbuf.h
*
* @author <NAME>
* @date 2016-02-15
*
* #####################################################################################################################
* @Copyright (c) 2017, J.Wiese, <jw-lighting at ewetel dot net>
* All rights reserved.
*
* Redistribution and use in source and bin... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingPartlyFigures.h | /*! @file drawingPartlyFigures.h
*
* @author <NAME>
* @date 2016-02-29
*
* @date 2016-02-29
* @note This file implements abstract partly graphic functions based on dogm128-graphic.h, like circle, rectangle eg.
* This figures start at a given coordinate point defined in drawingDotsAndLines.h as a complex struct. ... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingUtilities.c | /*! @file drawingUtilities.h
*
* @author <NAME>
* @date 2016-06-07
*
* @date 2016-06-07
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_standby.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_standby_data[] PROGMEM = {
0x80,0x60,0x18,0x04,0x00,0x00,0x00,0x3F,0x3F,0x00,0x00,0x00,0x04,0x18,0x60,0x80,
0x01,0x06,0x18,0x20,0x2... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingUtilities.h | <filename>lcd_src/drawing/drawingUtilities.h
/*! @file drawingUtilities.h
*
* @author <NAME>
* @date 2016-06-07
*
* @date 2016-06-07
* @note This file implements font utility functions based on dogm128-graphic.h.
*
* Please look detailed on the coordinate system starting in X=0 and Y=0 and going positive in rig... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_menu.c | <filename>lcd_src/pics/symbol_menu.c
/*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_menu_data[] PROGMEM = {
0xF0,0x96,0x96,0xF0,0xB4,0xB4,0xB4,0xB4,0xB4,0xB4,0xB4,0xB4,0xB4,0xF4,0xF4,0xF... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingFigures.c | /*! @file drawingFigures.c
*
* @author <NAME>
* @date 2016-02-19
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with... |
MaximilianBlase/EA-DogLibrary | logging_src/uart.h | <filename>logging_src/uart.h
/*! @file uart.h
*
* @author <NAME>
* @date 2016-07-06
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and b... |
MaximilianBlase/EA-DogLibrary | logging_src/stream.c | /*! @file stream.c
*
* @author <NAME>
* @date 2016-07-06
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or withou... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingFigures.h | /*! @file drawingFigures.h
*
* @author <NAME>
* @date 2016-02-19
*
* @date 2016-02-20
* @note This file implements abstract graphic functions based on dogm128-graphic.h, like circle, rectangle eg. This
* figures start at a given coordinate point defined in drawingDotsAndLines.h as a complex struct. The figures w... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_dummy.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_dummy_data[0] PROGMEM = {};
const imageData_t symbol_dummy = {symbol_dummy_data, 0, 0}; // Multiply by 8 |
MaximilianBlase/EA-DogLibrary | lcd_src/fonts/font_proportional_16_px.c | /*
created by <NAME>
//Mueschelsoft
//16px
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingText.h"
const uint8_t font_proportional_16px_data[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xF8, 0x0D, 0x0D, 0x3C, 0x3C, 0x00, 0x3C,
0x3C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0... |
MaximilianBlase/EA-DogLibrary | logging_src/uart.c | <filename>logging_src/uart.c
/*! @file uart.c
*
* @author <NAME>
* @date 2016-07-06
*
* #####################################################################################################################
* @Copyright (c) 2017, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribution and use in source and b... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_disketteRead.c | <filename>lcd_src/pics/symbol_disketteRead.c<gh_stars>1-10
/*
* author: <NAME>
* date: 10.6.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_diskette_read_data[] PROGMEM = {
0x00, 0x1F, 0x81, 0xC1, 0x01, 0x1F, 0x11, 0x15, 0x... |
MaximilianBlase/EA-DogLibrary | lcd_src/dogm128.c | /*! @file dogm128.c
*
* @author <NAME>
* @date 2016-02-15
*
* #####################################################################################################################
* @Copyright (c) 2016, J.Wiese, <jw-lighting at ewetel dot net>
* All rights reserved.
*
* Redistribution and use in source and bin... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingDotsAndLines.h | /*! @file drawingDotsAndLines.h
*
* @author <NAME>
* @date 2016-02-18
*
* @date 2016-02-19
* @note This file implements abstract graphic functions based on dogm128-graphic.h, like line, dot eg. This figures
* start at a given coordinate point defined in drawingDotsAndLines.h as a complex struct. The figures will... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingDotsAndLines.c | <reponame>MaximilianBlase/EA-DogLibrary
/*! @file drawingDotsAndLines.c
*
* @author <NAME>
* @date 2016-02-18
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*
* Redistribu... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_usbstick.c | /*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_usbstick_data[] PROGMEM = {
0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x10,0x08,0x08,0x18,0x3C,0xFE,0x1C,0x08,0x00,
0x00,0x0C,0x12,0x21,0x... |
MaximilianBlase/EA-DogLibrary | lcd_src/pics/symbol_home.c | <reponame>MaximilianBlase/EA-DogLibrary
/*
* author: <NAME>
* date: 20.02.16
*/
#include <avr/pgmspace.h>
#include "../drawing/drawingFigures.h"
// width = 16
// height = 2*8 = 2 << 3
const uint8_t symbol_home_data[] PROGMEM = {
0x00, 0xC0, 0x60, 0x70, 0x58, 0x4C, 0x46, 0x43, 0x43, 0x46, 0x4C, 0x58, 0x7... |
MaximilianBlase/EA-DogLibrary | lcd_src/fonts/font_proportional_8px.c | /*
created with FontEditor written by <NAME> (HaReddmann at t-online dot de)
using template file by <NAME> (jan at mueschelsoft.de)
File Name : font_proportional_8px.c
Date : 05.07.2009
Font size in bytes : 0x0458, 1112
Font width : 8
Font height :... |
MaximilianBlase/EA-DogLibrary | lcd_src/drawing/drawingText.c | <reponame>MaximilianBlase/EA-DogLibrary
/*! @file drawingText.h
*
* @author <NAME>
* @date 2016-02-20
*
* @date 2016-02-21
*
* #####################################################################################################################
* @Copyright (c) 2016, M.Blase, <EMAIL>
* All rights reserved.
*... |
jobbofhe/dlib | dlib/statistics/statistics_abstract.h | <filename>dlib/statistics/statistics_abstract.h
// Copyright (C) 2008 <NAME> (<EMAIL>), <NAME>
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_STATISTICs_ABSTRACT_
#ifdef DLIB_STATISTICs_ABSTRACT_
#include <limits>
#include <cmath>
#include "../matrix/matrix_abstract.h"
#include... |
manhpham90vn/MPDebug | Example/Pods/Target Support Files/MPDebug/MPDebug-umbrella.h | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "URLConnectionInjector.h"
#import "URLSessionInjector.h"
FOUNDATION_EXPORT double MPDebugVersionNumber;
FOUNDATION_E... |
manhpham90vn/MPDebug | MPDebug/URLConnectionInjector.h | <reponame>manhpham90vn/MPDebug
#import <Foundation/Foundation.h>
@class URLConnectionInjector;
@protocol URLConnectionInjectorDelegate
- (void)urlConnectionInjector:(URLConnectionInjector*)injector didReceiveResponse:(NSURLConnection*)urlConnection response:(NSURLResponse*)response;
- (void)urlConnectionInjector:(U... |
manhpham90vn/MPDebug | MPDebug/URLSessionInjector.h | <reponame>manhpham90vn/MPDebug<filename>MPDebug/URLSessionInjector.h
#import <Foundation/Foundation.h>
@class URLSessionInjector;
@protocol URLSessionInjectorDelegate
- (void)urlSessionInjector:(URLSessionInjector*)injector didStart:(NSURLSessionDataTask*)dataTask;
- (void)urlSessionInjector:(URLSessionInjector*)in... |
devegied/Arduino-X9C | src/X9C.h | /*
MIT License
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,... |
antoinelabard/blocklino | compilation/arduino/libraries/LSM303AGR/LSM303AGR_MAG_Sensor.h | <filename>compilation/arduino/libraries/LSM303AGR/LSM303AGR_MAG_Sensor.h
/**
******************************************************************************
* @file LSM303AGR_MAG_Sensor.h
* @author AST
* @version V1.0.0
* @date 7 September 2017
* @brief Abstract Class of an LSM303AGR magnetometer sensor.
... |
antoinelabard/blocklino | compilation/arduino/libraries/Adafruit_microbit/Adafruit_Microbit.h | #ifndef _ADAFRUIT_MICROBIT_H_
#define _ADAFRUIT_MICROBIT_H_
#include <Adafruit_GFX.h>
#include <Arduino.h>
#include <BLEPeripheral.h>
#include <Fonts/TomThumb.h>
#define LED_ON 1
#define LED_OFF 0
void IRQ_MATRIX_HANDLER(void);
/** Class to create Adafruit_GFX interface for 5x5 matrix of micro:bit */
class Adafruit... |
antoinelabard/blocklino | compilation/arduino/libraries/SparkFun_MAG3110/SparkFun_MAG3110.h | <reponame>antoinelabard/blocklino
/******************************************************************************
MAG3110.h
SFE_MAG3110 Library - MAG3110 Register Map
<NAME> contracting for SparkFun Electronics
Original Creation Date: 9/11/2016
This file declares the MAG3110 class and registers
Development environmen... |
antoinelabard/blocklino | compilation/arduino/libraries/extension/extension.h | #ifndef extension_h
#define extension_h
class Extension {
public:
Extension();
void ultrason(byte trig, byte echo);
float mesure_distance();
void bargraphe(byte dcki, byte di);
void bargraphe_allumer(float del);
void rvb(byte pinR, byte pinV, byte pinB);
void rvb_afficher_couleur(byte red, byte green, byte blue... |
antoinelabard/blocklino | compilation/arduino/libraries/matrX/matrX.h | <gh_stars>10-100
/*
* matrX.h is a fork of LedControl.h [ Copyright 2007 <NAME> ]
* A library for controling Leds with a MAX7219 /
*/
#ifndef matrX_h
#define matrX_h
#include <avr/pgmspace.h>
class Matrice_I2C {
public:
Matrice_I2C();
void initialisation();
void afficher(byte s[], byte mat);
void mett... |
antoinelabard/blocklino | compilation/arduino/libraries/MMA8653/MMA8653.h | /*
* MMA8653 library
* (C) 2012 Akafugu Corporation
*
* 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 2 of the License, or (at your option) any later
* version.
*
* This ... |
antoinelabard/blocklino | compilation/arduino/libraries/midi/midi.h | #ifndef midi_h
#define midi_h
class Midi {
public:
Midi();
void initialisation()
void send(byte command, byte MIDInote, byte MIDIvelocity);
void send(byte command, byte para);
};
#endif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.