These are chat archives for SmingHub/Sming

19th
Jan 2016
alonewolfx2
@alonewolfx2
Jan 19 2016 08:05
and it does work on nonos sming ?
main question is this. i didnt tried on nonos sdk yet.
Skurydin Alexey
@anakod
Jan 19 2016 09:24
I'm sure what radio library which was added by me in Sming repo working on hardware (at least when I have added it :)
hreintke
@hreintke
Jan 19 2016 09:36
@anakod : And which one did you add ?
And if not available yet in Sming_RTOS convert that one ?
alonewolfx2
@alonewolfx2
Jan 19 2016 09:48
@hreintke @anakod there are 2 library. 1-mirf 2-rf24. and sample is on rf24 library. which one is working ?
Skurydin Alexey
@anakod
Jan 19 2016 10:44
rf24 I belive, if current sample demonstrate it
Second possible too
Also rf24 is more powerful/friendly
hreintke
@hreintke
Jan 19 2016 11:25
@anakod : Can you then check rf24 on nonos sming and then on sming rtos ?
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 11:38
I use DHT11 and sample from sming/samples - humidity 22, but esp don`t read dht :? Watchdog restart esp every time
sle118
@sle118
Jan 19 2016 13:06
@alon24 I am trying to compile InfoScreens and for some reason the compiler can't find the driver include. This is a noob problem, but being a Visual Studio guy, I still have a learning curve on Eclipse. The error message is

`C+ app/application.cpp
app/application.cpp:3:36: fatal error: drivers/SSD1306_driver.h: No such file or directory

include <drivers/SSD1306_driver.h>

                                ^

`

the wierd thing is that this one: #include <user_config.h>
points to the InfoScreens include directory correctl
alon24
@alon24
Jan 19 2016 13:11
@sle118 rtos? or non?
which branch
sle118
@sle118
Jan 19 2016 13:14
Sming 2.0
alon24
@alon24
Jan 19 2016 13:14
no, i meant infoscreens which branch or master?
sle118
@sle118
Jan 19 2016 13:14
master
should I go with RTOS branch?
alon24
@alon24
Jan 19 2016 13:16
do u use sming rtos poc?
I am now checking on the master infoscreens - 5 mins
sle118
@sle118
Jan 19 2016 13:16
not sure... I am seeing the following in Sming Readme.md
Sming V2.0.0
the file IS there
I am not sure why the compiler doesn't go down the drivers path
as it reads user_config.h from the include directory above
alon24
@alon24
Jan 19 2016 13:24
did u build smingframewrok and spiffy, before infoscreens?
sle118
@sle118
Jan 19 2016 13:24
yes
alon24
@alon24
Jan 19 2016 13:25
sming is now on 2.1.1
maybe retake it?
I do not know why this is happening to u
sle118
@sle118
Jan 19 2016 13:25
ok. Let me figure out the git command to refresh
alon24
@alon24
Jan 19 2016 13:25
it does not happpen here
alon24
@alon24
Jan 19 2016 13:46
other examples work for u?
sle118
@sle118
Jan 19 2016 13:54
I have reset the head of Sming to the latest version and "make rebuild" InfoScreens
seems to work now. Include files are indexed
I have to change the flash options, though, as pulling latest sming broke my flash size
alon24
@alon24
Jan 19 2016 13:56
enjoy, are u working on debug or jpg now?
sle118
@sle118
Jan 19 2016 14:02
I am working on jpg
day job is calling soon, though, but I want to see SSD1306 working
recompiling InfoScreens now with different scl pin
sle118
@sle118
Jan 19 2016 14:08
allright. I give up for now. Even InfoScreens is skipping every 2nd line of the display
I'll try re-flashing NodeMCU and see if this is a defect of the screen itself or something else
but first I'll try using other pins... unlikely to make any difference, but I want to exclude all possible issues
alon24
@alon24
Jan 19 2016 14:20
infoscreen is currently out of the box working with i2c
Wire.pins(sclPin, sdaPin);
display = new SSD1306_Driver(4);
u r connecting i2c and not spi - right?
sle118
@sle118
Jan 19 2016 14:27
correct
this is on a NodeMCU board. I DO get a display
I just skips every 2nd line
alon24
@alon24
Jan 19 2016 14:29
my code should have worked for u
it seems like a hardware issue with ur screen
sle118
@sle118
Jan 19 2016 14:30
yes. I am thinking this may be the case
alon24
@alon24
Jan 19 2016 14:30
can u give a link to where u bought?
maybe its not ssd1306, but ssd1106
sle118
@sle118
Jan 19 2016 14:31
it's an aliexpress display.
driver is listed as this = Driver IC: SSD1306
alon24
@alon24
Jan 19 2016 14:32
so this is the blue and yellow
mine is the all white
sle118
@sle118
Jan 19 2016 14:32
ah!
alon24
@alon24
Jan 19 2016 14:33
wow, btw - expensive!
it shold be around 4$
sle118
@sle118
Jan 19 2016 14:34
this is an old link
I paid 3.99
last year ;)
ystrem
@ystrem
Jan 19 2016 14:35
I'm testing VS2015 + Visual Micro and it's very good :)
they have their own code like Adafruit_ssd1306syp

include <Adafruit_ssd1306syp.h>

include <CN_SSD1306.h>

alon24
@alon24
Jan 19 2016 14:43
maybe u need to look at CN_SSD1306.cpp
sle118
@sle118
Jan 19 2016 14:55
ah
interesting! let me check that
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 15:03
someone play with DHT11 ? I using dht22 example but not working...
robotiko
@robotiko
Jan 19 2016 15:05
@dobrishinov used pull up resistor?
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 15:16
i have this board with sensor http://cowfish.org.uk/blog/wp-content/uploads/2014/12/image1.jpg , i think there are pull up resistor :?
robotiko
@robotiko
Jan 19 2016 15:59
@dobrishinov I dont know that board
you need teh schematic
I have similar ones from keyes for other sensors
and lines are wrong marked on pcb
so if it doesn't work, check teh schematic
sle118
@sle118
Jan 19 2016 16:42
@alon24 > maybe u need to look at CN_SSD1306.cpp
This was the best help
they have rolled out their own Adafruit driver source
however, still no luck even with their drivers. But thanks for the tip! I will try to see if I can slow down the Wire rate
and if all fails, I'll dig in my parts bin to find another display
thanks again!
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 17:08
i connect dht11 to arduino, and work, but on esp still not working
robotiko
@robotiko
Jan 19 2016 17:15
then it is clear that it is sming
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 17:36
someone test dht11 :?
laurentppol
@laurentppol
Jan 19 2016 19:37
@dobrishinov maybe problem in supply voltage for sensor? Arduino 5V, ESP 3.3V?
DS18B20 will work at 3.3V (don't know, if on long cables, but on shorts it works).
sle118
@sle118
Jan 19 2016 19:43
maybe u need to look at CN_SSD1306.cpp
@alon24 I found the issue and now infoscreens is rocking on a display of mine
turns out I had 2 defective units
robotiko
@robotiko
Jan 19 2016 19:44
@sle118 and 1 working one?
:D
sle118
@sle118
Jan 19 2016 19:44
looks like so
robotiko
@robotiko
Jan 19 2016 19:44
well
sle118
@sle118
Jan 19 2016 19:44
I should have checked hardware first :S
robotiko
@robotiko
Jan 19 2016 19:44
at least you know what it is and can stop wasting time
sle118
@sle118
Jan 19 2016 19:44
what a waste of time!
but thanks all. Now I can work on the JPG display class
robotiko
@robotiko
Jan 19 2016 19:45
these things happens
now you knwo infoscreens :D
sle118
@sle118
Jan 19 2016 19:45
:D
robotiko
@robotiko
Jan 19 2016 19:46
now you can extend it with jpeg backgrounds :D
sle118
@sle118
Jan 19 2016 19:46
hell yes
sle118
@sle118
Jan 19 2016 19:51
so I placed InfoScreens inside /opt/Sming. What is the best way to leverage it from a custom project aside from copying the files in my own project? Would adding a reference to InfoScreens enough to get through compile?
robotiko
@robotiko
Jan 19 2016 19:55
it could be added as lib in sming
so you can simple include
that would require that you rebuild sming
will be quite annoying if you update repo often
Alon24 was getting it ready to be added as sming lib
sle118
@sle118
Jan 19 2016 20:42
ok. In the meantime I'll reference it inside my project the hard way and will wait for the lib.
robotiko
@robotiko
Jan 19 2016 20:44
then you will simply need to update thr include to the lib and remove from project code
no big deal
alon24
@alon24
Jan 19 2016 20:44
the lib would take some time
time, is short at my end
sle118
@sle118
Jan 19 2016 20:48
time wasn't so short on my end before I started troubleshooting 2 bad displays thinking it was a code issue :P
sle118
@sle118
Jan 19 2016 22:01
@alon24 nice work!
laurentppol
@laurentppol
Jan 19 2016 22:21
@sle118 it this a Win$ program or some Web page?
Georgi Dobrishinov
@dobrishinov
Jan 19 2016 23:38
can i use all arduino libraries with sming :? without porting