Just a short update – in my ESP8266 code I have a driver for the SSD1306 – and one of our readers had difficulty with this some time ago. Today I read the manual. Ooh, err.
It turns out I’d put the wrong command in place – it worked if you referred to it as an OLED but not as an ssd1306.
The command for that lot incidentally is…
{ssd1306:”$S1Hello !!!$P0,10$O$P0,20$V$P0,30$N$P0,40$U$P0,50$R”}
Well, that’s all fixed and along the way, as I happened to be testing a WEMOS + OLED Chinese rip-off board today (successfully after changing the programming mode – again for these particular boards), I’ve added some new ssd1306 commands which should make good use of this combined board.
As well as other commands – the VOLTAGE command available in the general esp8266 code is now added to the display code – handy perhaps for a simple voltmeter or keeping an eye on batteries etc.
It’s all in the project – documented, OTA available (currently version 2.2.14)
a new board, with esp8266+oled+joystick+battery holder:
https://www.banggood.com/Wemos-D1-Esp-Wroom-02-Motherboard-ESP8266-Mini-WiFi-NodeMCU-Module-p-1224577.html?utm_campaign=763073_1224577&utm_content=1087&p=NT1005763073201409DA&cur_warehouse=CN
OK – Sussed it!
Think I got a bit overwhelmed by the size of the blog! I was picking up the wrong ROM code, which just compounded my confusion.
I now have a working set taken from “http://roms.webutu.com” – which is much more recent.
I have yet to build my own correct version – currently when I build I get the older code. I think this is just a steep learning curve for me and I’ll get there. I haven’t used eclipse before so I just need to get used to the options etc.
Thanks for listening!
Regards
Ron
maybe it’s better if peter deletes the old repository, then, so no ota or other can go there…
Hi Pete,
Thanks for all your work – recently got back into this. I have an old Home Control System which I need to replace and am working my way through it.
Anyway – to the point… Downloaded the latest source code and got it into the Eclipse environment. Updated Userconfig.h to my settings and rebuilt.
Tried to use the ssd1306 command from the serial port and I get the response:
“Did not understand ssd1306”
Tried “OLED” and the command was recognised, but no output to device.
Did “i2c_check” and the device is seen on the bus …
So what have I got wrong??
Best Regards
Ron
are you using the new dev2 branch, or the old one? Have you tried with the precompiled BIN files Peter published?
Thanks – will check what I am using.
I did try the bin file at the pre-defined OTA distribution, but same outcome.
Regards
have to wait for Peter to be back home 🙂
Great.
This simplifies things.
I did use a function to extract the name.
A function is still needed to extract just the name.
That’s ok, but why not add: $n to do that.
And $v, $o, etc to skip the fixed text part.
Best regards,
Sören Käck
The name is arbitrary – I normally rename mine to something useful like kitchenlight
Right.
With $N you get: “NAME:kitchenlight”
My sugg. was $n displaying: “kitchenlight”
I.e: {ssd1306:”$S0Unit:$n”}
=> Unit:kitchenlight
/SK
Oh I see – oh that’s just for direct string on the display for info – there’s no other practical use for it – if you’re using Node Red you’d normally build up strings as you go along. Still next time I’m doing updates – no harm in putting that in.