project specific settings
This commit is contained in:
parent
733494a902
commit
e050166805
|
|
@ -3,3 +3,4 @@
|
|||
.vscode/c_cpp_properties.json
|
||||
.vscode/launch.json
|
||||
.vscode/ipch
|
||||
config.h
|
||||
|
|
@ -2,5 +2,8 @@
|
|||
|
||||

|
||||
|
||||
# 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
#ifndef __CONFIG_H__
|
||||
#define __CONFIG_H__
|
||||
|
||||
|
||||
#endif
|
||||
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue