Playing with oled-exp
-
Because I like poking at things, I keep pushing on what I can get oled-exp to do I've hit a couple of bugs with it while playing more.
An interesting one is that oled-exp attempts to parse strings that start with a dash '-' as switches, even if they are quoted (either single or double quotes). E.g.
oled-exp write '-c'
will clear the display and write an empty string instead of writing the literal '-c' to the display. I have also tried escaping the dash but get the same behavior.
I also can't get the cursor positioning to work for columns. Rows work fine:
oled-exp cursor 7,0 write "I am the bottom line"
does what is expected, but
oled-exp cursor 4,8 write "center"
puts the text at line 4 column 0 rather than column 8. Though stdout from oled-exp claims that it is doing the right thing:
> Setting cursor to (4, 8) > Writing 'center' to display
-
@fader Thanks for pointing out these bugs. We will add them to our list and get them sorted out for the next release
-
Awesome, thanks @Boken-Lin! Is there a bug tracker I should use in the future or is this community site the best place to report such things?
-
@fader You should create an issue on our Github repo here: https://github.com/OnionIoT/i2c-exp-driver.
-
I experienced the bug with the cursor as well. Issue on github: https://github.com/OnionIoT/i2c-exp-driver/issues/2
-
@BeneKenobi Thanks for reporting the bug!
-
@fader @BeneKenobi
Thanks for the bug reporting guys!
Please upgrade your Omega firmware to b236, the cursor issue has been addressed and should be working now
-
Just updated from b234 to b236, now the Image function of the OLED Expansion Control of the Control Panel displays the image in a torn, skewed manner. It worked correctly in b234. Worked correctly in b234.
Issue on github: https://github.com/OnionIoT/i2c-exp-driver/issues/3
-
I'm seeing the same thing as @BeneKenobi and have uploaded a picture of the skewed image to his bug report.
I'm also now able to escape a string starting with a dash using a backslash (i.e. \-mystring) but not in quotes (either single or double, i.e. '-mystring' or "-mystring"). Not sure if this is expected behavior or not so I haven't updated/filed a bug on that yet.
-
@Scott-Smith, @fader: Thanks for the update. We will take a look!
-
@Scott-Smith, @fader: oversight on my part with the cursor fix, sorry, it's fixed now tho.
Pick up b238, the draw isn't skewed anymore (and the cursor still works )
-
@Lazar-Demin Thanks for the fast update! Unfortunately, b238 seems to have a different skew, where some rows of pixels from the bottom of the image are pushed to the top. I've attached an example to the ticket in Github.
Additionally, after displaying an image and then using 'oled-exp -c' a few pixels in the rightmost few columns are left on. This persists when text is written to the display.
(But the cursor control seems to be working )
-
(@Lazar-Demin Please let me know if you'd rather have a separate ticket for the new skew issue and/or the ghosting of pixels after a screen clear. I added comments to the existing issue but it's closed, so happy to open a new one if that's better.)
-
@fader I reopened that same ticket. I'm hoping to fix this sometime today, if not, then tmrw!
-
Thanks, @Lazar-Demin! I'm in no hurry, just trying to let you know what I see