Search found 13 matches

by AJB2K3
Fri Feb 07, 2020 8:57 pm
Forum: General Discussion and Questions
Topic: Rotary encoder.
Replies: 7
Views: 317

Re: Rotary encoder.

Stms?
Does that include the f103 aka the blue pill?
I'm starting to look at building around a stm
by AJB2K3
Sat Feb 01, 2020 7:56 pm
Forum: General Discussion and Questions
Topic: Rotary encoder.
Replies: 7
Views: 317

Rotary encoder.

Warning Newbie alert! Hi guys, I want to use and ESP 32 as a wireless controller for film editing. I have micropython reading the states of the two pins but I lack the understanding of working out the logic of getting micropython to tell me which way the rotary encoder is turning. I know there are 2...
by AJB2K3
Tue Jun 25, 2019 5:12 am
Forum: ESP32 boards
Topic: .BMP image issues.
Replies: 4
Views: 463

Re: .BMP image issues.

I believe the current port uses MP 1.10.
I haven't had time to return to this code as I have been busy understanding other aspects of MP code.
by AJB2K3
Sat Jun 01, 2019 7:21 am
Forum: ESP32 boards
Topic: Scrolling text help please.
Replies: 0
Views: 553

Scrolling text help please.

I'm working on a scrolling text demo on the M5Stack and this is my code from m5stack import * from m5ui import * clear_bg(0x222222) btnA = M5Button(name="ButtonA", text="ButtonA", visibility=False) btnB = M5Button(name="ButtonB", text="ButtonB", visibility=False) btnC = M5Button(name="ButtonC", text...
by AJB2K3
Thu May 16, 2019 4:57 pm
Forum: ESP32 boards
Topic: RuntimeError: Wifi Unknown Error 0x0005
Replies: 3
Views: 768

Re: RuntimeError: Wifi Unknown Error 0x0005

I'm not sure as I don't have enough knowledge so I'm guessing here but

Does ap.active need to be before ap.config?

I'm noticed errors popping up when code isn't in the correct order.
by AJB2K3
Tue May 14, 2019 5:50 am
Forum: ESP32 boards
Topic: .BMP image issues.
Replies: 4
Views: 463

Re: .BMP image issues.

So M5 is a fork of a fork of MicroPython, so this might not be the ideal place to find help. Maybe try http://community.m5stack.com/ But some ideas to try: - Can you try this with a simpler example? Maybe try doing this entirely on the REPL: - Use os.listdir to confirm that the file definitely exis...
by AJB2K3
Sun May 12, 2019 6:54 pm
Forum: ESP32 boards
Topic: .BMP image issues.
Replies: 4
Views: 463

.BMP image issues.

I'm struggling to get an image to show on the screen of an m5Stack. I have managed to reduce the file to 6Kb and it is supposed to be on the devices internal storage but it doesn't show on screen. This is my code. from m5stack import * from m5ui import * clear_bg(0x222222) btnA = M5Button(name="Butt...
by AJB2K3
Sat Apr 13, 2019 3:35 pm
Forum: General Discussion and Questions
Topic: RSSI Signal strength
Replies: 2
Views: 491

Re: RSSI Signal strength

RSSI is returned by the scan function s = network.WLAN() s.active(True) result = s.scan() The result is a list of tuples, one for each detected network. For entry x result[x][0] is the SSID and result[[x][3] is the RSSI in dBm. For example here my own network's SSID appears in result[1][0] so >>> r...
by AJB2K3
Thu Apr 11, 2019 5:49 pm
Forum: General Discussion and Questions
Topic: RSSI Signal strength
Replies: 2
Views: 491

RSSI Signal strength

Sorry in advance as i'm reading the documents and not understanding. I'm looking for a function that allows me to make an action something like If RSSI =x & ID = X then set ID X else ID = Y I think I can work out the ID side of things but I'm confused about the RSSI side of things. Can anyone point ...
by AJB2K3
Tue Mar 12, 2019 6:57 pm
Forum: ESP32 boards
Topic: Help getting i2c to work
Replies: 5
Views: 633

Re: Help getting i2c to work

I had to use

Code: Select all

from machine import Pin, I2C
i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000)
i2c.scan()
to get the scan to work on the esp32 I am using.(the pin numbers were different on my setup so you will need to change yours to match.