Skip to content

Instantly share code, notes, and snippets.

View amirhaleem's full-sized avatar

Amir Haleem amirhaleem

  • San Francisco, CA
View GitHub Profile
@amirhaleem
amirhaleem / gist:529146e56d3a019666a626d1d647eee4
Created September 20, 2020 03:06
global_conf.US915.json
{
"SX130x_conf": {
"spidev_path": "/dev/spidev0.0",
"lorawan_public": true,
"clksrc": 0,
"antenna_gain": 0, /* antenna gain, in dBi */
"full_duplex": false,
"precision_timestamp": {
"enable": false,
"max_ts_metrics": 255,
#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>
#include <Adafruit_ZeroTimer.h>
#include <Adafruit_GPS.h>
// what's the name of the hardware serial port?
#define GPSSerial Serial1
#define CFG_sx1276_radio 1

Keybase proof

I hereby claim:

  • I am amirhaleem on github.
  • I am amirhaleem (https://keybase.io/amirhaleem) on keybase.
  • I have a public key ASDCSFYX4fOZ2Mk6wsGdkA1T0SOxWw6uE20-paqsR6TB7wo

To claim this, I am signing this object:

#include <SoftwareSerial.h>
#include <helium.h>
HeliumModem *modem;
void setup() {
modem = new HeliumModem();
}
void loop() {
<ng-include src="'helium/views/header.html'"></ng-include>
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1" style="margin-bottom: 70px;">
<div class="">
<div class="">
<h2>Helium Alpha</h2>
<p>Welcome to the Helium Alpha. You're one of the brave and privileged few who are helping us refine our hardware and software. We are in your debt. Thank you. </p>
#include <helium.h>
#include <SPI.h>
/* Test only for springer: */
#define SPEAKERPIN 5 // speaker connected to digital pin 9
#define SPEAKERPINOPP 6 // Invert the opposite pin to make the speaker louder
void beep (float noteFrequency, long noteDuration);
$http.get('http://127.0.0.1:8077/').success(function(res){
var buf = new ArrayBuffer(res.length / 2);
var bufView = new Uint8Array(buf);
for (var i=0, strLen=res.length; i<strLen; i++) {
var zIndex = i * 2;
var firstChar = res[zIndex];
var secondChar = res[zIndex + 1];
var combinedChar = firstChar + secondChar;
bufView[i] = parseInt(combinedChar, 16)
}
package main
import (
"github.com/ugorji/go/codec"
"net/http"
"log"
"io"
"math/rand"
)
package main
import (
"github.com/ugorji/go/codec"
"github.com/drone/routes"
"net/http"
"log"
"io"
"math/rand"
)
#
# Product-specific compile-time definitions.
#
# ARMv7-A Cortex-A8 architecture
TARGET_BOARD_PLATFORM := intrinsity
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_BOARD_PLATFORM := s5pc110