Skip to content

Instantly share code, notes, and snippets.

var serial = "XX9999"; //<-- Put serial number to pair here
var device = "";
//now get advertised packets
var dt;
function scanForDevices() {
NRF.findDevices(function(devs) {
devs.forEach(function(dev) {
g.clear();
@ihewitt
ihewitt / F18.patch
Created August 16, 2021 16:01
Initial bangle hack/patch for non gps F18
diff --git a/boards/BANGLEJS.py b/boards/BANGLEJS.py
index 4f392c41..d0efe436 100644
--- a/boards/BANGLEJS.py
+++ b/boards/BANGLEJS.py
@@ -29,8 +29,8 @@ info = {
'BLUETOOTH',
'TERMINAL',
'GRAPHICS',
- 'LCD_ST7789_8BIT',
- 'TENSORFLOW'
@ihewitt
ihewitt / dump.c
Created October 7, 2020 16:34
A9G HST dump
//
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
static int serial_port;
@ihewitt
ihewitt / demo.c
Created October 6, 2020 10:47
Dump A9G Flash to SD
#include "stdbool.h"
#include "stdint.h"
#include "api_debug.h"
#include "api_event.h"
#include "api_hal_pm.h"
#include "api_os.h"
#include "api_fs.h"
#include "api_hal_flash.h"
@ihewitt
ihewitt / gist:8a3e15e60e8c7f20cf22
Last active February 24, 2016 21:17
accelerator menu text
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QListWidget *lw = new QListWidget;
this->setCentralWidget(lw);
QMenuBar *menubar = new QMenuBar;
diff --git a/src/AllPlot.cpp b/src/AllPlot.cpp
index 6844cd0..92dd9ef 100644
--- a/src/AllPlot.cpp
+++ b/src/AllPlot.cpp
@@ -7012,31 +7012,6 @@ AllPlot::intervalHover(IntervalItem *chosen)
replot();
}
-void
-AllPlot::nextStep( int& step )
index 43fa65f..aac02ca 100644
--- a/src/VideoWindow.cpp
+++ b/src/VideoWindow.cpp
@@ -141,8 +141,11 @@ VideoWindow::VideoWindow(Context *context) :
mp = new QMediaPlayer(this);
mp->setVideoOutput(wd);
-
layout->addWidget(wd);
+
diff --git a/src/ANT.cpp b/src/ANT.cpp
index e23f0bf..39316d2 100644
--- a/src/ANT.cpp
+++ b/src/ANT.cpp
@@ -69,6 +69,8 @@ const ant_sensor_type_t ANT::ant_sensor_types[] = {
ANT_TACX_VORTEX_FREQUENCY, DEFAULT_NETWORK_NUMBER, "Tacx Vortex Smart", 'v', ":images/IconPower.png" },
{ true, ANTChannel::CHANNEL_TYPE_FITNESS_EQUIPMENT, ANT_SPORT_FITNESS_EQUIPMENT_PERIOD, ANT_SPORT_FITNESS_EQUIPMENT_TYPE,
ANT_FITNESS_EQUIPMENT_FREQUENCY, ANT_SPORT_NETWORK_NUMBER, "Fitness Equipment Control (FE-C)", 'f', ":images/IconPower.png" },
+ { true, ANTChannel::CHANNEL_TYPE_QUBO_DIGITAL, ANT_SPORT_QUBO_PERIOD, ANT_SPORT_SandC_TYPE,
+ ANT_SPORT_FREQUENCY, ANT_SPORT_NETWORK_NUMBER, "Elite QUBO Digital", 'q', ":images/IconPower.png" },