Skip to content

Instantly share code, notes, and snippets.

#include "CalliopeDemos.h"
#include "MicroBit.h"
#include "CalliopeRGB.h"
#include "CalliopeSoundMotor.h"
#ifdef CALLIOPE_TEST_ALL
MicroBit uBit;
MicroBitImage full(
#include <fsl_port.h>
#include <fsl_gpio.h>
#include <fsl_debug_console.h>
#include <fsl_sai.h>
#define RX_SAI_IRQ I2S0_Rx_IRQn
#define SAI_RxIRQHandler I2S0_Rx_IRQHandler
bool isFinished = false;
uint32_t temp[2000];
@nrjn
nrjn / i2c_bmp180.c
Created August 6, 2016 17:02
I2C device driver for BMP180 environmental sensor
#include <stdio.h>
#include <stdint.h>
#include "string.h"
#include "i2c_bmp180.h"
int i2c_read(uint8_t address, uint8_t reg, uint8_t *data, size_t size)
{
;
}