## 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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{ |