#circuitpython-dev

1 messages ยท Page 182 of 1

idle owl
#

0.4

stuck elbow
#

do you have a scope?

idle owl
#

It's not on, should it be on? Or the switch isn't in the "on" position anyway

stuck elbow
#

it should be on

idle owl
#

ok checking again

#

3.3

stuck elbow
#

so power is good

#

and tp12 and tp14 will be 3.3V too with it on

tidal kiln
#

TP14/TP12 should read that now also

idle owl
#

Same for TP14

#

yah

#

TP12

#

@stuck elbow I have a Saleae.

#

I do not have a scope.

stuck elbow
#

can you see C4 or C5 near the usb port?

idle owl
#

yep

stuck elbow
#

can you measure those against the ground?

#

actually, one end of those is ground, so you can just measure across them

manic glacierBOT
idle owl
#

200mV

stuck elbow
#

interesting

idle owl
#

It's difficult to get them right on those, they're tiny

#

it could be wrong

stuck elbow
#

yeah

#

is that with the usb connected?

idle owl
#

No

#

connect it?

stuck elbow
#

yes, try with usb connected

idle owl
#

I got 3.3v I think

#

On both

#

only momentarily but it was there.

#

Ok moved everything around and am able to keep 3.3 V showing up.

tidal kiln
#

where does CP2104_P3V3 tie into P3V3?

stuck elbow
#

it doesn't

#

it's from the regulator on the usb to serial

#

that means the usb to serial works, so the usb device should appear

tidal kiln
#

oh yeah, it's an out on the CP2104

stuck elbow
#

maybe you need the drivers?

idle owl
#

Do I need drivers or something?

stuck elbow
#

yes

idle owl
#

Ok installed, now what

stuck elbow
#

you should see a usb device

#

and be able to connect to the console

bronze geyser
#

@slender iron wow - i'm around (re: EIC). Also - if you live on the Eastside i could buy you gifts of cake and coffee....

stuck elbow
#

with screen or whatever you use for that

idle owl
#

It's not showing up. It's supposed to show up like any of the CP microcontroller boards?

#

in /dev/ I mean

tidal kiln
#

charge only USB cable?

idle owl
#

Nope. Use it daily for data.

#

Trying the one I just unplugged from a Feather M4.

#

Nope

stuck elbow
#

yeah, it's supposed to show up

#

do you heave lsusb in your system?

idle owl
#

I have no idea

stuck elbow
#

open a terminal and type it?

idle owl
#

command not found

stuck elbow
#

:(

#

@idle owl one more thing, can you measure the voltage on the 2nd pin of the ESP32 module?

#

counting from top left

idle owl
#

In my system report: ```CP2104 USB to UART Bridge Controller:

Product ID: 0xea60
Vendor ID: 0x10c4 (Silicon Laboratories, Inc.)
Version: 1.00
Serial Number: 0177E8AF
Speed: Up to 12 Mb/sec
Manufacturer: Silicon Labs
Location ID: 0x14442100 / 17
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0```

#

So the OS sees it.

stuck elbow
#

ok, os you probably have a new device in /dev with some silly name

tidal kiln
#

dmesg

idle owl
#

This shows up when I unplug it and plug it in: Starting poll type 4 Restarting poll type 4 Command 0x2 completed. inCount: 2 data:0x5Command 0x1 completed. inCount: 2 data:0x1001Command 0x16 completed. inCount: 2 data:0x40e0Command 0xa completed. inCount: 2 data:0x0Command 0xb completed. inCount: 2 data:0x0Command 0x12 completed. inCount: 2 data:0xffffCommand 0x13 completed. inCount: 2 data:0xffffCommand 0xf completed. inCount: 2 data:0x1135Command 0x10 completed. inCount: 2 data:0x1135SmartBattery: finished polling type 4

stuck elbow
#

smart battery, eh

bronze geyser
#

I just got an Atmel SamD21 xplained. I am too excited. is it possible to load circuitpython?

stuck elbow
#

yes

bronze geyser
#

@stuck elbow thank you. is there a tool (like on esp i used esptool.py...then on feather something else...?)

stuck elbow
#

yes, it's called bossa

bronze geyser
#

oh right...thank you bossa. yah. That's what i used for feather.

stuck elbow
#

I think we have a howto for using it somewhere

bronze geyser
#

i've used bossa before. thank you very much

#

i couldn't remember...boosaah bookah...hmmm...

stuck elbow
#

you might need to make a new board definition to get access to all the pins you need

bronze geyser
#

@stuck elbow thank you. i'm not sure how to do this so i'll start splashing around in the shallow end of this pool...then probably get stuck...then...get frustrated...then look at flowers...then all seems ok again.

stuck elbow
#

but just for testing the arduino zero firmware would probably work

idle owl
#

@stuck elbow Second pin is 0. With or without USB plugged in, with the power switch on.

#

Measure it with ground right?

stuck elbow
#

yeah

#

that's the power for the esp32

idle owl
#

Oh.

stuck elbow
#

try C7 and C8

slender iron
#

@bronze geyser I'm back from lunch and can hop into voice chat

idle owl
#

C7 is 0.9V. C8 is same.

bronze geyser
#

@slender iron sure <gulp> um... i haven't done this fancy voice chat yet. please bear with my technical difficulties...

idle owl
#

@bronze geyser @slender iron Mind if I listen in?

bronze geyser
#

@idle owl ooh - how cool is THAT?

stuck elbow
#

should be 3.3V :(

slender iron
#

my typing is sloooooow

idle owl
#

I was able to get 0.9 consistently, so I think I was able to get the probes in the right place.

stuck elbow
#

@idle owl considering you got 3.3V for the same bus somewhere else, I would look for scratches and broken traces

idle owl
#

It all looks pristine ๐Ÿ˜•

#

I'll look closer

#

@bronze geyser @slender iron Reload Discord. I can hear you both.

slender iron
idle owl
#

@bronze geyser There's a little phone looking icon next to "Voice Connected" below the chat, you click that to disconnect.

solar whale
#

@idle owl on a mac the devices wil be /dev/tty.usbmodemxxxxx

bronze geyser
#

@idle owl as always - many thanks. These new fangled phones...i keep looking for a rotary...but alas...

idle owl
#

Np, it's not really that clear. ๐Ÿ˜ƒ

#

RotaryMobile. Someone should be on it already.

bronze geyser
#

@idle owl oh - puuulllleeeeaaaeeee it's clear...um....wait....i can't see anything.....umm..

stuck elbow
#

there are iphone accessories with a rotary dial and old-school handset

idle owl
#

See? I knew it

stuck elbow
#

the hanset is actually nice

bronze geyser
#

and yet, all these smart people can't figure out how to get folks off the streets and into a home...

#

what if these amazing folks harnessed their awesome powers...not for rotary phones...oh, maybe rotary phones...but dialing got them a place to live...

#

oh wait. Sorry...wrong forum for my rant.

#

Hey - wait just a second. Instead of making Rosy dah riveteeerr w/ 3D community parts...we'll build housing like a lego kit. Yah...we'll 3d print the ovens out of steel filament...

#

oohh...then, we'll 3d print all the food.

#

the 3d printers will run off solar or of course we all will generate electricity on exercise bicycles...

stuck elbow
#

can you 3d-print tinfoil?

bronze geyser
#

for a hat? Why not!

#

what can't we 3d print? I mean...let's just say it...HOW HARD CAN IT BE?

stuck elbow
#

as hard as you make it

bronze geyser
#

we can start simple....like 3d printing algae that will soak up all this here CO2. Then we'll take the CO2 and release it near plants. I find CO2 enhances plant growth by oh - 25%

stuck elbow
#

you know what is the best at 3d-printing algae?

#

other algae

#

they 3d-print them out of COโ‚‚ too

bronze geyser
#

oh now THAT is cool. Other than "google is my friend" any reading or such you'd recommend?

stuck elbow
#

on how algae produce more of themselves?

bronze geyser
#

yah - that is probably a dumb question...probably something "I should have learned in 5th grade..." but other than the fact algae soaks up CO2 like a towel soaks up my spilt milk, i don't know much.

stuck elbow
#

well, it's Biology 101

#

kinda wide topic

bronze geyser
#

yah - after asking the question. I thought so. I apologize.

tidal kiln
#

@idle owl @stuck elbow maybe remove power and switch to continuity test? between ESP-32 pin 2 and TP12/14?

prime flower
#

@tidal kiln were you the one using the ADS1x5 with Blinka?

tidal kiln
#

@prime flower don't think so. i just did some updates to the CP library for the ADS1x15. but didn't do any blinka checkout.

prime flower
#

ah, @slender iron you around?

#
  Using cached https://files.pythonhosted.org/packages/b7/a4/afc8a046d836dcbf0e53e6d062d576a6fd30ef20e19e0bc3eccf5ef16ae2/adafruit-circuitpython-ads1x15-0.4.0.tar.gz
Collecting Adafruit-Blinka (from adafruit-circuitpython-ads1x15)

 Could not find a version that satisfies the requirement Adafruit-Blinka (from adafruit-circuitpython-ads1x15) (from versions: )
No matching distribution found for Adafruit-Blinka (from adafruit-circuitpython-ads1x15)```
tidal kiln
prime flower
#

nope. tried pip install adafruit-circuitpython-ads1x15==0.3.1 to use the older one w/same errors

tidal kiln
#

dunno then. let me know if i broke something though.

prime flower
#

will do

solar whale
#

@prime flower I just installed it on my RPi - no problem version 0.4.0

prime flower
#

@solar whale really? Weird...with just a standard pip install? 0_o

#

which version of blinka are you running?

solar whale
#

pip3 install adafruit-circuitpython-ads1x15

#

ah -- needs pip3

#

pip will default to python2

#

adafruit-blinka 0.1.9

prime flower
#

ah, alright. that's annoying (as I just tore down my pi setup to bring home)

#

oh btw @solar whale

tulip sleet
#

@indigo wedge basic Bluetooth q: are any API's for BLE going to be similar to regular Bluetooth? Should we have blueio (instead of bleio) because there are some things that can be shared? nrf board says it does regular Bluetooth, but does it make sense to support Bluetooth 5?

prime flower
#

new release of the io client incl. lots of new features and blinka compatibility examples to start out!

solar whale
#

yup - just installed adafruit-io - have not tred it yet

prime flower
#

make sure you're using version 2, I havent fully got pypi to update

#

working on that tomorrow

tulip sleet
#

pypi takes about 5 mins to update, in my limited experience

solar whale
#

I am concerned that it says it need python3.6 -- I only have 3.5 installed

prime flower
#

you don't NEED 3.6, but blinka has the same dependency

solar whale
#

oh yeah -- my update only got 1.1.1

#

pip3 install adadfuit-io installs 1.1.1

prime flower
#

until i get it goin fullspeed tomorrow, try pip install adafruit-io==2.0.0

solar whale
#

pip3!!

prime flower
#

that's from their site but yeah

#

"D

solar whale
#

nope -- that fails - I can clone it and use setup.py -- if I get to using it tonight -- unlikely -- I'll check pypi tomorrow.

prime flower
#

yeah, def use setup.py for now...thought I had it

tidal kiln
#

@tulip sleet is that CIRCUITPY sometimes-read-only-through-GUI behavior any better in 18.04?

prime flower
#

it'll be fixed tomorrow

tulip sleet
#

@tidal kiln no diff in Ubuntu I've seen. That means it might be damaged. You can try dosfsck /dev/sdxx and see whether it's just the dirty bit or something worse

tidal kiln
#

@tulip sleet dirty bit was set, but no change clearing it. also, it always works through CLI, just the GUI gets buggy sometimes

#

was hoping maybe 18.04 going to new UI might have helped with that

raven canopy
#

nRF52840DK arrived today. now i get be lost on another topic. yay! ๐Ÿ˜†

idle owl
#

Happy birthday, @slender iron! ๐ŸŽ‚

ruby atlas
#

@raven canopy my adabox arrived today. just in time for summer vacation - and my kids are interested!

raven canopy
#

@ruby atlas ๐ŸŽ‰ i wish i could get my kid interested...

wraith tiger
#

@tidal kiln I just ran into that issue with my Feather M0 Express and what fixed it was:
import storage
storage.erase_filesystem()

ruby atlas
#

@raven canopy how old is your kid?

torpid goblet
#

@slender iron yes, that is where I got the idea for updating a vagrant builder. "Vagrant is software that is designed to make it easy to set up and use pre-configured virtual machines. There are potential stumbling blocks. This guide will include Vagrant information in the future." I figured working on the builder would be a good change to get familiar with circuitpython internals while doing something that might potentially be useful.

raven canopy
#

@ruby atlas 13. and a (waning) comic book, video game nerd... ๐Ÿคท

ruby atlas
#

My 7 and 10yo girls are video game nerds, and the 10yo loves books of all kinds, incl graphic novels. i bet she'll jump on comics real soon. the 7yo is just starting reading strongly enough to see.

#

Oh, and about to see how they re with regards to board and card came nerdiness ๐Ÿ˜ƒ

#

Other than pokemon.... which they're already nerdy about.

slender iron
#

๐Ÿ˜ƒ

raven canopy
#

@ruby atlas yeah, we went through a brief (but un-proportionally expensive) pokemon phase.

#

@slender iron HBD! ๐ŸŽ‚

ruby atlas
#

oh my, they're fighting like sisters.

#

that is to say, loudly, and high pitched.

#

ooh slammed door.

idle owl
#

Ooh

ruby atlas
#

the one that slammed the door then did a lalalalalalala type noise.

#

so funny.

#

(must not visibly laugh)

raven canopy
#

and working during AAE... and windows strikes again... sh not available, so i get to figure out how i want to setup this workflow for adabot and patching. ๐Ÿค•

timber mango
#

@river quest there is a difference between circuitpython and micropython?

slender iron
raven canopy
#

@slender iron question for adabot_patch (still can't decide how to refer to it). would a (1)adabot/patches directory, (2) submodule, or (3) just local-to-user be preferable for containing patch files? having still not run adabot (and, well...windows), my original idea of (1) is going to get kludgey I think. submodule is easier to update on it's own, without pulling in the whole repo. i can't think of pros/cons for local-to-user, really, since I'm not sure if there is a desire to "fire and forget" and have adabot run it standalone (like the bundle update).

slender iron
#
  1. seems better since it documents it
raven canopy
#

so you'd like to have the commit history on adabot, vs submodule? k. i'll try to at least give a good starting point. smarter people can un-kludge. ๐Ÿ˜„

slender iron
#

ya

timber mango
#

@idle owl thank you ๐Ÿ˜„

abstract pawn
#

Is the HUZZAH32 (feather) a good target for Circuit Python 3.0.0?

raven canopy
#

@abstract pawn unfortunately, no. ESP8266 is only supported at this time. There is micropython support for the ESP32, but it may still be in development (i think it is at least running though).

pastel patio
#

anyone using crypto on M4 feather?

abstract pawn
#

That's OK. I have a HUZZAH classic. I can upgrade to bluetooth later.

raven canopy
#

@pastel patio i haven't heard of anyone doing it, but that doesn't mean it hasn't been done. i'm not even sure if we have any "built-in" support for crypto. I scroll past the AES peripheral in the datasheet; that is one realm i don't have the math for... ๐Ÿ˜„

pastel patio
#

supposedly crypto is built in to M$, but no one seems to know anything about how to access it

#

M4 that is

raven canopy
#

yeah its there. it has both an AES & Public Key peripheral. I skimmed the AES once; looks like a fair amount of work to implement.

#

chapters 42 & 43 in the sheet, if you want to take a peek (and crack at it?).

pastel patio
#

got a link to the doc?

#

I assume your referring to the data sheets?

raven canopy
#

still in a stand-alone environment, but ๐ŸŽ‰

repo dir: /home/vagrant/source/Adafruit_CircuitPython_ADS1x15

patch dir: /home/vagrant/source/adabot_patch_test/patches/0001-updated-CoC.patch

Already Applied

repo dir: /home/vagrant/source/Adafruit_CircuitPython_AM2320

patch dir: /home/vagrant/source/adabot_patch_test/patches/0001-updated-CoC.patch

Applying Patch...
pastel patio
#

ok AES looks like a tough nut to crack

#

I looked at the docs

raven canopy
#

yeah. my curiosity ran away quickly... ๐Ÿ˜†

pastel patio
#

the other project I heading towards is an M4 hand held game console. I ordered a M4 feather today, joystick, 5-way switch etc.. I have both an Arduboy and MakeBuino but I was looking for more RAM, better display and python.

#

I knojw that this is on the horizon but no telling... it be a year from now till it sees daylight. https://blog.adafruit.com/2018/05/25/we-are-making-a-circuitpython-based-gaming-platform-adafruit/

Adafruit Industries - Makers, hackers, artists, designers and engineers!

Hi hi folks, with so many robots going on we wanted to take a little break and design some new hardware. This is a spin on our 2.4โ€ณ TFT Featherwing that expands it into a full gaming platformโ€ฆ

raven canopy
pastel patio
#

I could probably breadboard it pretty easily. Just need to pick up the TFT.

#

Is there a dev group for it?

raven canopy
#

how do you mean?

pastel patio
#

I guess I need to find the current API in the github and see where they're at with it. Most of the draw functionality is already in circuit python. For game dev, functions like collision detection, basic physics, easing are very helpful.

raven canopy
#

yeah. it's still early days. they're (i haven't gotten involved yet) still discussing higher design stuff (API, namely) and getting sound updated. tannewt (project lead) would probably be the best to talk about any and all of that. we have a weekly meeting on Mondays @ 2PM Eastern, if you'd like to join.

#

forgot to mention. the meeting is here on Discord in the voice channel.

pastel patio
#

I doubt I'll be able to attend the meetings as I work during the day (systems engineer). I could devote time in the evening. Before i made the switch I.T. , I did surface mount microprocessor repair for 10 years in the process automation field. I've written several games over the years. Actually my first computer was a Kim-1, so I started witting code in machine language.

raven canopy
#

totally understand. i'm lucky that i can usually carve out the time at the day job to attend. we're around here most of the time, so the meeting isn't necessarily crucial.

#

and..time for me to get off. have a good one! ๐Ÿ’ค

pastel patio
#

you too

#

thanks

manic glacierBOT
#

I'm not sure what APIs you have already, but having basic physics, movement, basic collision detection and easing functions would go a long way to adoption. I used a lot of game engines and honestly those functions are not hard to write from scratch, at least the basics. I'm not talking about box2d physics, pixel perfect collision or anything that would over tax the MCU, just the basics.

I've personally found this site helpful (note, the code is processing not python but is easy to underst...

#

When following the digitalio example on https://circuitpython.readthedocs.io/en/latest/shared-bindings/digitalio/__init__.html I get the following error:

from board import *
import digitalio

pin = digitalio(D14)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'D14' is not defined

I get the same error for any value of Dnn

Environment:
Clean install of CircuitPython 3.0.0 w. 3.0.0-beta Bundle
Target: Huzzah
Install Met...

indigo wedge
#

@tulip sleet nRF only supports BLE, it doesn't support Bluetooth Classic. I don't have as a much experience with BT but from what I understand they are very different, BLE has Services with Characteristics and Descriptors and BT has Profiles which are more like network sockets. I think if we ever had a port with BT we would have a new module for that.

indigo wedge
#

omigosh @slender iron happy bday ๐Ÿฐ

slender iron
#

its this weekend ๐Ÿ˜ƒ

indigo wedge
#

ah, that's a bit away still

#

but anyway ๐Ÿ˜„

scarlet fjord
#

is there a way to have while True run as fast as it can, but have a secondary thing run on a time.sleep()?
like...

while True:
    do thing

also:
    do other thing
    time.sleep(1)

?

#

also is there a way to see the polling rate of the feather USB HID function, or otherwise overclock the polling rate?

#

i ask because afaik the default polling rate of an usb device is like 100-150hz, but i have a lot of peripherals that can increase that to 1000hz to reduce latency and i am interested in also doing this ๐Ÿ˜…

stuck elbow
#

the trick is to use time.monotonic()

#

basically you run the while loop as fast as you can, but inside it check the current time, and every so often execute your additional code

#

to do that you save in a variable the time when you last ran your code, and then compare it with the current time

scarlet fjord
#

ah ok! so time.monotonic() will return the current time?

stuck elbow
#

it will return the number of seconds since power on

#

or something like that

#

but you are only interested in difference, so it doesn't matter from what moment it is counting

#

the typical code looks something like this:

import time

last_check = time.monotonic()
while True:
    # do something here
    current_time = time.monotonic()
    if current_time - last_check > 0.5:
        last_check = current_time
        # do something else
scarlet fjord
#

cool, thanks ๐Ÿ˜„

stuck elbow
#

of course you can have several of those in a single loop, with different intervals

#

there is also a nicer way to do this with async and await, but that's a bit more advanced

manic glacierBOT
manic glacierBOT
manic glacierBOT
scarlet fjord
#

loool why am i like this
theres a circuitpython page in those docs ๐Ÿ˜…
i guess i got to the arduino setup and panicked ๐Ÿ˜›

manic glacierBOT
manic glacierBOT
wraith tiger
raven canopy
#

@wraith tiger I thought about going the WSL route, but it's easier to just use the vagrant VM for me. If only WSL could get folder sharing to work. ๐Ÿค”

stuck elbow
#

and posix filesystem semantics...

raven canopy
#

@wraith tiger and to further clarify, it was an issue with the sh CPython module not being available on Windows, not necessarily being able to run bash/sh

main meteor
#

Another option for bash on windows is git bash, which (naturally) includes a git client.

#

I'm personally fond of the VM route, as you can share the whole VM with other people (even people running other operating systems).

#

Sort of like venv on steroids.

cyan fox
#

Hello, I encountered some issues when installing CircuitPython on a Raspberry Pi to control an RFM9x. I followed the instructions on this page (https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi) and ran the example code in this repository (https://github.com/adafruit/Adafruit_CircuitPython_RFM9x/blob/master/examples/rfm9x_simpletest.py). However, it produced an error complaining that device.write() got an unexpected keyword argument end.
I think for some reasons these files (https://github.com/adafruit/circuitpython/tree/2.x/shared-bindings/busio) are not installed and instead a different busio.py that comes with pip install adafruit-blinka is used.
Any suggestion is appreciated, and please let me know if this is not the right place to ask this ๐Ÿ˜ƒ

solar whale
#

@cyan fox I don't think the rfm9x driver is compatible with adafruit-blinka - yet. At least, it was not last week. I was able to get it working with some changes to the SPI usage, but it was just a test. The blinka - spi interface is still under development.

cyan fox
#

Thanks, this is exactly the problem I have. I will try to remove the keywork end and see if it works.

solar whale
#

@cyan fox you'll have to rewrite some of the calls to send the correct length messages.

cyan fox
#

ok, thanks for the reminder.

tulip sleet
#

@slender iron Could you take a look at this diff of gc.c between current CPy and recent MicroPython? Is is compatible with your GC changes? I am interested in the first set of the changes, not the MICROPY_ENABLE_PYSTACK part, which is part of this PR (which might be interesting to you): https://github.com/micropython/micropython/pull/3448 and is disabled by default

manic glacierBOT
prime flower
#

@solar whale I relaxed the python req. on iopython to 3.4, thanks for the feedback ๐Ÿ˜ƒ

bronze geyser
#

i am trying to load a firmware.elf onto an XPlained Samd board. I was thinking the arduino zero build might work on the Xplained. So I make BOARD=arduino_zero DEBUG=1 ...sadly, I get region `FLASH' overflowed by 1060 bytes .... i'm looking for advice on how to best approach getting a debug version of circuitpython on the Xplained. Thank you.

raven canopy
bronze geyser
#

@raven canopy thank you.

#

@raven canopy didn't work. Tried commenting out the added CFLAG w/ debugging...still get the FLASH overflow. Thanks though.

idle owl
#

So if I have a chip on a board, and I'm supposed to check pin 4, how do I know which pin is pin 4?

#

There's no markings on it, so there's no obvious top, but I at least think I know the orientation.

#

Oh the schematic has the pins numbered, nevermind. Still not certain about the orientation though.

#

Wait, no it doesn't....

#

I mean there are numbers on it on the schematic, but the chip is symmetrical, and the schematic of it does not reflect that at all.

solar whale
#

@idle owl what chip? pins are usually number counter-clockwise from the pin 1 -- Pin 1 is usually marked - various ways

idle owl
#

Let me try to get a picture of the board

main meteor
#

Note 7 on the chip docs reads "PIN 1 IS LOWER LEFT PIN WHEN READING TOP MARK FROM LEFT TO RIGHT"

idle owl
#

Annoying,. It didn't rotate. But that's the idea.

main meteor
solar whale
#

I would expect pin 1 to be at the white dot.

main meteor
#

The white dot on the PCB also denotes pin 1.

solar whale
#

so pin4 should be at teh U4

idle owl
#

Oh..... ok. I couldn't find the mark!

#

Thank you

#

I was focused on the chip itself.

main meteor
#

For the chip itself, you have to look at the "TAEBH" marking. The dimples, notches, and cut corners we're used to on larger chips just won't fit on these little ones.

tidal kiln
#

what are you checking?

idle owl
#

The pin and cap I was instructed to check by the Odroid engineer.

tidal kiln
#

looks like 4 and 6 are tied together and connected to GND

idle owl
#

Yah that's what I was seeing on the schematic.

#

Pin 4 is 0

#

V

tidal kiln
#

so just checking continuity to GND?

#

or voltage too

idle owl
#

I don't know.

main meteor
#

I think pin 6 is the wiper, that's an odd one to ground.

idle owl
#

"Also check Pin 4 on U4 to confirm whether the power switch works correctly or not."

tidal kiln
#

hmmm "check"

idle owl
#

So I posted what I got and asked for verification of whether I was supposed to test it to ground.

tidal kiln
#

not sure i follow what they're trying to determine

idle owl
#

Neither do I.

tidal kiln
#

and you were getting 3.3v yesterday, so seems like the voltage reg is working

idle owl
#

The other thing they had me check is getting 4+

#

They had me check C12

#

I told them everything we checked yesterday.

tidal kiln
#

C12 looks like it just smooths the VBUS input

#

or VBAT

tulip sleet
#

@indigo wedge Thanks re Bluetooth info. The reason I asked is that the nRF marketing materials advertise it as "Bluetooth 5". Wikipedia says Bluetooth Low Energy is not backward-compatible with the previous (often called "classic") Bluetooth Basic Rate/Enhanced Data Rate (BR/EDR) protocol. The Bluetooth 4.0 specification permits devices to implement either or both of the LE and BR/EDR systems. . ... (Googles stuff...) DIgging further, I see that the '840 is only LE, not BR/EDR: https://devzone.nordicsemi.com/f/nordic-q-a/10032/dual-mode-soc

tidal kiln
#

so..... i'm working on a driver for these 1.2" segmented displays:

#

two colons and what i'm guessing is an AM/PM indicator

prime flower
#

yeah

tidal kiln
#

thoughts on the following for controlling those?

disp.ampm = True
disp.colon[0] = True
disp.colon[1] = True
prime flower
#

looks good

stuck elbow
#

@tidal kiln that's a decimal point and you have it up-side-down

tidal kiln
#

@stuck elbow orientation checks out, i've printed stuff to segments

stuck elbow
#

weird

cunning crypt
#

The text on the PCB is correctly orientation

stuck elbow
#

@cunning crypt that only means you are not the first person that got it wrong

cunning crypt
#

I'd say it's AM/PM indication, since there is only the one

stuck elbow
#

it's a strange place for it

cunning crypt
#

True

tidal kiln
#

for reference, here's the 0.56" version:

#

those are decimals

cunning crypt
#

Definitely

#

Interesting that the large one has the leading colon

stuck elbow
#

it's probably a part of a larger display

#

that's why only one decimal point

#

is the initial colon actually a colon, or two separate dots?

tidal kiln
#

actually, all 5 of them are separate, and are labeled DP1 etc.

#

but the i2c backpack ties the two in the middle together - so they act as a colon

#

and i'm thinking of just treating the other two the same way - as a colon

stuck elbow
#

ok, so I would say that's a decimal point, and the "colon" is the am/pm indicator

idle owl
#

If I want to run a stepper motor off of the Stepper FeatherWing, what's the best suggested power supply? It says 5-12VDC but that isn't very specific.

stuck elbow
#

@idle owl for steppers the higher voltage the better

idle owl
#

Thank you

stuck elbow
#

that works

idle owl
#

Keen, thanks

stuck elbow
#

with higher voltage you have steeper edge of the signal, and thus you can have more steps per second

#

the driver makes sure the current doesn't exceed the parameters anyways

idle owl
#

Excellent

tidal kiln
#

@idle owl are you using a specific stepper?

idle owl
#

The one Adafruit sells.

tidal kiln
#

there are a few

idle owl
#

The NEMA17 one

#

There's only one of those, sorry ๐Ÿ˜ƒ

tidal kiln
#

PID324?

idle owl
#

Yes.

tidal kiln
idle owl
#

Indeed, I noticed that.

#

But I assume it'll be the bigger one.

#

I have a 5V10A supply already though.

#

So if I go with that one, swap it out.

tidal kiln
#

yep, in general, should be able to find a rating for any given stepper

tidal kiln
#

how do i add a new instance variable to a derived class?

stuck elbow
#

folks

#

Guido just resigned

idle owl
#

Well.

tidal kiln
#

this works, but seems kludgey

class Foo2(Foo1):
    def __init__(self, maybe, some, stuff):
        super().__init__(maybe, some, stuff)
        self.just_for_foo2 = 42
idle owl
#

@slender iron I'm realising I'm not sure how to libraryify an already existing repo that doesn't have the expected file structure. Do I create a new repo and do it all there and then add the files? Or just grab the right files from another lib and copy them into the current one and modify them?.. I think I did it from scratch once, the rest of the times the files I was given already included all of the cookiecutter stuff.

stuck elbow
#

@tidal kiln that's the official way

#

if it's a class attribute, you can also override it in the class

#

also, use *args and **kwargs to be independent of the args

idle owl
#

@slender iron Also, should I update the CoC in the cookiecutter repo?

tidal kiln
#

@stuck elbow thanks! if you got a link to some good info, please share. i tried googling but only found a lot of class vs. instance discussions.

idle owl
#

Re: the library repo, there's already a commit history and so on, so I probably don't want to create a new repo, we'd lose that.

slender iron
#

@idle owl I merge in by hand

idle owl
#

Ok. Thanks

slender iron
#

and yes please

tidal kiln
#

@stuck elbow also, adding a new class attribute seems easy - no need to override __init__ - correct?

slender iron
#

@tulip sleet can you post the merge somewhere?

manic glacierBOT
tulip sleet
manic glacierBOT
raven canopy
#

@idle owl you can update the CoC on the lib you're working. The adabot patch will (should) recognize that it doesn't need to update it.

idle owl
#

Ok. I haven't added it yet so easy there.

#

Oh, I just realised there's a CoC in two locations in that repo.

manic glacierBOT
stuck elbow
#

@tidal kiln correct

manic glacierBOT
slender iron
#

@idle owl one is for the repo and the other is for the generated

idle owl
#

@slender iron I assume they both needed to be updated then?

slender iron
#

yup

idle owl
#

ok keen. made another PR.

manic glacierBOT
#

As a reasonably green Python programmer I think I represent a lot of your audience. It would be VERY helpful to have a reference to dir() somewhere. Eg. a generic page about diagnosing python errors and especially some help on learning to interpret the C sources.

As for this particular issue, I think the digitalio page should say something about this board-to-board difference.

Thanks, Larry Fast

slender iron
#

@bitter hedge super().__init__()

bitter hedge
#

still throws the error unfortunately

slender iron
#

are you using built in framebuf?

bitter hedge
slender iron
#

hrm seems like it should work

tulip sleet
#

This looks like a coincidence with #1017

manic glacierBOT
indigo wedge
#

Woo

stuck elbow
#

61!

slender iron
#

๐Ÿ˜ƒ

manic glacierBOT
slender iron
#

@tulip sleet gc merge looks ok to me

tulip sleet
#

thanks - I'll proceed. Most annoying thing in the merge is that #ifdef SOMETHING was replaced with #if SOMETHING in a lot of places, even if SOMETHING was not defined. Our strict warning checking complains about that (rightly so). I had to explicitly define a bunch of things as (0) and change other places to #if defined(SOMETHING) && SOMETHING

slender iron
#

ya sounds annoying but good in the long run

indigo wedge
#

I just tested the bootloader on my custom nrf52840 board and it works very nice ๐Ÿ˜ƒ

#

finally MSC

idle owl
#

Nice!

wraith tiger
indigo wedge
#

@tulip sleet I think that can be fixed by doing #if (SOMETHING == 1) because the compiler will warn if SOMETHING is not defined

tulip sleet
#

I should have been clearer: there are cases where SOMETHING is defined (that I added, mostly in mpconfig.h), and cases where it is inconvenient to do so (it's buried in some cpp logic elsewhere). So I need to cover the case where it's not defined and treat it as 0 (false). So I have to check for being defined and then also the right value.

indigo wedge
#

ah I see

#

my bad

tulip sleet
#

no prob: there were really two kinds of definitions happening: I didn't make that clear. I can understand why Damien changed it to #if, with the warning-errors turned off that works fine when it's not defined, but not otherwise

manic glacierBOT
#

I would like to respectfully request support for the SAMD21J18 chipset if possible.

If such task becomes to much demand to your group/organization, Would it be possible to indicate where to begin and what files will require modification to get me started?

My real absolute goal would be to be able to use JTAG to program this chipset with CircuitPython!..... in which I will not pursue if by any means breaches your open source policy.

Thank you kindly!

EZ

solar whale
#

@indigo wedge before I do something silly, can you clarify what I need to do in order to use the MSC Uf2 bootloader on the pca10056. Do I first do the make SD=s140 BOARD=feather52840 bootloader for both the serial bootloader and the MSC UF2 ? Then can I use either the serial bootlader or the MSC UF2 bootlader. Do both still use the same USB port? Clearly - I'm a bit confused....

indigo wedge
#

I'm not sure what you mean by the serial bootloader, the pca10056 has a jlink chip that allows flashing boards using nrfjutil, it's not a bootloader. To flash the bootloader you do make ... bootloader and then you need to do make ... flash that will flash the firmware and set a bit in flash that will tell the bootloader to bypass the checksum check. Once you have the uf2 bootloader you have to use the other usb port on the board, the one next to the reset button (nRF USB).

#

I think after you flash the firmware once using make, the bit will stay set in flash and you can flash new firmwares using uf2 files

#

also you might want to use BOARD=pca10056

solar whale
#

ah - ok - that was what I was missing. So after flashing the bootloader via the jlink usb port -- switch to the nrf port and use the uf2 loader.

indigo wedge
#

i think you have to do make ... flash at least once to set the "bypass verification" bit in the flash

solar whale
#

ok -- I'll give it a try later tonight or tomorrow. thanks

indigo wedge
#

good luck ๐Ÿ˜ƒ

#

it seems the usb cdc might need some work, I can't Ctrl+C while in a while True: and can only do Ctrl+D if there is no text entered in the line, which I'm 95% sure was possible over regular uart

solar whale
#

I

#

I have to head to for a few hours. Looking forward to experimenting when I can.

idle owl
#

@slender iron For a class with init having too many arguments do you: 1. make a judgement call and pylint: --disable or are you 2. supposed to split it out somehow?

#

Oh right, lunch.

manic glacierBOT
#

It should not be that hard. In ports/atmel-samd/boards, make a new directory corresponding to your board. Change everything as appropriate: pin mappings, SAMD21G18A -> SAMD21J18A, etc. If there are extra timers, SERCOMs, etc. that are in the J version, but not G, you may need to change some limits somewhere.

See boards/ugame10 as an example of a third-party board we've included in our source tree. If you succeed and your board design is available to others, we'd be quite amenable t...

raven canopy
#

vagrant ssh

#

argh...

idle owl
#

๐Ÿ˜„

raven canopy
#

catching up while vagrant up does its thing. ok, caught up...naturally, just start typing. no need to check window focus. ๐Ÿคฃ

slender iron
#

@idle owl every time I've seen that its been a bug so I wouldn't disable

idle owl
#

@slender iron It's complaining that this has too many arguments: ```class Adafruit_IL0373(Adafruit_EPD):
def init(self, width, height, rst_pin, dc_pin, busy_pin, srcs_pin, cs_pin, spi):
super(Adafruit_IL0373, self).init(width, height, rst_pin, dc_pin, busy_pin,
srcs_pin, cs_pin, spi)

    self.bw_bufsize = int(width * height / 8)
    self.red_bufsize = int(width * height / 8)

    self.begin()
slender iron
#

oh maybe not

#

I'm confused

idle owl
#

All but two other cases are definitely errors, but there are two cases with long inits that I want to know how to handle.

manic glacierBOT
slender iron
#

k disable away

idle owl
#

ok

manic glacierBOT
idle owl
#

@umbral dagger So you want to leave it as-is for now?

umbral dagger
#

As hex, yes. I'll add a comment noting it.

idle owl
#

Ok. It wasn't clear what the plan was from your current comment.

#

I'll get it merged.

umbral dagger
#

let me do one more commit

idle owl
#

Ok

#

Oh you mean comment in the code. Not on GitHub. Got it.

manic glacierBOT
umbral dagger
#

@idle owl OK

idle owl
#

Travis failed.

umbral dagger
#

Yeah. Some trailing spaces snuck in. i need to add that to an emacs pre-save hook.

#

OK.. that'll not happen again

stark wolf
#

Did something change in how the sdcard library works? I'm getting an error saying that "function does not take keyword arguments".

#

Oh and I am using the adalogger featherwing example and the "Datalogging with feather and circuitpython" example as guides.

#

Using CP 3.0.0 release and 3.0.0 beta lib bundle.

tidal kiln
#

@stark wolf can you post the full text of the error dump

stark wolf
#

@tidal kiln Its not very useful as I'm working with the Huzzah esp8266 so the error dump is from ampy.

#

ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n File "<stdin>", line 13, in <module>\r\n File "adafruit_sdcard.py", line 113, in init\r\n File "adafruit_sdcard.py", line 138, in _init_card\r\n File "adafruit_sdcard.py", line 257, in _cmd\r\n File "adafruit_sdcard.py", line 239, in _cmd\r\n File "adafruit_sdcard.py", line 215, in _wait_for_ready\r\nTypeError: function does not take keyword arguments\r\n')

#

Up to line 13 is:

#

import board
import bitbangio
import digitalio
import storage
import adafruit_sdcard
import adafruit_si7021

setup SPI for SD card

spi = bitbangio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)

cs for ESP8266 on GPIO15

cs = digitalio.DigitalInOut(board.GPIO15)

make and mount sdcard

sdcard = adafruit_sdcard.SDCard(spi, cs)

tidal kiln
#

the problem being that the bitbangio version of readinto is different than the busio version

idle owl
#

@tidal kiln Is it different on the "latest" RTD?

manic glacierBOT
#

OK, this broke because we turned on MICROPY_CAN_OVERRIDE_BUILTINS in 01443a9619e7cbedd1697418855243cd95e0e674. However, note that it still doesn't really work right even before that change. If you call AttrDict([]) you'll get an error, though dict([]) works fine.

In general subclassing from builtins does not work well in MicroPython/CircuitPython. This is a deliberate choice to save space and time.

I'm not sure how you're class is used. It looks like you're trying to override the ...

stark wolf
#

@tidal kiln I'm not sure that's it as I'm using 3.0.0 and you referenced 2.x of the docs. I will look into both of those. Thank you for pointing me in that direction.

tidal kiln
#

@idle owl good catch, but appears so, at least for readinto

stark wolf
#

I need to step away but I'll be back later this evening and look deeper. Thank you @tidal kiln

manic glacierBOT
#

Thanks for the update. My main goal is to conveniently declare system structure with the more readable dict.foo.bar.baz vs dict['foo']['bar']['baz']. I use this extensively in not-so-real-time world.

I assume the change to MICROPY_CAN_OVERRIDE_BUILTINS isn't going to get undone. Is the slightly-more-broken-than-before behaviour of dict subclasses likely to get fixed or go onto the ...oh-well... pile? Not looking for anything solid, just a vague sense of probability.

Cheers,
Lar...

tidal kiln
#

whaaa??!? i2c checks for existence of pull ups on creation? neat.

cunning crypt
#

Does the M0/M4 have builtin pullups on those lines?

#

I seem to (vaugely) remember some discussion about including that pullup check, but it's been a while

stuck elbow
#

the built-in pullups are not suitable for i2c

#

they are too weak, and you don't know what voltage the lines are using, so you can't enable them by default

#

(it's possible to have 2.8, 3.3 and 5V devices on the same bus)

cunning crypt
#

Makes sense

stuck elbow
#

that last point is kinda moot when all the i2c modules that adafruit sells have built-in pullups anyways

manic glacierBOT
torpid goblet
#

Does anyone have any driver related work on their help wanted lists? That look like a good way for someone like me to learn circuitpython while learning to do something useful:)

stark wolf
#

@tidal kiln @idle owl So after a closer read, it looks like readinto(), write() are different between busio and bitbangio but also frequency is only in busio. ๐Ÿ˜–

#

I think I like the idea of having wifi on chip a lot more then the reality. Fine. I'll buy another feather that isn't an esp8266. I was wanting to play around with packet or lora radio anyway.

tidal kiln
torpid goblet
#

@tidal kiln thanks.

tidal kiln
#

@slender iron @tulip sleet to what extent are bitbangio and busio meant to be 100% swappable? (see above)

slender iron
#

ideally they'd be interchangeable

tidal kiln
#

is the above worth an issue?

slender iron
#

sure

tidal kiln
#

@stark wolf know how to create an issue on github?

stark wolf
#

@tidal kiln Yep, I'll head over there now.

slender iron
#

thanks!

stark wolf
#

Well, actually one min. Am I opening an issue on CP in general or on some specific lib / repository?

tidal kiln
#

they are core modules, so in the main CP repo

stark wolf
#

Ok, thanks.

tidal kiln
torpid goblet
#

@tidal kiln https://github.com/adafruit/circuitpython/issues/857 looks like a good jumping off point for me. If I understand the process correctly from the hardware end it is mainlu a matter of figuring out which registers to peek and poke ๐Ÿ˜ƒ From the software end is is matter of figuring out a reasonable API. There are a few other temperature sensors in the library to use as examples.

manic glacierBOT
#

Most of the associated methods are identical except for three:

readinto()
busio has these args: readinto(buffer, *, start=0, end=len(buffer), write_value=0)
bitbangio only has: readinto(buf)

write() has the same problem.
busio: write(buffer, *, start=0, end=len(buffer))
bitbangio: write(buf)

Lastly, busio has frequency() but bitbangio doesn't at all.

The learn.adafruit.com documentation does allude to busio and bitbangio being replacements but doesn't mention any S...

tidal kiln
#

@stark wolf thanks!

stark wolf
#

Is there a way to post an issue for learn.adafruit.com documentation? Or a way to help edit, update said docs? I'd like to help more then just creating issues on github and I'm not really a coder.

tidal kiln
#

in the left hand nav on Learn, theres a feedback/comment option

#

but in this case, i think the issue you created works

stark wolf
#

@tidal kiln Not sure how I missed that link. Thank you.

tidal kiln
#

if bitbang and bus agreed, then the guide would (hopefully) be ok

#

there's also the forums, you can post issues there

stark wolf
#

I've also noticed other small errors before but never said anything. Realized recently, that I'd like to help more.

#

I'll see what I can do and hopefully, one of these days, I'll be able to help with the code.

tidal kiln
#

no worries, just pointing out issues is helpful

#

if you're not sure which venue to send them to, just make best guess and we'll deal with it / route it

stark wolf
#

Great, thanks.

raven canopy
torpid goblet
#

@raven canopy thanks. I'll start by reading through those tomorrow.

raven canopy
#

how bad of an idea is to update a local repo with git pull within a .py that is running in the local repo? ๐ŸŽฉ ๐Ÿ™ ๐Ÿค”

manic glacierBOT
#

It looks like you're using https://github.com/bcj/AttrDict.

Different ports of MicroPython and CircuitPython do or do not turn on MICROPY_CAN_OVERRIDE_BUILTINS. We did choose to turn it on. I think it's an unfortunate accident that it happens to break dict-subclassing, As I mentioned, there are already limitations on subclassing of builtins (search in the micropython issues list for dict, builtin and/or subclass to get some idea of other issues). We don't tend to work on core lan...

indigo wedge
solar whale
#

@indigo wedge making progress -- I I wasn not able to make the bootlaoader for pca10056, but it did work and load for feather52840 - is this OK? ```jerryneedell@Ubuntu-Macmini:~/circuitpython_master/ports/nrf$ make SD=s140 BOARD=pca10056 bootloader
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
nrfjprog --program boards/pca10056/bootloader/6.0.0/pca10056_bootloader_6.0.0_s140.hex -f nrf52 --chiperase --reset
ERROR: There is no debugger connected to the PC.
Makefile:277: recipe for target 'bootloader' failed
make: *** [bootloader] Error 41
jerryneedell@Ubuntu-Macmini:~/circuitpython_master/ports/nrf$ make SD=s140 BOARD=feather52840 bootloader
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
nrfjprog --program boards/feather52840/bootloader/6.0.0/feather52840_bootloader_6.0.0_s140.hex -f nrf52 --chiperase --reset
Parsing hex file.
Erasing user available code and UICR flash areas.
Applying system reset.
Checking that the area to write is not protected.
Programing device.
Applying system reset.
Run.

indigo wedge
#

Wow that's really strange, it's the same command for both, it should work

#

as for the uf2 i think you have to stick to feather if the bootloader is for feather

solar whale
#

Then I get this at REPL ```Adafruit CircuitPython 3.0.0-rc.0-142-g75f48a5 on 2018-07-13; PCA10056 with nRF52840

import board
dir(board)
['P0_00', 'P0_01', 'P0_02', 'P0_03', 'P0_04', 'P0_05', 'P0_06', 'P0_07', 'P0_08', 'P0_09', 'P0_10', 'P0_11', 'P0_12', 'P0_13', 'P0_14', 'P0_15', 'P0_16', 'P0_17', 'P0_18', 'P0_19', 'P0_20', 'P0_21', 'P0_22', 'P0_23', 'P0_24', 'P0_25', 'P0_26', 'P0_27', 'P0_28', 'P0_29', 'P0_30', 'P0_31', 'P1_00', 'P1_01', 'P1_02', 'P1_03', 'P1_04', 'P1_05', 'P1_06', 'P1_07', 'P1_08', 'P1_09', 'P1_10', 'P1_11', 'P1_12', 'P1_13', 'P1_14', 'P1_15']
import ble_scan
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ble_scan.py", line 23, in <module>
OSError: Cannot apply GAP parameters.

indigo wedge
#

yes, I noticed that too

#

seems the usb bootloader PR broke bluetooth

solar whale
#

do I need to provide any power to the board othere than via teh nrf USB port?

indigo wedge
#

havent had time to look into it

#

nope, nrf usb is enough

solar whale
#

OK - no problem -- just want to make sure I had done it right.

indigo wedge
#

think I'll create a issue for this

solar whale
#

ok -- do you want an issue for the make pca10056 bootloade as well?

indigo wedge
#

that one I'm not sure if it's a issue with CP, because I did work for me

solar whale
#

ok -- I'll try again

indigo wedge
#

maybe you tried to flash it too early after connecting?

#

at least on Mint it needs a few seconds

solar whale
#

sorry -- worked fine this time

indigo wedge
#

glad to hear ๐Ÿ‘

solar whale
#

thanks -- back to playing -- BTW - I received a "dongle" no rush on that

#

It is great to be able to copy files now via MSC ๐Ÿ‘

#

cool - I can blink an LED !

#

oops - but no Control- c ๐Ÿ˜‰

indigo wedge
#

yep, need an issue for that too

#

could you post that one?

solar whale
#

sure -- I just nounted my SDcard!! SPI works!

indigo wedge
#

๐Ÿ˜ƒ

#

i2c works too, i tested ๐Ÿ˜„

#

and pwm, although that one needs a rewrite too

solar whale
#

nice --- great progress

#

BTW -- I think control-D is only supposed to work as the first char of the line

#

or at least -- I think it is taht way on other boards as well

indigo wedge
#

ok, if it's like that on other board then fine

#

i just felt that it used to be anywhere in the line but maybe i was thinking ctrl+C

solar whale
#

I'm pretty sure its written that way intentiaonally

manic glacierBOT
#

After loading current master to pca10056 board (via MSC! ) control-C does not break out of a While True: loop

>>> while True:
...     pass
...     
...     
... 

cannot break out with control- c

Same result with a while loop in a script:

import board
import digitalio
import time

led = digitalio.DigitalInOut(board.P0_13)
led.direction = digitalio.Direction.OUTPUT

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(...
solar whale
#

@prime flower FYI - I still get adafruit-io 1.1.1 when I do a pip3 install adafruit-io -- repeating this in the correct channel

indigo wedge
#

yay, found a fix for the BLE not working ๐Ÿ˜ƒ

manic glacierBOT
solar whale
#

@indigo wedge do I need to reflash the bootlaoder to rest teh PR -- or just build new UF2

indigo wedge
#

just uf2

solar whale
#

how do I get back to MSC bootloader?

#

it keeps mounting as CIRCUITPY

indigo wedge
#

I think it's button 1 or 2 or maybe both ๐Ÿ˜„

solar whale
#

both worked!

indigo wedge
#

๐Ÿ˜ƒ

solar whale
#
>>> import ble_scan
ADDR:   c8:69:cd:1c:5d:f8
TYPE:   0
RSSI:   -78
        AD_TYPE_FLAGS: 0x1A
        AD_TYPE_MANUFACTURER_SPECIFIC_DATA: 0x4C 0x00 0x10 0x05 0x01 0x10 0xC8 0x70 0xC0

indigo wedge
#

looks good ๐Ÿ˜ƒ

solar whale
#

It does not show as many responses as I get on feath52823, but taht was the same before just flashing it via Jlink

#

FYI -- boot to NRF52BOOT does require button 1 and button2

indigo wedge
#

thanks, good to know, I've been flashing with pyocd

manic glacierBOT
indigo wedge
#

Ah, nothing like friday merging

drowsy geyser
#

Always commit major changes on Friday! Or right before the lead dev goes on vacation. ๐Ÿ˜‰

manic glacierBOT
solar whale
#

@tulip sleet I re-installed the nrfuitil - to bring mine up to 0.5.2d -- now when I update the repo I am left with ```jerryneedell@Ubuntu-Macmini:~/circuitpython_master$ git diff
diff --git a/lib/nrfutil b/lib/nrfutil
--- a/lib/nrfutil
+++ b/lib/nrfutil
@@ -1 +1 @@
-Subproject commit 9e7dfb28a5c6f3d7a19340971b32e0c2b4128ecf
+Subproject commit 9e7dfb28a5c6f3d7a19340971b32e0c2b4128ecf-dirty

#

or should I just do a fresh clone of the repo.

indigo wedge
#

i think you can cd into lib/nrfutil and do git reset --hard

solar whale
#

that seems to have worked, thanks

indigo wedge
#

๐Ÿ˜ƒ

manic glacierBOT
drowsy snow
#

I'm happy the Feather M4 is in stock now, but when will the Circuit Playground M4 be released? Any idea?

solar whale
#

@indigo wedge just a heads up - I tried connecting the board PCA10056 to my Mac -- works fine -- still Control C does not work via screen.. But in the midst of think, I ended up in a state with CIRCUITPY mounted OK, but REPL did not show anything in the FS?? After a power cycle it was all fine -- may just have been an issue with reseting when I was hung in loop. Seems OK now, but just something to watch for on Macs...

manic glacierBOT
#

Hmm, screen works with me if I just typed the above while True: then press Ctrl +C.

Though if I go into paste mode and execute, I couldn't Ctrl+C to terminate it anymore. Is it standard or bug as well

  1. Ctrl +E to go into paste mode,
  2. paste your blinky loop.
  3. Then Ctrl + D to run.

PS: I also find out a bug with paste mode, where some character is missing as well. Working on the fix for that

prime flower
#

CircuitPython running on a Raspberry Pi, using busio with the ADS1015 (i2c), sending analog data to Adafruit IO

idle owl
#

@tidal kiln @stuck elbow It turns out Odroid meant to have me check pin 8, the enable pin, on the U4 chip. Which is evidently working the way it's supposed to, as are two other things they had me check. If those weren't right, the PCB had an issue. But they are, so I still don't know what's wrong.

#

At least, they said "if the enable pin is high"... I'm assuming 3.3V means high?

stuck elbow
#

yes

tidal kiln
#

@idle owl seems to confirm what we found in that initial testing - the voltage reg is fine and is outputting 3.3v.
did they provide a next step?

idle owl
#

The next step was if it failed, start the RMA process. But, no next step if it was working.

stuck elbow
#

the strange thing is that the 3.3V pin on the regulator side has voltage, but the same bus on the esp32 side doesn't

#

so it seems like a trace is broken somewhere

idle owl
#

So now I wait again. This is a slow process because I believe they're in Korea. So.. basically one reply per day.

tidal kiln
#

oh yeah - did you try a a continuity check on that?

idle owl
#

I don't know how to.

tidal kiln
#

go ahead and remove all power, since it's a simple "is there copper" test

#

pretty sure your multimeter has a continuity setting, look at dial, maybe a diode symbol? also may have some )))) indicating audible beep?

idle owl
#

Is it the one next to "Off"?

tidal kiln
#

yah. think so. one click counter clockwise from OFF.

idle owl
#

ok

#

What am I connecting now?

tidal kiln
#

touch probes to each other - does it beep?

prime flower
#

2mins in

idle owl
#

no

tidal kiln
#

hmmm. hold....

idle owl
#

Wait

errant grail
#

press the mode switch twice

idle owl
#

Now it does

#

Yeah I was in the middle of doing that ๐Ÿ˜„

prime flower
errant grail
#

(that's a great meter, BTW)

idle owl
#

Thanks! But in this case, I need to know specifically on this board what I'm checking to what @prime flower

#

@errant grail Good to know! It's my first ๐Ÿ˜ƒ

tidal kiln
#

might need to press the MODE button?

idle owl
#

No, I did @tidal kiln, meter is ready

#

I need help with what to check against what now

errant grail
#

@idle owl It's my 12th+ (approximately)

tidal kiln
#

oh. i looked away for 30 secs!

idle owl
#

๐Ÿ˜„

tidal kiln
#

anywho...

manic glacierBOT
tidal kiln
#

let me look at schematic again....

idle owl
#

This won't break anything right? As in I can't blow something out doing a continuity test?

manic glacierBOT
idle owl
#

Battery isn't plugged in.

manic glacierBOT
tidal kiln
#

@idle owl as long as power is removed, you're ok

idle owl
#

That's good. Because I started checking random things to make it beep. Before asking. ๐Ÿ˜„

tidal kiln
#

you were testing pins on U4 before, right?

idle owl
#

Yeah. But Radomir had me check pin 2 on the ESP at some point.

tidal kiln
#

yep. that too.

idle owl
#

ok so check the all the same pins?

#

to what?

tidal kiln
#

do a check between Pin 5 on U4 and Pin 2 on ESP

idle owl
#

ok

tidal kiln
#

one probe on one, the other probe on the other, doesn't matter which way probes go

idle owl
#

nothing

tidal kiln
#

sounds like a bad trace then

idle owl
#

It beeps against 8 though, so I'm holding it in the right place I hope

tidal kiln
#

8 on U4?

idle owl
#

yah

tidal kiln
#

๐Ÿค”

#

you sure of pin numbers?

idle owl
#

I am now...

#

1 is by the white dot.

#

So 8 has to be the opposite corner

#

Wait.

#

Is that not right?

tidal kiln
#

someone posted pinout the other day

#

for U4

idle owl
#

Ok I'm wrong

#

So I need to check the right pin.

#

I didn't check the right pin 8 even.

#

Pin 5 beeps.

main meteor
#

Pins on ICs are numbered the same way as on vacuum tubes: counterclockwise viewed from above.

idle owl
#

Against pin 2 on the ESP.

tidal kiln
#

so trace is good

torpid goblet
#

@raven canopy thanks for the list last night .that was helpful. I went through 8 this morning. just spent about 15 minutes researching the topic to increase my breadth of knowledge. I'll try to do that for the next week or so. With regard to a 'newbie hurdle' my first inclination was to browse https://github.com/adafruit/circuitpython looking for something bite sized. The list you sent which included all/many of the non-core packages presented a much gentler learning curve.

tidal kiln
#

i'd try and repeat your voltage measurements again, with power applied

idle owl
#

Pin 8 is 4+V

tidal kiln
#

volts? where's the power coming from?

idle owl
#

3.7V Lipo

#

which seems to be giving off like 4.1 or something.

#

That's what I get when I check the battery pins to each other.

#

So I'm getting the same on pin 8 as I do when I test the battery itself.

tidal kiln
#

TP18 is VBAT, if you want to verify

idle owl
#

4.12V

tidal kiln
#

that's that then. that's probably fine. that's just what that battery is.

idle owl
#

Pin 8 is 4.10V

main meteor
#

A fully charged LiPo will give about 4.2V, so 4.12V is completely reasonable.

tidal kiln
#

switch is "on"?

idle owl
#

Yes.

tidal kiln
#

the switch pulls Pin 8 up to VBAT, so that makes sense

#

Pin 8 is the EN (enable) pin for the voltage reg (LOW = OFF, HIGH = ON)

#

when the switch is "off", it's open and Pin 8 is pulled low via a pull down resistor

idle owl
#

So trace is good, EN is working correctly.

tidal kiln
#

what voltage do you see at Pin 5 on U4?

idle owl
#

0.4V

#

wait that's with it off

#

3.3

tidal kiln
#

what voltage do you see at Pin 2 on ESP?

idle owl
#

2 to ground right?

tidal kiln
#

yep

idle owl
#

3.3... I must have tested it wrong yesterday

tidal kiln
#

you could keep black probe at same point for these two measurements

#

and just move red probe

idle owl
#

right

tidal kiln
#

hmmm. so yah. the ESP is getting power.

#

what voltage do you get at TP7?

idle owl
#

I updated my post.

#

0

tidal kiln
#

that's why no backlight

idle owl
#

Oh.

tidal kiln
#

but at this point i'd pass it back to whoever you are emailing with

#

voltage reg is good. ESP is getting 3.3v. but nothing - so what's up?

idle owl
#

I keep updating the post.

#

It's on a forum.

tidal kiln
#

welp. we'll see what they say next.

idle owl
#

Yup

tidal kiln
#

see @main meteor 's comments above about pin numbering and battery voltage - good stuff to know (esp. pin numbering)

idle owl
#

Yah I'll probably need to hear it one more time for it to stick, but I did catch that.

#

I knew the battery thing from a guide I wrote.

#

Datalogger guide, because it logs the VBAT as well, so I knew where it starts and where it is when it's going to die.

tidal kiln
idle owl
#

looking. Tested?

tidal kiln
#

yep

idle owl
#

So it's two colors of LEDs but they make 3 because yellow?

#

Confusing to me, but I see that's what the product is actually called.

tidal kiln
#

right. although it looks orange to me. but i stayed with previous definitions.

idle owl
#

Yeah solid plan.

main meteor
#

"Bi-bolar"?

tidal kiln
#

@idle owl thanks

manic glacierBOT
solar whale
bronze geyser
#

Q; on circuitpython debugging. i have jlink / gdb set up. using itsy bitsy. am able to see symbols. i want to break on the c code i wrote for a circuitpython module. the module is called w/in code.py. while i can see symbols for things like eic_get_enable, i can't see my c module's symbol. ALSO - i am used to debugging w/in IDE. First time w/ gdb. So unclear how i am starting debugging w/in gdb and "somehow" code.py is the running program? (Thank you.)

slender iron
#

@bronze geyser make sure to make BOARD=itsybitsy_m4_express clean then make BOARD=itsybitsy_m4_express DEBUG=1

#

code.py runs on start up automatically

bronze geyser
#

@slender iron (i'm using m0...but get the point). I did not do "clean"...note: I did not see this step in your instructions?

slender iron
#

thats just useful when enabling debug for the first time

manic glacierBOT
#

Gents,

Letโ€™s do that as I am in the process of following the directions revised by Mr. Halbert.

Please close until then if appropriate!

Thanks

On Jul 13, 2018, at 13:06, Dan Halbert notifications@github.com wrote:

No strong reason. I thought I would close after a day or two. @ExperimentalZeros we can reopen if you come back with a pull request.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

manic glacierBOT
tidal kiln
idle owl
#

Sure!

tidal kiln
#

@idle owl thanks. i'm going to go run some errands. will check back...

idle owl
#

@tidal kiln Change request in. Whenever you get to it

rigid path
#

Sorry if this is the wrong channel, but Is there any reference material for importing / loading the circuitpython libraries to linux/rasbian? I loaded rasbian with stretch os on an old netbook and want to use this as my new dev machine. I think I need a good general linux/debian how to book, any suggestions?

torpid goblet
solar whale
rigid path
#

@solar whale - Thank you

prime flower
#

@tidal kiln got the ads1115 working

tidal kiln
#

@prime flower cool. in what setup?

prime flower
#

I posted it up way above earlier but

#

Blinka + ADS1115 (SPI) + Adafruit IO (V2.0.9), Analog Input using a Photoresistor

tidal kiln
#

oh yah! awesome!

prime flower
#

the mcp3008 doesn't seem to have a circuitpython port yet

#

it does have a python one though, I might take on it

tidal kiln
#

@idle owl pushed update

#

@prime flower go for it! you'll want to change the API to be more like CP. look at the ADS one as an example. basically, use properties more instead of get/set methods.

idle owl
#

@tidal kiln I didn't know that about the disables.

raven canopy
#

@prime flower could you tackle the entire MCP30xx/MCP32xx line? only difference i remember off the top of my head is the resolution (10 vs 12 bit).

tidal kiln
idle owl
#

Fair enough.

stuck elbow
#

I have a question about connecting a battery-powered Feather board to USB.

#

According to https://electronics.stackexchange.com/questions/55445/does-a-self-powered-usb-device-have-to-connect-to-vcc-from-the-host-port the MCU shouldn't pull the pins up before voltage is present on the VBUS, but when I'm powering the Feather from a battery, there is no way for the MCU to know that.

#

Is there some trick there that I can't see?

manic glacierBOT
#

Ran through all the code with both boards. Found bugs in a couple of pieces of code, PR already merged. Everything now works on both the Feather and Itsy M4. Edited any code to update comments where needed to reflect both boards. Updated guide pages to include M4 information, including wiring diagrams and where/when to comment out lines of code, etc.

Final PR is in to add M4 details to comments in one last file.

tidal kiln
#

@idle owl thanks for yet another review / merge

prime flower
#

@raven canopy ladyada said she has a WIP lib for that, I'll release it with her within the next week most likely as we need it for Adafruit IO Basics: BLINKA EDITION!11!!

meager fog
#

w0w all our M4 boards are in stock at once

#

if you want M4 fun - now's a good time

raven canopy
#

some might say its magic, but we all know its just adafruit's awesomeness. adafruit ๐ŸŽ†

meager fog
#

just got all the machines and parts aligned whew

ruby lake
#

reading the ASF docs makes my head hurt

raven canopy
#

which ones are you reading? the ones on atmel.com are the old ASF3 version.

ruby lake
#

The one I have is "ASF4 API reference manual"

raven canopy
#

๐Ÿ‘ not that either is better than the other from a head-hurting perspective. ๐Ÿ˜„

ruby lake
#

I long for the old days where it was easy to configure a peripheral ๐Ÿ˜‰

raven canopy
#

well, adabot is cloning and patching. just can't coerce her to push to repos. though, that may have something to do with the hybridized environment i'm running it in (vagrant, and not with the full venv). she'll have to sit for a couple days; company is almost here... ๐Ÿ˜ฆ

ruby lake
#

and finding online examples is strangely difficult. I find plenty of D21 examples, but barely anything for D51, aside from others asking the same questions. ๐Ÿ˜‰

half pendant
#

I'm having problems getting my circuitpython code in MU to work for my LCD that I have breadboarded to a Metro Express. I have followed all the directions to wire it up , and the got the logic, backlight and contrast all worked out seem to be working fine. The code is not though. I downloaded the adafruit_character_lcd library but I keep getting the error "AttributeError:'module' object has no attribute 'Character_LCD'.

tidal kiln
#

@half pendant are you getting the example code from a guide?

half pendant
tidal kiln
#

let me take a look. that error should be pretty easy to fix.

#

did you download the individual library? or the bundle?

half pendant
#

the bundle

#

Any help would be greatly appreciated!!

tidal kiln
#

once you've done the import:

import adafruit_character_lcd

the next step is to create the LCD object:

lcd = adafruit_character_lcd.Character_LCD(lcd_rs, lcd_en, lcd_d4, lcd_d5, lcd_d6, lcd_d7, lcd_columns, lcd_rows)

and that seems to be where you are having issues

#

are you entering things into the REPL? or did you save them to a .py file?

pastel patio
#

anyone here?

half pendant
#

Yes to all. I did try to save the program as a .py file in Mu, but nothing changed on the LCD. Then I tried the program in REPL and was fine until the last line to create a LCD object and then got the error I listed above.

tidal kiln
#

ok. let's try something using the REPL - are you there now?

half pendant
#

yes. i'm back

#

Just let me know what I should try...

#

Ignore the first error about pin 13, that was just a typo. The error that is stumping me is the last line.

tidal kiln
#

type this in the REPL:

dir(adafruit_character_lcd)

and post the output here

half pendant
#

ok

tidal kiln
#

oh, sorry, thought that previous capture was your current state

#

need to import first

#

import adafruit_character_lcd

half pendant
#

trying now

tulip sleet
#

@stuck elbow The two power sources (bat and USB) are both connected to the input of the regular via diodes (to prevent back current). So as soon as you connect a regular USB cable it switches to USB power, assuming USB > battery voltage. So I'm not sure this will be a problem. Whether the lines are pulled up prematurely or not I'm not sure, but it basically does not act as a self-powered device, since the diodes I think will prevent the current flow that might lead to that.

tidal kiln
#

ok, now try this:

lcd = adafruit_character_lcd.Character_LCD()

and post what it says

half pendant
tidal kiln
#

ok. it's seeing the class.

#

step through setting up your digital pins again

#

and try again to create the lcd object, same as you did before in first screen capture

half pendant
#

Oh! I just figured it out

#

I installed the 3.0 library, but my Metro is running 2.0.

#

I just installed the 2.0 library, and it works!

tidal kiln
#

interesting

half pendant
#

I didn't realize my Metro was 2.0 until you walked me thought the REPL code and it told me.

#

Will update all to 3.0. Thanks for your help!

tidal kiln
#

i'm surprised it even let you do the import actually

idle owl
#

That is a good point.

#

Usually it fails with ValueError: incompatible .mpy

tidal kiln
#

yah. is that somehow broken?

#

@half pendant what was the exact 2.x version number? (if you remember)

tidal kiln
#

i've gotta run. but will see if i can replicate that.

boreal egret
#

Hey all. I've recently bought a Feather M0 Bluefruit and been reading docs trying to find out if there is a circuitPython library for it's Bluetooth module. Is it possible to use Bluetooth in CircuitPython?

meager fog
#

acher, not at this time

#

it wouldnt fit ๐Ÿ˜ฆ

#

we are aiming for nrf52 support

#

where you get more power and ble!

boreal egret
#

Wouldn't fit, as in 92K of RAM is not enough?

#

The irony is, I bought a Bluefruit Feather because Flora couldn't handle 1200 neopixels because that takes 4K RAM, and Flora only has 2.5K :-)

#

I'm sure Feather will handle it just fine

#

@meager fog thank you for the answer!

meager fog
#

ach, it doesnt have 92K it has 32K

#

but yeah its just not enough because the filesystem is also small. honestly we recommend just skipping ahead to the nrf52 ๐Ÿ˜ƒ

boreal egret
#

32, right. nRF52 is out of stock at the moment

meager fog
#

iz popular - sign up!

#

we're makin more all the time

torpid goblet
#

I just got an interesting error when updating my stock feather m0 express to cp3

#

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
File "main.py", line 17, in <module>
File "/lib/adafruit_hid/keyboard.py", line 36, in <module>
MemoryError: memory allocation failed, allocating 512 bytes
soft reboot

#

the error just keeps cycling through on the serial console.

#

weird, I''l try downgrading the firmware and lib to 2.3.1

torpid goblet
#

after downgrading....

#

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
File "main.py", line 17, in <module>
File "adafruit_hid/keyboard.py", line 36, in <module>
File "adafruit_hid/keycode.py", line 31, in <module>
KeyboardInterrupt:
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
File "main.py", line 17, in <module>
File "adafruit_hid/keyboard.py", line 36, in <module>
File "adafruit_hid/keycode.py", line 31, in <module>
KeyboardInterrupt:
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
main.py output:
Traceback (most recent call last):
File "main.py", line 12, in <module>
File "neopixel.py", line 31, in <module>
KeyboardInterrupt:

Adafruit CircuitPython 2.3.1 on 2018-05-07; Adafruit Feather M0 Express with samd21g18

#

the error ran for about 2 minutes then the repl started

raven canopy
#

@torpid goblet is line 17 of main.py sending a Ctrl+D?

torpid goblet
#

line 17 of main.py is 'from adafruit_hid.keyboard import Keyboard'

#

I have not intentially changed main since it arrived.

#

going to try full reboot of computer, I was playing with the pycharm micropython plugin a couple of hours ago.

raven canopy
#

Hmm...that's an odd one.

torpid goblet
#

same thing after a reboot. Hiting Ctrl-C a bunch of time finally started the repl. i'll try erasing the flash completely reloading the 3.0.0 firmware, and updating the library and see if that helps.

craggy nacelle
#

Howdy folks, I am new here, but not new to Adafruits products, I was wondering if there's a Default Circuit Python, image with most of teh needed defult files in it.

#

I had to erase mine to bring it back from the Dead and when I went to put 3.0 on it, it does not have any Python files or Libs in it

torpid goblet
craggy nacelle
#

okay, thanks, what about the main.py file?

torpid goblet
#

I just replaced it with 'print("hello world")'

craggy nacelle
#

I would like to get the Demo working again, just to try out it's features with 3.0

torpid goblet
#

I am still figuring the correct contents of main.py for a feather m0 express

raven canopy
#

I'm fairly certain the demo stuff that is shipped with the boards is somewhere, I just don't remember where... let me look a couple places.

craggy nacelle
#

okay Great! Thanks @raven canopy

#

@torpid goblet I bought the Trinket M0 to try out Circuit Python and now I want to learn more about Python too...just getting my feet wet

torpid goblet
#

@craggy nacelle me too. every thing was working great until i tried to update.

craggy nacelle
#

Figures Don't it

torpid goblet
#

I am off to bed and going to look at this with fresh eyes in the morning. The help in this discussion is really good. friday night every one must be out and sommersoft is doing third shift ๐Ÿ˜ƒ

raven canopy
craggy nacelle
#

oh g'night

#

Thanks, I really appreciate that

raven canopy
#

hehe. my "shift" is pretty much when i'm not at the day job (even sometimes when i am).

#

@craggy nacelle you're welcome!

torpid goblet
raven canopy
#

really? hmm. we should look into that then.

manic glacierBOT
raven canopy
tulip sleet
#

@slender iron @idle owl I think some part of adabot has stopped running. The adabot update of the library bundle last produced a new bundle on July 04. But there have been library updates since then (like for instance I updated crickit on July 5 and made a 2.0.2 release; the bundle has 2.0.1).

#

what machine does the cron job run on?

raven canopy
#

I was going to ask where the cron job ran too.

timber mango
#

Hey guys, I was updating uf2 of itsybitsy m0 express with circuit python 3.0 and now it cannot boot to file system. Do you know some trick how to fix that?

tulip sleet
#

@timber mango what's the error?

timber mango
#

no error, just flashing goes well and no boot to file system

tulip sleet
#

so no CIRCUITPY?

timber mango
#

led stays green but windows cannot see it or load it properly

#

nope

tulip sleet
#

what's the name of the .uf2 you loaded?

timber mango
#

adafruit-circuitpython-itsybitsy_m0_express-3.0.0.uf2

tulip sleet
#

does the green LED pulse?

timber mango
#

and also the latest distro: adafruit-circuitpython-itsybitsy_m0_express-20180713-bfe14ff.uf2

#

the green led is just constantly on, no flashing

tulip sleet
#

go back to 2.3.1, and then remove or rename main.py, if it exists. (does it?)

timber mango
#

I don't think so, I was looking for it but there is only CP3.0. itsybitsy m0 express is not just m0 right?

tulip sleet
#

that's the right .uf2, and you don't have an itsy m4, right?

timber mango
#

but this one is just m0 not m0 express. Will it work?

tulip sleet
#

you mean it says that on the board? There's only one kind of itsy M0

timber mango
#

on the board says: itsybitsy m0 express

#

48Mhz clock

tulip sleet
#

right, good

timber mango
#

ok than I will try!

#

ok, flashing done. Now I can see green-pink-blue-blue

#

ok FS loaded!

#

great this really helped. What is the problem with CP3.0 then?

tulip sleet
#

not sure why there is a problem, but I suggest this: copy off the files you want from CIRCUITPY. Then go into the repl and do:

import storage
storage.erase_filesystem()

Then load 3.0.0 and replace your files.
If you want to do some debugging, try re-downloading 3.0.0 and copying it again, just in case there was corruption.

#

I just loaded that same uf2 onto an itsy m0 and it is fine, so it's not a general problem

timber mango
#

ok, I will try

#

thank you very much ๐Ÿ˜ƒ

tulip sleet
#

let me know - thanks!

timber mango
#

now it works great! thanks @tulip sleet

#

One more questions: how can I address pins on itsybisty which are 13-5 between USB and SCL?

#

are they board.13 or board.D13? or something else?

tidal kiln
#

@didny board.D13

#

you can also do dir(board) to see available pins

timber mango
#

ok I will try it, thanks

#

it worked! It is pity that that it's not available yet this pinout from itsybitsy

tidal kiln
idle owl
#

@tidal kiln Odroid want me to flash the firmware. I can't find it connected to my machine. So I don't know how to go about that.

#

I installed the SILabs drivers multiple times.

#

I guess I may not have rebooted. But it didn't ask me to.

tidal kiln
#

seems like a good next step. it does seem like it's acting like there is no firmware. since it's getting power and everything else seems to checkout.

#

does their wiki, or something else, have firmware flashing instructions?

idle owl
#

Yes, but it doesn't explain what to do if you can't find it in /dev/

#

"Find your serial node" ok... yeah... if it was there that would be great.

#

I haven't bothered downloading esptool or the firmware yet. Because I can't see the board.

#

installed esptool and pyserial.

#

The only thing showing up in dev is the Feather M4 I have connected.

tidal kiln
#

lemme read...

#

you're on mac?

idle owl
#

yah

tidal kiln
#

can you do dmesg at command line?

idle owl
#

Yes

#

We did this before and there wasn't anything useful

tidal kiln
#

how are you connecting odroid....

idle owl
#

Ok so I connect it and this happens:

tidal kiln
#

actually - wanna go dm? since this is off topic?

idle owl
#

(USB)

#

We can

tidal kiln
#

or is there utility in this for CP stuff?

manic glacierBOT
slender iron
#

@tulip sleet its on an intel nuc here. I'll go poke it

solar whale
solar whale
#

@tidal kiln ah - thanks -- I'll update the forum post ...

tulip sleet
#

@solar whale @tidal kiln I put pointers to that page at the top of that ESP8266 MicroPython guide and at the top of the one it points to.

manic glacierBOT
#

I took some time this morning to reflect on learning CircuitPython.

An interesting challenge is that Naming Conventions have not kept up with code and documentation development. That is very reasonable give the high pace of development in general. The result is the same things being called different names in different place of by different people.

A CircuitPython manual of style might be helpful. These are probably 4.0 milestone type enhancements. A couple examples include:

  • Port a...
stuck elbow
#

do you people know any good resources on charlieplexing LED matrices?

tulip sleet
#

@stuck elbow have you looked at the charlieplex learn guides?

stuck elbow
#

not yet

tulip sleet
stuck elbow
#

@tulip sleet I can't find any learn guides on charlieplexing

tulip sleet
stuck elbow
#

those videos are also not about charlieplexing

#

just about products that happen to use that technique

tulip sleet
#

i thought Limor's video talked about the theory. I remember her explaining it at some point

stuck elbow
#

I know the theory, thanks

#

I'm looking for tips on getting them arranged and routed

tulip sleet
#

yeah, the routing is free for you to copy

stuck elbow
#

it's the same as in the datasheet for the IS31FL3731

#

one thing, though, is that it uses 9 pins to drive a 8x9 matrix, and second set of 9 pins to drive another, whereas I would prefer to use 12 pins to drive 8x16 matrix

#

which I know is possible, but possibly non-trivial to connect

stuck elbow
#

yeah, but the use they same chip, just not use all the lines

tulip sleet
#

you could pose a q to limor

stuck elbow
#

nah, I will do it, I just thought someone remembers some nice resource

#

thank you for the help

#

if that works, I can make a PewPew business card

#

with a minimal number of components

#

touchpads for buttons, PCB footprint for the USB plug, etc.