These are chat archives for SmingHub/Sming

25th
Oct 2015
Dmitry Kireev
@kireevco
Oct 25 2015 06:09
How things are going here?
alonewolfx2
@alonewolfx2
Oct 25 2015 06:12
just silent
Dmitry Kireev
@kireevco
Oct 25 2015 06:15
I’m in Russia now
it’s raining
alonewolfx2
@alonewolfx2
Oct 25 2015 06:22
raining too in Turkey
@kireevco did you heard hmi screen called nextion
Dmitry Kireev
@kireevco
Oct 25 2015 06:50
no
what’s that
?
looking, has a screen editor
looks really cool
i want it
how does it connect to arduino?
uard?
uart?
yeah, seems like that
Dmitry Kireev
@kireevco
Oct 25 2015 06:55
4m flash… hah
alonewolfx2
@alonewolfx2
Oct 25 2015 06:57
yep
its on my hand now and i am trying to port library for this screen
Dmitry Kireev
@kireevco
Oct 25 2015 06:58
very nice
alonewolfx2
@alonewolfx2
Oct 25 2015 06:58
i wonder if anyother one tried or not
Dmitry Kireev
@kireevco
Oct 25 2015 07:03
how does it look?
the screen
@alonewolfx2
alonewolfx2
@alonewolfx2
Oct 25 2015 07:03
actually its uart screen
its comunucating mcu over sming
Dmitry Kireev
@kireevco
Oct 25 2015 07:03
I mean colors, quality, etc?
alonewolfx2
@alonewolfx2
Oct 25 2015 07:04
fairenough
for price
Dmitry Kireev
@kireevco
Oct 25 2015 07:04
which one did you get?
2.4?
alonewolfx2
@alonewolfx2
Oct 25 2015 07:04
3.2
Dmitry Kireev
@kireevco
Oct 25 2015 07:05
do you think 2.4 is too small?
alonewolfx2
@alonewolfx2
Oct 25 2015 07:05
no
i think its good size
Dmitry Kireev
@kireevco
Oct 25 2015 07:08
ordered.
alonewolfx2
@alonewolfx2
Oct 25 2015 07:08
:D
dont blame me if you dont like
Dmitry Kireev
@kireevco
Oct 25 2015 07:09
hfhf
haha. I will, I wil
I’ll see it in a month ony
alonewolfx2
@alonewolfx2
Oct 25 2015 07:09
noooo sdfşkgsdşfg :D
zhivko
@zhivko
Oct 25 2015 07:23
HMI nextion is very nice. Touch screen offers alot possibilities.
alonewolfx2
@alonewolfx2
Oct 25 2015 07:44
yes and its serial screen and just need 2 wire
alonewolfx2
@alonewolfx2
Oct 25 2015 07:52
@kireevco i need some information
what is utoa function
or @hreintke
alonewolfx2
@alonewolfx2
Oct 25 2015 08:24
some good and bad news
alon24
@alon24
Oct 25 2015 08:43
@alonewolfx2 stronger more expensive, multi core, but will it be breadboard friendlt?
crosofg
@crosofg
Oct 25 2015 08:44
what is the difference between ESP8266 and ESP-WROOM?
alonewolfx2
@alonewolfx2
Oct 25 2015 09:06
@alon24 i dont know but real important thing is SDK is same or not?
Dmitry Kireev
@kireevco
Oct 25 2015 09:07
Thank you @alonewolfx2 for the news about the screen
alonewolfx2
@alonewolfx2
Oct 25 2015 09:08
@kireevco not important
@all can anyone help me about arduino's utoa function? (actually cpp's otoa)
alon24
@alon24
Oct 25 2015 09:14
alonewolfx2
@alonewolfx2
Oct 25 2015 09:18
(why couldn’t they use \n like normal people… however…)
:D
alon24
@alon24
Oct 25 2015 11:17
the new chip from espreiff will have a version which is breadboard friendly!
Alexander V. Ribchansky
@avr39-ripe
Oct 25 2015 11:32
Hello! Can somebody tell me if I can use gpio15 as interrupt source? I whant monitor interrupt pinfrom mcp23s17 port expander
alon24
@alon24
Oct 25 2015 11:38
I think u can
alonewolfx2
@alonewolfx2
Oct 25 2015 12:14
@hreintke are you here
hreintke
@hreintke
Oct 25 2015 13:51
@alonewolfx2 : Yes, now I am
alonewolfx2
@alonewolfx2
Oct 25 2015 13:52
can you help me?
about utoa function
hreintke
@hreintke
Oct 25 2015 13:53
what is the question about that ?
alonewolfx2
@alonewolfx2
Oct 25 2015 13:53
i am trying to port one library and it has utoa function but sming doesnt
here is error on compiling
C+ app/application.cpp
CC /C/tools/Sming/Sming/rboot/appcode/rboot-api.c
CC /C/tools/Sming/Sming/rboot/appcode/rboot-bigflash.c
AR out/build/app_app.a
LD out/build/app_0.out
c:/tools/Sming/Sming/compiler/lib/\libsming.a(NexProgressBar.o): In function `NexProgressBar::getValue(unsigned int*)':
C:\tools\Sming\Sming/Libraries/Nextion/NexProgressBar.cpp:29: undefined reference to `NexProgressBar::utoa(unsigned int, char*, int)'
c:/tools/Sming/Sming/compiler/lib/\libsming.a(NexProgressBar.o): In function `NexProgressBar::setValue(unsigned int)':
C:\tools\Sming\Sming/Libraries/Nextion/NexProgressBar.cpp:34: undefined reference to `NexProgressBar::utoa(unsigned int, char*, int)'
collect2.exe: error: ld returned 1 exit status
make: *** [out/build/app_0.out] Error 1
but i defined that function like this
hreintke
@hreintke
Oct 25 2015 13:54
it is not in sming :
This function is not defined in ANSI-C and is not part of C++, but is supported by some compilers.
alonewolfx2
@alonewolfx2
Oct 25 2015 13:55
but if i declare ?
    char* utoa( unsigned int value,
                char* buffer,
                int radix );
or which function do same thing?
hreintke
@hreintke
Oct 25 2015 13:56

The utoa() function coverts the unsigned integer n into a character string. The string is placed in the buffer passed, which must be large enough to hold the output. The radix values can be OCTAL, DECIMAL, or HEX. When the radix is DECIMAL, utoa() produces the same result as the following statement:

(void) sprintf(buffer, "%u", n);

alonewolfx2
@alonewolfx2
Oct 25 2015 14:00
i tried that but i need to limit string to 10 char
hreintke
@hreintke
Oct 25 2015 14:01
then use snprintf that takes an argument which limits the size of output
alonewolfx2
@alonewolfx2
Oct 25 2015 14:08
ok i am trying now
snprintf not declared too
hreintke
@hreintke
Oct 25 2015 14:28
had trouble like this too when implementing printf in print.cpp.
ADiea implemented additional v-vs-f printf functionality in m_printf
Don't know why snprintf is not included in there
Best is to submit an issue on sming repo. If ADiea is still active he is the best to pick this up. Otherwise I can take a look.
hreintke
@hreintke
Oct 25 2015 14:34
For the time being you can of course implement a very limited utoa which just takes care of what you need. Should not be to difficult
alonewolfx2
@alonewolfx2
Oct 25 2015 14:45
you are right.
btw i have one issue too.
if i connect lcd to esp's serial line esp cant boot
if i put some delay(2000) and boot without connection,esp booting and if i connect in serial wire on delay, esp boting and screen working
hreintke
@hreintke
Oct 25 2015 14:59
I've read about that before (some time ago) on esp8266 forum. Have no experience whit that myself
alonewolfx2
@alonewolfx2
Oct 25 2015 15:01
@hreintke did you use uart1 or softserial in sming ? or are you planning to it?
hreintke
@hreintke
Oct 25 2015 15:18
Did not use either. I personally have no plans picking that up shortly. But if you provide a base we could work from there :smile:
alonewolfx2
@alonewolfx2
Oct 25 2015 15:18
i am working on it :D
hreintke
@hreintke
Oct 25 2015 15:27
Great , if you have a first/beta version share it.
alonewolfx2
@alonewolfx2
Oct 25 2015 16:35
@kireevco nextion library semi-working now
alon24
@alon24
Oct 25 2015 16:48
how many pins do u Wed for nextion?
need
alonewolfx2
@alonewolfx2
Oct 25 2015 17:06
2
its uart screen
hmi
robotiko
@robotiko
Oct 25 2015 17:12
@alonewolfx2 semi-working.. what is working?
alonewolfx2
@alonewolfx2
Oct 25 2015 17:27
objects pages screen except events.
serial callbacks not working yet
soo you can set data on the screen but you cant get data from screen
robotiko
@robotiko
Oct 25 2015 17:34
nice