Skip to content

Instantly share code, notes, and snippets.

View visusnet's full-sized avatar

Alexander Rose visusnet

  • codecentric AG
View GitHub Profile
@visusnet
visusnet / i2cScanner.c
Created January 26, 2021 10:01
seeed Azure Sphere MT3620 + Grove Shield I2C Scanner
#include "../../MT3620_Grove_Shield_Library/HAL/GroveI2C.h" // for SC18IM700_ReadReg
#include "../../MT3620_Grove_Shield_Library/HAL/GroveUART.h" // for GroveUART_Write
#include <stdlib.h> // for NULL
#include <time.h> // for nanosleep + timespec
#include <applibs/log.h> // for Log_Debug
// SC18IM700 data sheet:
// https://www.nxp.com/docs/en/data-sheet/SC18IM700.pdf
### Keybase proof
I hereby claim:
* I am visusnet on github.
* I am alexandermueller (https://keybase.io/alexandermueller) on keybase.
* I have a public key whose fingerprint is 209D 6811 6118 7B50 9875 C23D ECBF D232 A2BE E0F7
To claim this, I am signing this object:
@visusnet
visusnet / CompatibleEnversRevisionRepositoryFactoryBean
Created June 4, 2014 08:48
Spring Data Envers 0.1.0.RELEASE + Spring Data JPA 1.6.0.RELEASE incompatibility workaround
import org.hibernate.envers.DefaultRevisionEntity;
import org.springframework.core.GenericTypeResolver;
import org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean;
import org.springframework.data.envers.repository.support.EnversRevisionRepositoryImpl;
import org.springframework.data.envers.repository.support.ReflectionRevisionEntityInformation;
import org.springframework.data.jpa.repository.support.JpaEntityInformation;
import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
import org.springframework.data.jpa.repository.support.SimpleJpaRepository;
import org.springframework.data.repository.core.RepositoryMetadata;