Skip to content

Instantly share code, notes, and snippets.

View Zyr00's full-sized avatar
👽

João Cunha Zyr00

👽
View GitHub Profile
@Zyr00
Zyr00 / nfc_mangoh_slave_address.c
Last active July 8, 2022 07:31
Set mangoh yellow nfc slave address back to default of 0x66
#include <linux/i2c.h>
#include <linux/i2c-help.h>
#include <sys/ioctl.h>
#include "legato.h"
#define ADAPTER "/dev/i2c-8"
#define BAD_ADDRESS 0x00
#define GOOD_ADDRESS 0x55
@Zyr00
Zyr00 / makefile
Created February 4, 2022 15:04
A Simple Makefile
CC = gcc
#SDL_CFLAGS := $(shell pkg-config --cflags SDL2_image)
#SDL_LDFALGS := $(shell pkg-config --libs SDL2_image) \
$(shell pkg-config --libs SDL2_mixer) \
$(shell pkg-config --libs SDL2_ttf)
CFLAGS := -Wall -g #$(SDL_CFLAGS)
#LDFLAGS := $(SDL_LDFALGS)