Skip to content

Instantly share code, notes, and snippets.

View micooke's full-sized avatar
💭
I may be slow to respond.

Mark Cooke micooke

💭
I may be slow to respond.
  • Adelaide, Australia
View GitHub Profile
@micooke
micooke / ScreenTest.ino
Last active April 4, 2019 10:50
64x32 OLED tests
/*
ScreenTest.ino
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, [email protected]
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@micooke
micooke / BLE_GATT_Data.h
Created March 16, 2018 12:13
nRF51822 BLE Heartrate and Battery Service example
// https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.heart_rate_measurement.xml
struct HeartRateMeasurement_Flags{ // default = 0x00
uint8_t HeartRateValueFormat : 1; // 0 = uint8_t
uint8_t SensorContactStatus : 2;
uint8_t EnergyExpendedStatus : 1;
uint8_t RRInterval : 1;
uint8_t Reserved : 3;
};
struct HeartRateMeasurementValue_8b{
@micooke
micooke / Blackmagicprobe_compile.md
Last active January 12, 2024 00:32
blackmagic probe binaries for stlink v2 baite module
## Tested the blue pill on 10/09/2018
## 1. install pre-requisites
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt update
sudo apt install gcc-arm-embedded
# If it reports error message of conflict to gcc-arm-none-eabi, which is likely if upgrading from 4.x to 5+, please uninstall it first with:
# "sudo apt-get remove gcc-arm-none-eabi"

sudo apt -y install lib32z1 lib32ncurses5 lib32bz2-1.0