Skip to content

Instantly share code, notes, and snippets.

Jacob Kittley-Davies jkittley

Block or report user

Report or block jkittley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jkittley
jkittley / rfm69_async_rxtx.py
Last active Apr 16, 2018
RFM69 example code for receiving and sending data - see http://www.kittley.com/2018/04/06/blog-async-rfm69/ for more information
View rfm69_async_rxtx.py
import asyncio
from aiohttp import ClientSession
from RFM69 import Radio, FREQ_433MHZ
async def call_API(url, packet):
async with ClientSession() as session:
print("Sending packet to server")
async with session.post(url, json=packet.to_dict('%c')) as response:
response = await response.read()
print("Server responded", response)
@jkittley
jkittley / node.ino
Last active Dec 2, 2018
Arduino sketch for RFM69 radio - see http://www.kittley.com/2018/04/06/blog-async-rfm69/ for more information
View node.ino
// **********************************************************************************
//
// Test RFM69 Radio.
//
// **********************************************************************************
#include <RFM69.h> // https://www.github.com/lowpowerlab/rfm69
#include <RFM69_ATC.h> // https://www.github.com/lowpowerlab/rfm69
#include <SPI.h> // Included with Arduino IDE
@jkittley
jkittley / fabfile.py
Last active Apr 16, 2018
SDStore Python 3 Raspberry Pi Automation Fabric Script - see http://www.kittley.com/2018/04/04/blog-sdstore-and-pi/ for more information.
View fabfile.py
#encoding:UTF-8
# =============================================================================
# This fabfile will turn a Raspberry Pi into a webserver,
# See http://www.kittley.com/2018/04/04/blog-sdstore-and-pi/ for more details.
# =============================================================================
import socket
from os import sep, remove
from fabric.api import cd, lcd, task
You can’t perform that action at this time.