Weblog von strauch

FHEM: CUL Update

sudo apt-get install dfu-programmer
wget http://culfw.de/culfw-1.58.tar.gz
tar xfz culfw-1.58.tar.gz
cd CUL_VER_158/culfw/Devices/CUL
dfu-programmer atmega32u4 erase || true
dfu-programmer atmega32u4 flash CUL_V3.hex
dfu-programmer atmega32u4 start

FHEM: DHT22

// A web server to control the arduino via FHEM
#include "etherShield.h"
#include "ETHER_28J60.h"
#include "DHT.h"

#define DHTPIN 9
#define DHTTYPE DHT22 //DHT11, DHT21, DHT22

int sensorValue = 0;
int sensorVal = 0;

Seiten