These are chat archives for SmingHub/Sming

10th
Mar 2016
Patrick Jahns
@patrickjahns
Mar 10 2016 10:20
Do timers need to reside in a global scope or can i just initialize one in a function to run it once?
hreintke
@hreintke
Mar 10 2016 10:59
@patrickjahns :
Not sure how you intent to use the timer but a timer doesn't need to be global. It also can reside in a class.
Instantiation in a function sec will not work, as at destruction the timer is disarmed (espressif terminology for stopped).
There are possibilities to implement such a timer using queues and tasks. Very limited in NONOS but extensive available in RTOS. Take a look in HardwareSerial class were I use this concept in making sure that the delegate is not executed within the interrupt routine itself.(and starting to do the same in my own application :smile: )
If you want I can give you some rough skeleton code to show basic working
PS: Beware of thread safety with tthis
Patrick Jahns
@patrickjahns
Mar 10 2016 11:08
I`ll have a look into your suggestion. Thanks :-)
crosofg
@crosofg
Mar 10 2016 14:03
why am i getting write error?
open errno -10004

write errno -10010
I am trying to save settings
crosofg
@crosofg
Mar 10 2016 14:13
#define SPIFFS_ERR_DELETED              -10004
#define SPIFFS_ERR_BAD_DESCRIPTOR       -10010
how do I resolve the error? why is it coming?
Patrick Jahns
@patrickjahns
Mar 10 2016 14:23
It is hard to give feedback if you don`t provide more information
Ideally post the code that is causing error on github/gist so we can have a look at
HappyCodingRobot
@HappyCodingRobot
Mar 10 2016 16:05
hi, can someone explain or give an hint what i have to do for the Travis-CI checks ?
do i have to create some test case description or is it just a basic build test?
Patrick Jahns
@patrickjahns
Mar 10 2016 16:40
@HappyCodingRobot
the ones sming is running? It is a basic build test
HappyCodingRobot
@HappyCodingRobot
Mar 10 2016 17:05
@patrickjahns ok, i wasn't sure if i have to make some sort of test case description
laurentppol
@laurentppol
Mar 10 2016 17:37
what is min/max/resolution of (repeated) timer using HW_TIMER?
as I got 20% error usin SW_TIMER(s)
hreintke
@hreintke
Mar 10 2016 18:33
@laurentppol : HW Timer has microsecond resolution.
Beware, you cannot use it in combination with HW PWM
alonewolfx2
@alonewolfx2
Mar 10 2016 19:36
@harry-boe seems your library working but very slow
are you arround
laurentppol
@laurentppol
Mar 10 2016 19:56
@hreintke and time is u32?
I don't need PWM :)
Harry Böttcher
@harry-boe
Mar 10 2016 20:01
@alonewolfx2 yep i’m here
alonewolfx2
@alonewolfx2
Mar 10 2016 20:02
i tried your ported lib and my port
on hw
but both too slow
why ?
i tied both 20 and 40mhz
and 80mhz(its not working :) )
Harry Böttcher
@harry-boe
Mar 10 2016 20:03
how do they compare to the original one ?
alonewolfx2
@alonewolfx2
Mar 10 2016 20:05
original mean ili9341 with hspi.c on our sming ?
Harry Böttcher
@harry-boe
Mar 10 2016 20:05
yes
alonewolfx2
@alonewolfx2
Mar 10 2016 20:05
sample example has 1second timer for basicgui
and gui has 6 line for showing counted number
i can see delay between lines when updating number on screen
but i cant see on original library
Harry Böttcher
@harry-boe
Mar 10 2016 20:13
Well not good. Things to check.
If you change SPI setting between transactions can really slow don the whole thing because it needs to calculate a lot to find new frequency dividers, apply byte oders and so on.
To see what’s going on anable debugging and check for “unneccecary” calls. To enable debuging set SPI_DEBUG on in spi.h.
I’m finishing the ArduCAm right now and will soon start testing on ili9340