Skip to content

Instantly share code, notes, and snippets.

View tbitson's full-sized avatar

tbitson tbitson

  • Tucson, Arizona
  • 06:45 (UTC -07:00)
View GitHub Profile
@Alkarex
Alkarex / package_rfduino166_index.json
Last active October 18, 2022 21:16
RFduino Board Manager
{
"packages":[
{
"name":"RFduino",
"maintainer":"RFduino",
"websiteURL":"https://github.com/RFduino/RFduino",
"email":"[email protected]",
"help":{
"online":"https://github.com/RFduino/RFduino"
},
#!/usr/bin/env python
import time # Library for delays
import RPi.GPIO as GPIO # Library for using the GPIO ports
from math import log1p,exp,log10 # Library for math functions. No need for it if you'll get the raw data from the sensors
from ubidots import ApiClient # Ubidots Library
import Adafruit_DHT # Library from Adafruit to simplify the use of DHT sensor.
# Set up the SPI interface pins. Through SPI we can connect to the ADC MCP3008
SPICLK = 18