Search found 34 matches

by uxhamby
Wed Mar 18, 2020 8:25 pm
Forum: General Discussion and Questions
Topic: UART ?
Replies: 2
Views: 2187

UART ?

Hi, I am trying to talk to a serial display. I only need to TX to it, there is no RX involved. Is it ok to set up the UART as follows: uart.init(9600, bits=8, parity=None, stop=1, tx=4) # init parameters with only the TX pin specified? Or do I need to use TX/RX as pairs? Thanks, Brian H. Uxbridge Ont
by uxhamby
Mon Feb 03, 2020 10:26 pm
Forum: General Discussion and Questions
Topic: stumped
Replies: 3
Views: 2115

Re: stumped

Yes, this has made all the difference.

Code: Select all

BlueLed.value(not BlueLed.value())
Thanks jimmo, one and all !!

Brian H.
by uxhamby
Mon Feb 03, 2020 8:26 pm
Forum: General Discussion and Questions
Topic: stumped
Replies: 3
Views: 2115

stumped

Dear sage denizens of the Micropython forums, Likely I am missing something simple. I have been playing around with a bit of code to exercise an old piece of hardware that I have here. Nothing too fancy, but I am getting an error that currently has me stumped. My code 'test3.py' currently: #!/usr/bi...
by uxhamby
Thu Jan 16, 2020 6:26 pm
Forum: General Discussion and Questions
Topic: Partial mac address ?
Replies: 4
Views: 2788

Re: Partial mac address ?

Yes, I understand now. Thanks!

Brian H.
by uxhamby
Thu Jan 16, 2020 5:46 pm
Forum: General Discussion and Questions
Topic: Partial mac address ?
Replies: 4
Views: 2788

Partial mac address ?

MicroPython v1.12-58-g7ef2f6511 on 2020-01-12; ESP32 module with ESP32 OK, so I am reading the docs at: https://docs.micropython.org/en/latest/library/network.WLAN.html bottom of the page where they suggest that print(nic.config('mac')) should return the mac address of the 'nic' interface. When I ru...
by uxhamby
Fri Dec 27, 2019 4:54 pm
Forum: ESP32 boards
Topic: Hall Effect sensor?
Replies: 6
Views: 5464

Re: Hall Effect sensor?

DJShadow1966 wrote:
Sat Dec 21, 2019 6:28 am
Hello

Code: Select all

esp32.hall_sensor()     # read the internal hall sensor
Taken from http://docs.micropython.org/en/latest/e ... ckref.html

Regards Mike
Thanks.
by uxhamby
Sat Dec 21, 2019 12:05 am
Forum: ESP32 boards
Topic: Hall Effect sensor?
Replies: 6
Views: 5464

Hall Effect sensor?

All ESP32 chips have a built-in hall effect sensor, used to measure a prevailing magnetic field. As I understand things, it is inherent to the chip itself and is not a peripheral, so presumably the field must be local to the chip. In the Arduino IDE, I am told, it is straightforward to measure the o...
by uxhamby
Thu Nov 21, 2019 8:22 pm
Forum: Hardware Projects
Topic: Larger fonts on SSD1306 OLED displays
Replies: 23
Views: 175959

Re: Larger fonts on SSD1306 OLED displays

Thanks Peter,

Yes, I see the distinction now. Is there a worthy tutorial somewhere which documents the procedure?

Cheers,

Brian H.
by uxhamby
Thu Nov 21, 2019 8:09 pm
Forum: General Discussion and Questions
Topic: printing an ASCII character by number
Replies: 1
Views: 2776

printing an ASCII character by number

OK, so here is one, to do with printing an ASCII character by number, that I don't understand and could use some advice with: If, at the repl >>> command prompt, I do: t=b'22.5';t=t.decode();d= chr(176) ;T="Temp: "+t+d+"C";print(T) OR t=b'22.5' t=t.decode() d= chr(176 ) T="Temp: "+t+d+"C" print(T) R...
by uxhamby
Tue Nov 19, 2019 6:39 pm
Forum: Hardware Projects
Topic: Larger fonts on SSD1306 OLED displays
Replies: 23
Views: 175959

Re: Larger fonts on SSD1306 OLED displays

Thanks for the quick responses. You can replace ssd1306_setup.py to use the working code that you already have that creates the i2c and oled instances. Yes, I wondered about that. Cheers! You need to implement fonts as frozen bytecode to conserve RAM. That is the reason for converting them to Python...