Skip to content

Instantly share code, notes, and snippets.

View zilberas's full-sized avatar

Živinas Sebeika zilberas

View GitHub Profile
@zilberas
zilberas / module.modulemap
Created December 23, 2019 00:33
Expose C header files to Swift
module HX710BDriver {
umbrella header "HX710BDriver.h"
link "HX710BDriver"
export *
}
@zilberas
zilberas / HX710BDriver.h
Created December 23, 2019 01:01
Header file for HX710BDriver
#include <stdio.h>
#include <stdlib.h>
struct Readings {
int32_t sensor1;
int32_t sensor2;
int32_t sensor3;
int32_t sensor4;
};