Search found 5 matches

by piterski
Thu May 07, 2020 7:25 am
Forum: ESP8266 boards
Topic: LCD st7920 on esp8266 ModeMcu v3 Lolin
Replies: 5
Views: 459

Re: LCD st7920 on esp8266 ModeMcu v3 Lolin

Hello.
Maybe someone will need this information

I replaced the double list "bytearray" on a single list "int". About 10 times less space

I launched the alpha version. Its working.
If I develop a project, I will make it available
by piterski
Wed Apr 15, 2020 7:36 am
Forum: ESP8266 boards
Topic: LCD st7920 on esp8266 ModeMcu v3 Lolin
Replies: 5
Views: 459

Re: LCD st7920 on esp8266 ModeMcu v3 Lolin

Works on esp8266 NodeMcu V3. Without additional power supply. The solution is: change int SPI and send to SPI spi = SPI(1, baudrate=1800000, polarity=0, phase=0 return self.spi.write(bytearray([b1] + bytes)) Next problem is Fonts. I can upload a maximum of 2 fonts. And I lack memory. A very long tim...
by piterski
Mon Apr 13, 2020 6:32 pm
Forum: ESP8266 boards
Topic: LCD st7920 on esp8266 ModeMcu v3 Lolin
Replies: 5
Views: 459

Re: LCD st7920 on esp8266 ModeMcu v3 Lolin

On Raspberry Pi works ok I replaced cod python2 on python3 I'm using the function plot(x,y) to draw a point x,y import spidev class ST7920: def __init__(self): self.spi = spidev.SpiDev() self.spi.open(0, 0) self.spi.cshigh = True # use inverted CS self.spi.max_speed_hz = 1800000 # set SPI clock to 1...
by piterski
Fri Apr 10, 2020 8:54 am
Forum: ESP8266 boards
Topic: LCD st7920 on esp8266 ModeMcu v3 Lolin
Replies: 5
Views: 459

Re: LCD st7920 on esp8266 ModeMcu v3 Lolin

On my Raspberry Pi works OK! import spidev class ST7920: def __init__(self): self.spi = spidev.SpiDev() self.spi.open(0,0) self.spi.cshigh = True # use inverted CS self.spi.max_speed_hz = 1800000 # set SPI clock to 1.8MHz, up from 125kHz self.send(0,0,0x30) # basic instruction set self.send(0,0,0x30...
by piterski
Mon Apr 06, 2020 12:02 pm
Forum: ESP8266 boards
Topic: LCD st7920 on esp8266 ModeMcu v3 Lolin
Replies: 5
Views: 459

LCD st7920 on esp8266 ModeMcu v3 Lolin

helow I'm trying to run st7920 on NodeMcu v3 Lolin. I chose it because it has 5V most likely the system has SPI("GPIO_8 MOSI" ," GPIO_6 CLK") and HSPI("GPIO_13 MOSI" GPIO_14 CLK") I try like mcauser from machine import Pin, SPI import st7920 spi = SPI(1) screen = st7920.Screen(slaveSelectPin=Pin(4),...