-
Multi Threading and still looking for Primes
Added some Multi Threading to my code to get full advantage of the dual core on my laptop: import threading import time import inspect import sqlite3 import math class Thread(threading.Thread): def __init__(self, t, *args): threading.Thread.__init__(self, target=t, args=args) self.start() # global variables count = 0 lock = threading.Lock() primeList = [] dbname=’/home/roberto/primelist.db’ table_name = ‘primes’ #…
-
First steps to my RPi weather station
After my fist Pi experiment I finally decided what my final project will be: a weather station. After the temperature I thought humidity and atmospheric pressure will be the next task: To do that I needed two new sensors: DHT11 (don’t waste your money like I did on DHT11 buy DHT22) and BMP180. In order…

