Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. https://github.com/theZiz/aha -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8"/>
<title>CSG</title>
</head>
<body style="color:white; background-color:black">
<pre>
@johnhowe
johnhowe / Screenshot_02.png
Last active January 27, 2023 02:11
Veriflite Portal Setup
Screenshot_02.png
/* FreeEMS - the open source engine management system
*
* Copyright 2008-2011 Fred Cooke
*
* This file is part of the FreeEMS project.
*
* FreeEMS software is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@johnhowe
johnhowe / PKGBUILD
Last active December 21, 2015 17:29 — forked from anonymous/PKGBUILD
# $Id$
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
_pkgbase=xerces-c
pkgname=lib32-${_pkgbase}
pkgver=3.1.1
pkgrel=4
@johnhowe
johnhowe / usbdm.sh
Last active December 17, 2015 14:39
#!/bin/bash
echo "Starting"
#====================================================
# Added properties directory
# Updated for Eclipse plugin
# Moved shared files to /usr/local/share/usbdm
#====================================================
#!/bin/bash
echo "Starting"
#====================================================
# Added properties directory
# Updated for Eclipse plugin
# Moved shared files to /usr/local/share/usbdm
#====================================================
#!/bin/bash
echo "Starting"
#====================================================
# Added properties directory
# Updated for Eclipse plugin
# Moved shared files to /usr/local/share/usbdm
#====================================================
#include <stdlib.h>
#include "ch.h"
#include "hal.h"
#include "mma845x.h"
#define ACCEL_RX_DEPTH 8
#define ACCEL_TX_DEPTH 8
#define ACCEL_CTRL_REG1 0x2A
static int mma8451_change_mode(struct i2c_client *client, int mode)
{
int result;
u8 tmp_data = 0;
mma_status.ctl_reg1 = 0;
result = i2c_smbus_write_byte_data(client, MMA8451_CTRL_REG1, 0);
if (result < 0)
goto out;
#define F_CPU 20000000
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdio.h>
#include <math.h>
/*
-----------------------
Self-Balancing Unicycle