These are chat archives for SmingHub/Sming

18th
Jan 2016
laurentppol
@laurentppol
Jan 18 2016 00:58
@hreintke so choices are: "upgrade Sming to 2.x", "use SDK 1.3"? correct? and RBoot works OK only in 2.x?
hreintke
@hreintke
Jan 18 2016 08:05
@laurentppol : As I said on jan 14th : Read releasenotes. There you will find the answer to your question.
sle118
@sle118
Jan 18 2016 17:00
Hello everyone. I may finally get a chance to work on my jpg decode and display class this week, but need an advice
I only have oled displays that are incompatible with the adafruit driver found in Sming
There is a working driver available in u8glib, which was ported to nodemcu and I am wondering how difficult it would be to compile the library under Sming
first attempts weren't a huge success
anyone willing to share experience in porting existing arduino classes to Sming? any hint would be very much appreciated and the benefit is support for displaying jpg files on LCD, loading them from spiffy
nanobyte84
@nanobyte84
Jan 18 2016 17:08
what display are you using?
robotiko
@robotiko
Jan 18 2016 17:09
Hi @sle118 I know that @alonewolfx2 has been working in the porting of those libs
and also @alon24 has soem experince with them
I personally just used basic ssd13xx
sle118
@sle118
Jan 18 2016 17:16
SDD13x doesn't send the proper init sequence
OUPS
ssd13xx
the issue is that the display skips every other line
with adafruit libs
robotiko
@robotiko
Jan 18 2016 17:19
@sle118 I know that alone24 is using that display.. quite nicely in his infoScreens lib
is workign in sming..
have alook
*a look
sle118
@sle118
Jan 18 2016 17:19
@nanobyte84 I am using a 128X64 display SSD1306 from aliexpress
sle118
@sle118
Jan 18 2016 17:21
yes, I have checked infoscreens. It uses Adafruit_SSD1306 library.
I had these display working with NodeLua really nicely, through the u8glib drivers
init sequence is quite different than the adafruit one
Skurydin Alexey
@anakod
Jan 18 2016 17:23
Yes, it's different libs, but what is wrong with Adafruit_SSD1306?
sle118
@sle118
Jan 18 2016 17:23
@robotiko I don't think @alonewolfx2 ever completed the port
robotiko
@robotiko
Jan 18 2016 17:23
no idea
Skurydin Alexey
@anakod
Jan 18 2016 17:23
Shouldn't be problem display decoded data (if you have array of pixels) to any driver
sle118
@sle118
Jan 18 2016 17:23
@anakod the issue is every other line is skipped
I am planning on implementing my jpg display with a callback delegate for writing pixels
so drivers should not be a problem for anyone wanting to use it
however, I am just stalled in testing right now
even writing text has every other line skipped
alonewolfx2
@alonewolfx2
Jan 18 2016 17:25
@anakod It's good to see you here :)
Skurydin Alexey
@anakod
Jan 18 2016 17:25
What yopu mean under "every other line "?
alonewolfx2
@alonewolfx2
Jan 18 2016 17:26
@sle118 i didnt completed u8glib due to main work time. i am trying to port libraries into the rtos sming
Skurydin Alexey
@anakod
Jan 18 2016 17:26
May be you have different display (hardware)
sle118
@sle118
Jan 18 2016 17:26
here is a post regarding this issue on espuino
Skurydin Alexey
@anakod
Jan 18 2016 17:26

I am planning on implementing my jpg display with a callback delegate for writing pixels
so drivers should not be a problem for anyone wanting to use it

That's right architecture

alonewolfx2
@alonewolfx2
Jan 18 2016 17:26
@sle118 ssd1306 screen from aliexpress working very good for me on nonos and rtos sming
sle118
@sle118
Jan 18 2016 17:26
*espruino
@alonewolfx2 is this the model without a reset pin? how are you initializing it?
robotiko
@robotiko
Jan 18 2016 17:28
@sle118 I'm usign that display too working really nice on nonos and rtos
using infoscreens
without reset
alonewolfx2
@alonewolfx2
Jan 18 2016 17:28
@sle118 yes without reset pin. Adafruit_SSD1306 display(16);
robotiko
@robotiko
Jan 18 2016 17:29
reset is done with a i2c command
Skurydin Alexey
@anakod
Jan 18 2016 17:29
reset pin can be issue, I face some problems one time before, I think
robotiko
@robotiko
Jan 18 2016 17:29
part of the display lib
Skurydin Alexey
@anakod
Jan 18 2016 17:29
But on different display model
sle118
@sle118
Jan 18 2016 17:36
ok. I'll try again tonight (I'm on Canada Eastern time). Maybe the driver is somehow initialized with a 32 lines buffer instead of a 64
according to Google, this issue seems to have been reported by a number of people in the past
Skurydin Alexey
@anakod
Jan 18 2016 17:37
You sould select (uncomment) right define to chooice resolution.
sle118
@sle118
Jan 18 2016 17:38
You sould select (uncomment) right define to chooice resolution.
I think I did
but I'll check again tonight
I'll try to run the infoscreens demo and see if I get the same problem
@alonewolfx2 is u8glib on the roadmap for Sming some day ? If not, I will see how far I can get in having at least a clean compile and the SSD1306 driver up and running
Skurydin Alexey
@anakod
Jan 18 2016 18:19
Not for near future at least
alonewolfx2
@alonewolfx2
Jan 18 2016 18:30
@sle118 i will try this weekend but I am not sure.
Skurydin Alexey
@anakod
Jan 18 2016 18:38
@sle118 check your code please, I'm sure you have a some bug
Also don't forget rebuild SmingFramework after changes in Libs
hreintke
@hreintke
Jan 18 2016 19:44
@alonewolfx2 : Did you have progress with the RD24 library conversion ?
@hreintke I guess my memory offsets are not correct. Here is the full log : http://pastebin.com/AbWm39Jh
hreintke
@hreintke
Jan 18 2016 20:40
@ram-one your flash of spiffy is to 0x100000 out/firmware/spiff_rom.bin which is outside your 1M
alonewolfx2
@alonewolfx2
Jan 18 2016 20:48
@hreintke mean rf24?
not working on module
hreintke
@hreintke
Jan 18 2016 20:52
@alonewolfx2 : and it does work on nonos sming ?
@hreintke Thanks, I got it working by setting RBOOT_SPIFFS_0 ?= 0x042000. Is there any rules to correctly set this offset ?
Dmitry Kireev
@kireevco
Jan 18 2016 21:19
@riban-bw what's going on with the api?
and documentation? do you need me to create some task on my jenkins? I can do that.
sle118
@sle118
Jan 18 2016 21:29
Also don't forget rebuild SmingFramework after changes in Libs
@anakod I think you might be on to something here. It is very likely that my changes to the include files had not been compiled... d'oh!
riban-bw
@riban-bw
Jan 18 2016 22:09
@kireevco I'm a bit busy with work this week. I have been working on the build script. I'll let you know how I get on. For now, I'll build API docs manually as updates come in. (I think I am the only one adding API docs at the moment)
hreintke
@hreintke
Jan 18 2016 22:19
@ram-one : Depends what your goal is with rboot. With a 1M esp you are constrained in the possibilities.
You decide on on or two application areas for appliactions (probably two otherwise there is no ota) , and one or two spiffs.
The size of the application area's are the size of your app. The spiffs size(s) are up to you.