Search found 54 matches

by JumpZero
Wed May 01, 2019 7:39 am
Forum: ESP32 boards
Topic: ESP32 - ADC - Invalid Pin
Replies: 6
Views: 15636

Re: ESP32 - ADC - Invalid Pin

Hi!
MicroPython for ESP32 only allows ADC1 as mentioned here: On the ESP32 ADC functionality is available on Pins 32-39
Adafruit ESP32 Huzzah exposes ADC2 but also pins 32 & 33 for ADC1https://learn.adafruit.com/adafruit-huz ... er/pinouts It should be possible to use one of these.
by JumpZero
Sun Apr 28, 2019 1:14 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hi @pythoncoder thank you very much for your support. It works! :-) It took me sometime because I’m not comfortable enough with python class definition ( self and super() are still a bit obscure, but I learn!). I had to change some minor things in this DummyDisplay class and this took me time and tr...
by JumpZero
Fri Apr 26, 2019 2:08 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hello, @pythoncoder: I’d like to have bigger fonts so I’ve check your micropython-font-to-py repo as you suggested here above. But so far I had no success. I understand as per your documentation that when using the writer as in: wri = Writer(device, font) the device must inherit from framebuf But in...
by JumpZero
Thu Apr 25, 2019 12:48 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hi! @devnull: You can try this code, it's adapted from my 104x212 to your 200x200, maybe I've done some typo. I cannot test it since I don't have a 200x200 e-paper display. If yours is black only remove all lines with reference to red. It may give you a path to follow even if doesn't work out of the...
by JumpZero
Thu Apr 25, 2019 12:04 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hello, @pythoncoder: after several tests I cannot have the blit method doing a rotation. Even if the method accepts framebuffer of different formats, the problem seems to be, as you mentionned, the transposition of the coordinates. I tried many different combinations but none give the expected resul...
by JumpZero
Wed Apr 24, 2019 2:30 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hello I did it! It works :-) The method is a bit like you said @pythoncoder. I declare and use a framebuffer in landscape mode: format MONO_VLSB I write text in it, I can also use other framebuffer methods (line, rectangle, etc..) And when ready move it to another buffer to send to the e-paper. And ...
by JumpZero
Tue Apr 23, 2019 6:21 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Re: Waveshare e-paper display how to rotate?

Hi Peter, thank you for taking the time to answer. You are right the set_rotate method belongs to EPD class and won't rotate a buffer filled with framebuffer methods. Unfortunately there is no framebuffer rotate method, but there is a framebuffer method to write text, and there is no EPD method to w...
by JumpZero
Mon Apr 22, 2019 12:15 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 20
Views: 30176

Waveshare e-paper display how to rotate?

Hello, after 3 days struggling with that I come here to ask for help, if possible. I have a Waveshare ESP32 driver board + 2.13inch e-paper display (B model: 3 colors) I have successfully flashed Micropython : MicroPython v1.10-54-g43a894fb4 on 2019-02-07; ESP32 module with ESP32 I use mcauser Micro...
by JumpZero
Wed Feb 20, 2019 1:04 pm
Forum: ESP8266 boards
Topic: UART.readline() doesn't match the documentation
Replies: 9
Views: 6219

UART.readline() doesn't match the documentation

Hello, I'm playing with the ESP8266 uart and doing some communication tests with an arduino. The hardware is ok the communication works fine (of course I use a 2k2 + 1k voltage divider for Arduino 5V to ESP 3.3V) Correct me if I'm wrong but I notice that in the documentation here: https://docs.micro...
by JumpZero
Tue Jul 31, 2018 6:37 am
Forum: ESP8266 boards
Topic: "machine is not defined" error
Replies: 2
Views: 6063

Re: "machine is not defined" error

Hi if you write from machine import Pin then you only import Pin from the machine module if after that you write pin = machine.Pin(2) then of course uPython doesn't know the module machine and gives this error try to change to pin = Pin(2) another method: import the full machine module and use it im...