Search found 1710 matches

by Roberthh
Thu Nov 21, 2019 2:57 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 485

Re: xpt2046

I found a reason: Thw SPI baud rate is too high. For the XPT2046 it must not be more than 2000000 (2 MHz).
by Roberthh
Thu Nov 21, 2019 2:04 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 485

Re: xpt2046

tft_cs should be 1.
And yes, I tested that with another board too, dont't know whther it was ESP32 or ESP8266. But I can repeat that with an ESP32. You may also try the non-SPI version. 512/128 is a strange value pair.
by Roberthh
Thu Nov 21, 2019 11:58 am
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 485

Re: xpt2046

Looking at the technical Info you supplied, did ouy set TF_CS (GPIO14) to 1? otherwise the TFT is also selected.
by Roberthh
Thu Nov 21, 2019 10:28 am
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 485

Re: xpt2046

That's better. At least you receive something from the device. (512,128) is a little bit strange, as if the device is locked. Resistive touch screens require a decent push, more than a typical smart phone. So you may push with your finger nail. You could try to call raw_touch() instead of touch, whi...
by Roberthh
Thu Nov 21, 2019 7:05 am
Forum: MicroPython pyboard
Topic: Use of timers
Replies: 5
Views: 101

Re: Use of timers

The drawback using SPI is, that it may send word sized bursts of pulses, not a continuous stream of pulses. For many applications that does not matter, but ut has to be considered.
by Roberthh
Wed Nov 20, 2019 3:52 pm
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 6
Views: 95

Re: Can't get my NeoPixels to turn on

It could be a matter of the logic levels. How do you power the stick? Can you reduce it's voltage to 4V?
by Roberthh
Wed Nov 20, 2019 2:15 pm
Forum: Drivers for External Components
Topic: xpt2046
Replies: 15
Views: 485

Re: xpt2046

CS is loe activee. So you must set ts_cs to 0 to activate the touch controller.
by Roberthh
Wed Nov 20, 2019 7:12 am
Forum: ESP8266 boards
Topic: Cant get REPL on ESP8285
Replies: 5
Views: 825

Re: Cant get REPL on ESP8285

Can you hook up a logic analyzer or Oscilloscope to determine a possible baud rate. It may not be a standard one. The standard ESP8266 for instance starts at a speed of 74880 baud, just to switch then to 115200 baud with the start of Micropython. With Windows/Putty, you can set non-standard baud rat...
by Roberthh
Tue Nov 19, 2019 5:14 pm
Forum: ESP8266 boards
Topic: Cant get REPL on ESP8285
Replies: 5
Views: 825

Re: Cant get REPL on ESP8285

The rubbish at the end could be data sent at a different baud rate. can you determine it?
At which baud rate is the initial part running?
by Roberthh
Sat Nov 16, 2019 3:47 pm
Forum: ESP8266 boards
Topic: ESP-01 I2C
Replies: 2
Views: 252

Re: ESP-01 I2C

GPIO0 is Pin(0), GPIO2 is Pin(2). Both must not be 0 upon boot for normal opeartion, but pulling them up for I2C is no problem. So your code snippet would e.g. be from machine import Pin, I2C scl_pin = Pin(0) sda_pin = Pin(2) i2cbus = I2C(scl=scl_pin, sda = sda_pin) I used scl_pin and sda_pin to poi...