Search found 17 matches
- 09 Feb 2017 00:25
- Forum: Z-Uno
- Topic: Multiples Channels
- Replies: 2
- Views: 5152
Re: Multiples Channels
Thanx ftrueck, but i still don't understand what you did. Did you put all your report on the channel 1, like that : zunoSendReport(1); Because i think i tried and it didn't work. This is not very clear for me, i follow the official 10 sensor sketch from zuno and they put each sensor with a different...
- 03 Feb 2017 17:41
- Forum: Z-Uno
- Topic: Multiples Channels
- Replies: 2
- Views: 5152
Multiples Channels
Hello, i'm still playing with zuno and it's pretty cool!!!! I've setted up multiples sketch - 2 switchs - 1 DHT 22 - 1 Motion sensor - 1 Lux - 1 door sensor All work very well separately. So for the fun i've try to put all these sketchs in one. After include in the Fibaro HC2, i 've some troubles : ...
- 18 Jan 2017 10:54
- Forum: Z-Uno
- Topic: [RESOLVE] Sketch with multiple files
- Replies: 9
- Views: 10778
Re: Sketch with multiple files
the possibility to compile 1 .h file with multiples *.cpp file
Like that
Like that
rather thanmain.ino
functions.h
dht.cpp
lux.cpp
pir.cpp
functions.h + functions.c
dht.h + dht.cpp
lux.h + lux.cpp
pir.h + pir.cpp
- 17 Jan 2017 19:46
- Forum: Z-Uno
- Topic: [RESOLVE] Sketch with multiple files
- Replies: 9
- Views: 10778
Re: Sketch with multiple files
I'm ok with you, but with this way, it'll be messy in the code after.
Will be good to compil as a arduino programmer.
Poltos, do you think to plan this functionnality in futur release?
Will be good to compil as a arduino programmer.
Poltos, do you think to plan this functionnality in futur release?
- 16 Jan 2017 18:08
- Forum: Z-Uno
- Topic: [RESOLVE] Sketch with multiple files
- Replies: 9
- Views: 10778
Re: Sketch with multiple files
the Poltos's technic work well. But how to do if i want use more than 1 *.cpp files? In my sketch (before for arduino Uno) i have a *.cpp per sensor. This way i can separate my code and it's more readable. After i join all *.cpp in the file functions.h My sketch is like that main.ino functions.h dht...
- 13 Jan 2017 20:40
- Forum: Z-Uno
- Topic: Humidity DHT11 Example
- Replies: 13
- Views: 14864
Re: Humidity DHT11 Example
@michal
i've opened a new post for this request
https://forum.z-wave.me/viewtopic.php?f=3427&t=24344
thx
i've opened a new post for this request
https://forum.z-wave.me/viewtopic.php?f=3427&t=24344
thx
- 13 Jan 2017 20:39
- Forum: Z-Uno
- Topic: [RESOLVE] Sketch with multiple files
- Replies: 9
- Views: 10778
[RESOLVE] Sketch with multiple files
Hi, i was wondering if we can compil a sktech with multiple files as main.ino functions.h myFunctions.cpp main.ino : #include "functions.h" void loop { test(); } functions.h : void test(); myFunctions.cpp : void test(){ } because when i try to compil there is the debug : Preprocessing file...
- 13 Jan 2017 18:14
- Forum: Z-Uno
- Topic: Humidity DHT11 Example
- Replies: 13
- Views: 14864
Re: Humidity DHT11 Example
Yes i have arduino 1.6.5 and in boards manager Zuno 2.0.7.
I restart the IDE...
But i've compilation error, so i think i've a IDE trouble.
Just in case can you confirm me if i can use differents file in my program like
main.cpp, functions.h, dht22.cpp, **.cpp??
I restart the IDE...
But i've compilation error, so i think i've a IDE trouble.
Just in case can you confirm me if i can use differents file in my program like
main.cpp, functions.h, dht22.cpp, **.cpp??
- 13 Jan 2017 17:38
- Forum: Z-Uno
- Topic: Humidity DHT11 Example
- Replies: 13
- Views: 14864
Re: Humidity DHT11 Example
Hi, i'm trying to use a DHT22 with the library but i got this error : In file included from dht22.cpp:13:0: C:\Program Files (x86)\Arduino\libraries\ZUNO_DHTlib/ZUNO_DHT.h:36:14: error: expected ')' before 'pin' DHT(s_pin pin, uint8_t type = DHT22); ^ C:\Program Files (x86)\Arduino\libraries\ZUNO_DH...
- 25 Sep 2016 19:43
- Forum: Z-Uno
- Topic: zunoSendReport() reset pin mode
- Replies: 5
- Views: 6359
Re: zunoSendReport() reset pin mode
EDIT : try with push button and LED connected on the Pin Board and it's OK. 0 when it's release 1 when it's pressed Ok thank you for the advice, i've change my sktech with 1 or 0. But i still don't know why the result return 1 when the button is release and 0 when is pressed. It's look like the PIN ...