Skip to content

Instantly share code, notes, and snippets.

View fradaloisio's full-sized avatar

Francesco d'Aloisio fradaloisio

View GitHub Profile
@fradaloisio
fradaloisio / sds011.py
Last active November 1, 2017 11:32 — forked from geoffwatts/sds011.py
Read an SDS011 Laser PM2.5 Sensor (Nova PM Sensor) with Python
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import serial, time, struct
ser = serial.Serial()
ser.port = "/dev/ttyUSB0" # Set this to your serial port
ser.baudrate = 9600
ser.open()
@fradaloisio
fradaloisio / index.html
Created October 10, 2017 22:31 — forked from anonymous/index.html
Ticking Clock
<div id="clock"></div>
<div id="utc"></div>
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">