Search found 18 matches

by danhalbert
Thu Aug 25, 2022 7:06 pm
Forum: General Discussion and Questions
Topic: Storing global configuration settings
Replies: 5
Views: 20399

Re: Storing global configuration settings

CircuitPython recently added `.env` (dotenv) support: https://docs.circuitpython.org/en/lates ... index.html, which we use to setup credentials for the new web workflow. It is meant to be accessible outside the VM if necessary.
by danhalbert
Sun Jul 31, 2022 12:31 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 442809

Re: Teensy 4.0 & 4.1

Adafruit keeps a TOML database of flash chip characteristics here: https://github.com/adafruit/nvm.toml. This is used in the CircuitPython to generate C struct compile-time information to support the various chips used on various boards, especially their QSPI characteristics and idiosyncrasies. I do...
by danhalbert
Fri May 20, 2022 2:24 pm
Forum: ESP32 boards
Topic: Trying SSD1305 display from adafruit
Replies: 7
Views: 4278

Re: Trying SSD1305 display from adafruit

Adafruit sells ssd1305 displays and their libraries are circuitpython/arduino. They have circuitpython only running on their own boards. Maybe ssd1305 is their turf. At the moment, CircuitPython builds are available for 301 boards, of which 72 are Adafruit boards. The PyBoard is one of the builds. ...
by danhalbert
Thu Apr 21, 2022 12:26 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 442809

Re: Teensy 4.0 & 4.1

circuitpython is a GitHub fork of micropython , and you can't create multiple forks of a repo, even transitively. But since the repos are related, you should be able to make the micropython repo be a git remote of your current clone. git remote add micropython https://github.com/micropython/micropy...
by danhalbert
Fri Apr 08, 2022 3:22 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 442809

Re: Teensy 4.0 & 4.1

That sounds strange, given that the iPod is an old product and Apple usually does not care a lot for long term legacy support. License fees are more likely a reason. I don't think there are license fees: it's a usb.org spec. I think there is not a demand for it, and Apple still does not care about ...
by danhalbert
Fri Apr 08, 2022 12:31 am
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 442809

Re: Teensy 4.0 & 4.1

MTP would be great if Apple provided support. It's sad they didn't, for marketing (iPod) reasons. We certainly considered MTP for CIrcuitPython, but no good macOS support was a big stumbling block.
by danhalbert
Tue Oct 19, 2021 3:07 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino rp2040 connect wifi through SPI
Replies: 4
Views: 2895

Re: Arduino rp2040 connect wifi through SPI

A side note re CircuitPython and its fork:

CircuitPython has diverged from MicroPython in terms of I/O modules, due to different goals. But we aim to keep up with the core language parts of MicroPython. We recently merged the changes up to MicroPython 1.17, and plan to keep up with the releases.
by danhalbert
Sat Jul 17, 2021 2:05 pm
Forum: Raspberry Pi microcontroller boards
Topic: How to read Map() function in micropython?
Replies: 11
Views: 25775

Re: How to read Map() function in micropython?

Another slightly different approach is taken by CircuitPython's map_range() function That's from the SimpleIO library, which is a miscellaneous collection of things. We recently made a new library, SimpleMath, with a few different range and constrain functions: https://github.com/adafruit/Adafruit_...
by danhalbert
Tue Mar 23, 2021 8:04 pm
Forum: Raspberry Pi microcontroller boards
Topic: RP2040 Pico and i2c problem
Replies: 8
Views: 9613

Re: RP2040 Pico and i2c problem

Do you have any suitable code for the Pico to get this bitbanging running (I'm a newbie in this) I believe you should be able to use SoftI2C . But a MicroPython user would know more. import utime from machine import Pin,SoftI2C import tcs34725 sda = Pin(16) scl = Pin(17) i2c = SoftI2C(0,sda=sda,scl...
by danhalbert
Thu Mar 04, 2021 2:55 pm
Forum: Raspberry Pi microcontroller boards
Topic: RP2040 Pico and i2c problem
Replies: 8
Views: 9613

Re: RP2040 Pico and i2c problem

I've been having issues with tcs34725 sensor, too. Did you get the TCS34725 to work? I've been working on the I2C support for CircuitPython. We do the same workarounds MicroPython does: short I2C writes need to be bitbang'd because the hw won't do them. Most sensors now work, but the TCS34725 still...