Search found 33 matches

by hybotics
Wed Oct 27, 2021 9:41 am
Forum: Programs, Libraries and Tools
Topic: Flashing micropython to NUCLEO-L476RG
Replies: 0
Views: 893

Flashing micropython to NUCLEO-L476RG

Hi, I have the file NUCLEO_L476RG-20210902-v1.17.dfu which I would like to flash to my NUCLEO-L476RG board. However, I think I can only flash a .bin file. I flashed a *.bin from MBED and it worked great! How can I convert this *.dfu file to a *.bin I can flash to my board? The command I use to flash...
by hybotics
Sat Aug 21, 2021 8:43 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 464960

Re: Teensy 4.0 & 4.1

Roberthh wrote:
Sat Aug 21, 2021 6:38 pm
You can alway add lib to sys.path in your main.py.

import sys
sys.path.append("/lib")
That is not working.

8-Dale
by hybotics
Sat Aug 21, 2021 6:30 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 464960

Re: Teensy 4.0 & 4.1

Hi, I just built and deployed the latest v1.16 version of Micropython to a Teensy4.0. I2C seems to be working. I can do i2c.scan() and detect all devices on the bus. # Import all board pins. from machine import SoftI2C, Pin TP_SDA = Pin(18) TP_SCL = Pin(19) # Create the I2C interface. i2c = SoftI2C(...
by hybotics
Wed Jul 28, 2021 1:58 am
Forum: Programs, Libraries and Tools
Topic: HT16K33 Display Library
Replies: 0
Views: 1338

HT16K33 Display Library

I have been working on my Micropython HT16K33 library . I added a feature that allows automatically rounding an input number. It will round up to the point where there is no decimal part in order to fit it on a display. There is the same ability to specify the number of decimal places to round to. F...
by hybotics
Mon Jul 19, 2021 8:01 pm
Forum: General Discussion and Questions
Topic: No try_lock() in machine.I2C() or machine.SoftI2C()
Replies: 2
Views: 2040

No try_lock() in machine.I2C() or machine.SoftI2C()

Hello, I am porting Adafruit's HT16K33 library to Micropython and am making very good progress! However, there is one gotcha in the Adafruit code, which is a (theirs) board.I2C.try_lock(). It is used to tell when the i2c bus is available. Could this be easily added to Micropython's machine.SoftI2C()...
by hybotics
Sat Jul 17, 2021 12:10 am
Forum: Programs, Libraries and Tools
Topic: Porting a library from Circuitpython
Replies: 7
Views: 3265

Re: Porting a library from Circuitpython

Hi, I am still having problems with my imports, and I do not understand why. Why does Micropython not allow me to do something like from ht16k33.matrix import HT16K33 I really do not understand this. No matter what I do. I can not seem to get my imports right. I have attached an archive with the exa...
by hybotics
Wed Jul 14, 2021 4:32 pm
Forum: Other Boards
Topic: tinyPico - OSError: [Errno 19] ENODEV
Replies: 1
Views: 3171

tinyPico - OSError: [Errno 19] ENODEV

Hi, I have a tinyPico with Micropython and am getting the dreaded Error 19. There is nothing connected to the tinyPico and I have already erased flash and reflashed Micropython to the board. This did not have any effect. I have attached the complete library I am working with now - hybotics_ht16k33 i...
by hybotics
Tue Jul 13, 2021 11:49 pm
Forum: Programs, Libraries and Tools
Topic: Porting a library from Circuitpython
Replies: 7
Views: 3265

Re: Porting a library from Circuitpython

So something is not as it seems. I'd check exactly what is being imported by putting a print statement as the first line in each file I found the problem! There were TWO copies of the library - one in the root directory and the other (correct) on in /lib. I feel so stupid right now. Micropython was...
by hybotics
Tue Jul 13, 2021 2:14 pm
Forum: Programs, Libraries and Tools
Topic: Porting a library from Circuitpython
Replies: 7
Views: 3265

Re: Porting a library from Circuitpython

The problem I am having is that the import statements work inside the REPL, but they throw errors when in my code. This what I am trying to figure out. Here is an updated archive with a new test program - import_test.py I believe. All it has are various forms of import statements related to my libra...
by hybotics
Tue Jul 13, 2021 1:39 am
Forum: Programs, Libraries and Tools
Topic: Porting a library from Circuitpython
Replies: 7
Views: 3265

Porting a library from Circuitpython

Hello, I am working on porting some libraries from Circuitpython and updating the ht16k33 library that currently exists for Micropython. I do not understand why the import statements do not work within the code file but they will work fine in the repl. I need some assistance here. What am I missing?...