Skip to content

Instantly share code, notes, and snippets.

Arnaud Taffanel ataffanel

Block or report user

Report or block ataffanel

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
ataffanel /
Created Apr 29, 2019
raspberry pi fan control
import wiringpi
import time
from subprocess import PIPE, Popen
def init_fan():
wiringpi.pwmSetMode(0) # PWM_MODE_MS = 0
wiringpi.pinMode(18, 2) # pwm only works on GPIO port 18
ataffanel /
Created Aug 11, 2017
Simple script analyzing output of a loco positioning node in TWR tag mode, saves the distance measurement in a csv file
import serial
import re
nranges = 0
nsuccess = 0
current_range = 0
last_pass = False
csv = open("node_otput.csv", "w")
ataffanel /
Created Apr 4, 2016
Example reading RSSI measurement from Crazyflie 2.0
# cflib can be installed via 'pip install cflib'
import cflib.drivers.crazyradio as crazyradio
cradio = crazyradio.Crazyradio()
# Connection parameter for the CF2
for _ in range(10000):
ataffanel / map.html
Created Apr 20, 2015
Simple OSM map view in pyqt using QtWebkit
View map.html
<!DOCTYPE html>
<link rel="stylesheet" href="" />
<script src=""></script>
body { padding: 0; margin: 0; }
html, body, #map { height: 100%; }
You can’t perform that action at this time.