Search found 43 matches

by mflmartin
Tue Aug 02, 2016 7:48 pm
Forum: ESP8266 boards
Topic: Software serial?
Replies: 49
Views: 36623

Re: Software serial?

Can I disable console REPL and use WebREPL to free up the UART 0 RX pin? I am using and testing a bluetooth module connected to the ESP8266-01 via UART. I use the Webrepl for testing, as my module is wired to RX/TX. It is a bit annoying when you have to restart, reconnect, etc, but overall is "usab...
by mflmartin
Tue Aug 02, 2016 6:06 pm
Forum: Drivers for External Components
Topic: PCD8544 driver module (Nokia 5110 lcds)
Replies: 8
Views: 7298

Re: PCD8544 driver module (Nokia 5110 lcds)

Is there any update in this ? Would be nice to interface with Nokia LCD's :)
by mflmartin
Mon Aug 01, 2016 3:26 am
Forum: ESP8266 boards
Topic: Error flashing latest Binaries
Replies: 13
Views: 6903

Re: Error flashing latest Binaries

What error do you get exactly?

Can you post the error output?
by mflmartin
Sun Jul 31, 2016 11:51 pm
Forum: ESP8266 boards
Topic: So you want to use the UART...
Replies: 29
Views: 26147

Re: So you want to use the UART...

I successfully connected a Bluetooth HM-10 via UART to the ESP8266 (Just for testing the UART and learning). I found that I had to use uart.read, more than uart.readall(): from machine import I2C, Pin import utime from machine import UART uart = UART(0, 9600) uart.init(9600) while True==True: val = ...
by mflmartin
Sun Jul 31, 2016 6:35 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

Yes, you can do it -- if you are using numbers. However, if you want to save space, at some point you will want to save this as raw strings of bytes. When you say, "as a raw strings of bytes", you mean like this? 010101010110 Does this save space, as opossed as using numbers? In code, i would occup...
by mflmartin
Sun Jul 31, 2016 6:06 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

The display I'm using has 4 shades of grey, encoded in pairs of bits: 00 is black, 01 is dark grey, 10 is light grey and 11 is white. So I did the same thing with my font. That's why every 4x6 character is encoded as 6 bytes -- 2 bits for every pixel. Of course you can modify the pygame program to ...
by mflmartin
Sat Jul 30, 2016 11:53 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

No, the error you are getting is because the image you are reading has a color that is not included in the colors dictionary, so it doesn't know what to do with it. Oupppps, my bad! You are right. The black was set to 191919. So, I understand it about black and white, but what do this other 2 color...
by mflmartin
Sat Jul 30, 2016 2:14 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

I didn't save the snippets that I normally use, but here's one that I recently used to generate data for a 2-bit font: import pygame colors = { (0, 0, 0, 255): 0, (102, 102, 102, 255): 1, (204, 204, 204, 255): 2, (255, 255, 255, 255): 3, } image = pygame.image.load("font.png") images = [] for tile_...
by mflmartin
Sat Jul 30, 2016 1:49 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

@mflmartin I'll try to explain. I hand crafted the [7,192,24,48...] array by drawing a smily on a 16x16 grid, split into groups of 8 pixels, then converted binary to decimal. 16 pixels wide fits into 2 bytes... Yeah, it seems labourious... hmmmmm. Thanks for the in depth explanation. It helps! I wo...
by mflmartin
Sat Jul 30, 2016 1:43 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 36878

Re: ssd1306 using I2C on the esp8266

I didn't save the snippets that I normally use, but here's one that I recently used to generate data for a 2-bit font: [/code] I see, so you were able to substitute the default text font? If so, how do you link the new font as the default? I wanted to do that, and use pixel fonts ( the ones that we...