-->
Page 1 of 1

ic2 and displays

PostPosted: Fri Jan 29, 2016 5:06 am
by drhaitch
This may be common knowledge but took me ages to work out . Could you add this (If I'm correct) to the
http://www.esp8266basic.com/oled--lcd-d ... mands.html
page.
Thanks Hamish
--------------------------------------------------------------------------------------
For a 1602 ic2 LCD module, the address must be 27H (39Dec)
For OLED ic2 display the address must be 3CH (60Dec)

You cannot change these addresses from within ESP8266Basic, they are set when ESP8266Basic starts.

When ESP8266Basic starts, it initialises the displays. If they are not connected and powered when ESPBasic boots then they wont work. ie if you are using a breadboard and connect the display then run your program it wont be able to access the displays until you either reboot or power off then on.

If you have devices connected to the D3/SDA line this can stop the ESP8266 from booting correctly . D3 is also the flash button.

Also for neopixels.

PostPosted: Fri Jan 29, 2016 6:51 am
by drhaitch
Could you add this to the documents

http://www.esp8266basic.com/functions-n ... s2812.html

Up to 255 NEO Pixels can be controlled.
The pixels are indexed from zero



Also is there some easy way we can submit an example for each language feature? I find it much easier if I can see a command in context. Would be great if it was in the language documents as the forum is painful to navigate.
ie

Code: Select all'Light up 3 neopixels
'clear neopixels
neocls()

'set 1st pixel to red
neo(0,255,0,0)

'set second to dull red
neo(1,20,0,0)

'set third to mid green
neo(2,0,50,0)

wait