project specific settings

This commit is contained in:
Stefan Ostermann 2021-05-01 23:56:59 +02:00
parent 733494a902
commit e050166805
5 changed files with 18 additions and 1 deletions

View File

@ -3,3 +3,4 @@
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
config.h

View File

@ -2,5 +2,8 @@
![fritzing](sensor_Steckplatine.png)
# Build
Copy config.h.example to config.h and set your project specific settings there.
# flash attiny with minipro on linux and the TL866II plus after compiling:
minipro -p attiny85 -w .pio/build/attiny85/firmware.hex

View File

@ -26,7 +26,11 @@ upload_speed = 19200
; http://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85
board_build.f_cpu = 8000000L
force_verbose = true
force_verbose = True
; set environment variables in a python script for project specific settings
; does not work because variables not available in build!
; extra_scripts =
; pre:env.py
; Platformio Project Tasks -> Set Fuses!
board_fuses.lfuse = 0xE2

View File

@ -0,0 +1,5 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
#endif

View File

@ -59,6 +59,10 @@
#include "dht22.h"
dht22 dht;
// Configuration, see file config.h.example and rename to config.h. Project specific, do not add to git!
#include "config.h"
#define RH_BUF_LEN 11
uint8_t rh_buf[RH_BUF_LEN] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};