#circuitpython-dev

1 messages Β· Page 154 of 1

raven canopy
#

ok. i'm out too. πŸ’€ night all!

drowsy geyser
#

Oops. I was over at the Maker Garage (Microsoft's maker space) tonight. I was working on CircuitPython guides and one of the Makers asked what I was doing. I explained what CircuitPython is. He took interest and sat down. I was showing him the boards I'm working with and he was fascinated with the CircuitPlayground Express. He was like a little kid, looking at all the sensors and NeoPixels. So I gave it to him. Then I got home and found out that may have been my only unintegrated CPX. So I can either tear something apart or get a few more boards. I prefer the latter, but it's out of stock. sigh Oh well. I got "volunteered" to speak for an hour about Adafruit and CircuitPython, which is cool. So now I need to write a presentation and line up my boards to demo live!

stuck elbow
#

@drowsy geyser that is awesome, shame about the last board though

drowsy geyser
#

It's ok. When they make more I'll order a few and all will be good again. πŸ˜ƒ

stuck elbow
#

it's weird that it's out of stock though, since they now add it to orders...

drowsy geyser
#

Oh hey, I'll be getting another one with my subscription to Maker: Space magazine. I'll have to go check my mail.

#

And who knows how many I'll find if I finish cleaning and organizing the lab. Maybe I'll do that this weekend.

stuck elbow
#

hehe, like pennies in the couch

drowsy geyser
#

LOL, yes, like that!

prime flower
#

finding devboards and random wires in my backpack was "like pennies in the couch"

pastel panther
#

@drowsy geyser What do you mean by "unintegrated" CPX?

stuck elbow
#

not in an existing project

pastel panther
#

ah yes,of course

drowsy geyser
#

Yep, that's it. Like one of the is soldered into my arc reactor project, for example.

pastel panther
#

@stuck elbow Did you use any existing art assets to create your blinka board or did you do the whole thing in fritzing?

stuck elbow
#

@pastel panther I traced the logo from adafruit's website in Inkscape, and prepared all the graphics layers in that program too, then imported it into Fritzing

#

now I have a vector logo, though, so it will be better quality

pastel panther
#

Have you thought about making a blinka badge? With all this "badge life" talk I thought it would be a fun idea to advertise CP at cons

#

I was thinking you could have her belly scales be cap touch responsive

stuck elbow
#

yeah, sure, but it would need to be larger, to include the battery

#

also, that's kinda low priority atm

pastel panther
#

I think badges are generally around 70x140mmish

#

Would you be willing to share the artwork?

#

I have no idea if/when I could/would work on it but it sounds like fun

drowsy geyser
#

I need to send a note to support about getting SVG Adafruit logo files. I want to make someone a present with the laser cutter.... πŸ˜ƒ

pastel panther
#

That would be cool

stuck elbow
#

It's also cleaned up as much as practical

pastel panther
#

πŸ‘Œ

slender iron
#

@drowsy geyser I have spare CPXes if you need another soon

drowsy geyser
#

Thanks, @slender iron! They just got restocked, so I'll have another set on Wednesday - some to use and a couple to give away in the Maker Garage. πŸ˜ƒ BTW, laser training is completed successfully, so if you need acrylic objects created, just let me know.

slender iron
#

@drowsy geyser ok perfect. πŸ˜ƒ I just ordered parts for a shruthi (synth) filter and will probably just use a feather and circuitpython to generate the inputs

drowsy geyser
#

Oh cool!

slender iron
#

I was thinking it'd be neat to have a module control panel system

drowsy geyser
#

Oooh, that would be neat. Collin would approve. πŸ˜ƒ

slender iron
#

yeah, I was thinking it'd be trellis compatible

manic glacierBOT
pastel panther
drowsy geyser
#

@slender iron I know you may not have an answer for this, but is there a targeted release data for 3.0? I'm trying to schedule a talk in the Maker Garage about Adafruit and CircuitPython and was wondering if I could time it to coincide with new software/hardware releases....

slender iron
#

nope

#

when its ready πŸ˜ƒ

drowsy geyser
#

LOL! Ok. (That's the answer I give my kids when they ask how long they should cook something. "Till it's done.")

slender iron
#

πŸ˜ƒ M4 board releases aren't blocked on it

pastel panther
#

That's cool; I was wondering about that

drowsy geyser
#

Oh cool. So it's just production scheduling - I heard a rumor the chips are available.

slender iron
#

@drowsy geyser we're still fiddling with the pinout

drowsy geyser
#

Ah, ok.

slender iron
#

we want to support as much stuff as we can

drowsy geyser
#

Totally understand. I'm not nagging, just collecting information. I'll schedule the talk and fortuitous timing will just be icing on the cake.

slender iron
#

they can always try it before its stable

#

and file issues πŸ˜ƒ

pastel panther
#

I can take a look in about 15

drowsy geyser
#

Good point!

slender iron
#

thanks @pastel panther

#

btw, I'm skipping qspi dma. its not on the critical path

pastel panther
#

Ok

#

Is that because the audio work is mainly for the cpx?

slender iron
#

its because we need the audio stuff to get into beta

#

and dma is nice to have but not critical

#

(for qspi)

#

I'll check it in commented out if you want to poke at it @pastel panther

pastel panther
#

Ok cool

slender iron
#

hopefully you can figure it out for me πŸ˜ƒ

pastel panther
#

Lol,suuuuuuuuure, I bet I'll figure it out in no time πŸ˜…

raven canopy
#

@pastel panther you going to review? i just jumped on and catching up...

#

aww man...that was my change. see, i'm really good at breaking stuff.

slender iron
#

np

#

move fast and break things πŸ˜ƒ

idle owl
#

@slender iron reviewed and merged.

raven canopy
#

well, in usual fashion. kattni gets it done just as i'm starting to look.

#

lol. page blinked, and i was like "merged? huh?"

#

πŸ˜„

idle owl
#

Restarted the build on my PR. Waiting on that now.

pastel panther
#

@idle owl! Leave some for the rest of us!
j/k πŸ˜„

idle owl
#

πŸ˜„

#

I mean I'm totally ok with that... πŸ˜›

#

Passed!

raven canopy
#

can do!

manic glacierBOT
raven canopy
#

@idle owl approved!

idle owl
#

Thanks!

#

@slender iron Can you merge it

manic glacierBOT
slender iron
#

thanks for the review sommersoft

idle owl
#

Thanks for the merge!

slender iron
#

np

raven canopy
#

thanks for the doc fix!

pastel panther
#

Thanks for all the thanks!

idle owl
#

you're so welcome! πŸ˜„

#

Oh. Was busio how we controlled DotStars before we did up the DotStar lib?

pastel panther
#

Not sure? It's certainly how the status dotstar was working. I'm assuming the dotstar lib has more features since it's not trying to fit in the main CP code

idle owl
#

I'm updating some guide code and was confused momentarily about the fact that there was no dotstar import until I remembered that it was written pre dotstar-lib. And it seems to use busio. So I asked.

pastel panther
#

I've been meaning to read the code that does all the animations for error stuff because it's obviously not blocking so it must have some update routine that gets checked periodically

raven canopy
#

i've seen it...just can't remember where exactly off the top 'o my head.

slender iron
#

@idle owl yeah busio

idle owl
#

Thanks

slender iron
pastel panther
#

haha, I probably glanced over it more than a few times as I was communing with the top half of that file

idle owl
#

Is there a reason we don't have board.DOTSTAR on the boards with dotstars?

#

Is it the nature of DotStars vs NeoPixels that it can't be narrowed to one label?

slender iron
#

right

idle owl
#

oh ok

slender iron
#

since its two pins

idle owl
#

Ok. Wanted to make sure there wasn't code magic that could change that. And also that I wasn't missing something.

manic glacierBOT
buoyant wigeon
#

Hi developers, I search for help.
I have received 2 pcs Trinket_m0 from a friend from US, it's a nice and inspiring piece. Recently I have also contributed to campaign INDIEGOGO and few days ago I received 5 pcs of Exen Mini (https://www.indiegogo.com/projects/exen-mini-smallest-32bit-arduino-comp-dev-board-diy#/).
I got an idea to port CP to this piece as itΒ΄s the same microcontroller, SAMD21G18A. I did git clone CP and uf2-samd21 and successfully build bootloader and CP. Somehow it works, IΒ΄ve tried several small programs in CP but one thing worries me... if I do tap reset twice, I canΒ΄t get back to bootloader... itΒ΄s smooth with Trinket_m0, I can try 100 times without any problems.
Probably I miss some information, knowledge to build the bootloader correctly. Can someone please help?
PS: Your work is perfect, same with documentation. ItΒ΄s not a problem that IΒ΄m on the other side of the Earth (Czech Republic), I always find what I need on your web pages. Thanks.

pastel panther
#

So you were able to get CP loaded and working? The CIRCUITPY drive shows up? But you're saying the bootloader won't go into bootloader mode?

#

Did you base your uf2/bootloader build off of the trinket files?

buoyant wigeon
#

Yes, CP is working like you say but if I tap 2x reset I am not able to "jump" to bootloader...

#

... CP drive shows up and I can move *.py files there...

#

... bootloader and CP built from Zero... I have changed only LED pin to PA06 in bottloader (board_config.h)...

pastel panther
#

But it worked once for you to load CP?

buoyant wigeon
#

CP works all the time... I cannot simply recall bootloader by 2x tap the reset button.... CP drive stays for all the time unchaged om the same COM...

#

... yes, bootloader worked one time after flash and never again...

raven canopy
buoyant wigeon
#

if I do single tap reset the board get stuck ....I have to unplug microUSB cable and plug back... and CP is working again...

pastel panther
#

a single tap should just reset the board. If you're connected to the REPL with screen, sometimes it can leave your terminal in a unusable state if the connection drops

buoyant wigeon
#

yes, my small test program does some prints and after single tap the output is stopped...

slender iron
#

@buoyant wigeon thats awesome! Feel free to contribute a board definition for it by making a pull request

raven canopy
#

@buoyant wigeon the only thing I can think of (which is why i wondered what single tap did) is that the reset button isn't acting exactly how it would on a zero. do you have any documentation on the whole pin setup?

buoyant wigeon
#

πŸ˜€ I am amateur... if it is not ironic?

raven canopy
#

and there are people here that would be much better than I at helping with that further...

#

and we love amateurs (well, i do, since i'm one) πŸ˜„

idle owl
#

@raven canopy Is that everything from issue #566 ?

buoyant wigeon
#

It is sad I have asked Nerdonic for schematic but he answered "Hi Frantisek, unfortunately we are not giving away the schematic and PCB design for the Exen Mini, but we plan to in the future.
Kind Regards,"

raven canopy
#

@idle owl as mentioned in the task list, still need to go back and add the Travis badges for quite a few. avoidance is what i'll admit to; needed a doc break. I could most likely knock them out this weekend.

idle owl
#

Oh no worries!! I realised I had gotten through them and wasn't sure where that left the issue. Take the break!

raven canopy
#

most of the "work" will be git'ing. πŸ˜„

idle owl
#

Seems like it always is πŸ˜„

raven canopy
#

the temptation to script it all is there...but it's a one-off, so would likely take more time/energy than its worth. πŸ˜„

slender iron
#

@buoyant wigeon it can't be that complicated since its so small

#

@stuck elbow is gamepad working in 3.x? it looks like its reset method isn't called

buoyant wigeon
#

@slender iron I think so.... but I do not know where to go now ... I have to think also about HW.
I hoped that you have "some hidden SW hack" why I am not able to build OK bootloader...
so bootloader is probably OK... also webUSB is working...

slender iron
#

@buoyant wigeon I don't think the bootloader issue is due to circuitpython

#

where did you get the uf2 source?

buoyant wigeon
buoyant wigeon
#

@slender iron I have one question before the midnight here ... if I built the bootloader today I got a bootloader with this name "bootloader-zero-v1.26.0-adafruit.0-dirty.bin" ... why is there the appendix "dirty"? The results of the build were sooner without a word "dirty". Does it mean something "not allowed" or "any warning"?

idle owl
#

@buoyant wigeon I don't know the details, but it's not a warning. I know we've worked with many builds containing that appendix. I believe it has to do with changes made to the build that aren't part of the final build. But like I said, I'm not certain.

#

@buoyant wigeon Someone else will know better than me, and I'm sure they'll get back to you later, so check back in the morning. But know that it's perfectly fine to work with a ...dirty.bin build.

buoyant wigeon
#

@idle owl Thanks, I'll sleep more relaxed πŸ˜€

idle owl
#

@buoyant wigeon πŸ˜ƒ Have a lovely sleep!

stuck elbow
#

@slender iron its not. it works when created from the repl, but crashes when created from code, and I didn't have time to debug it

#

I didn't even report a bug as I planned, because I didn't test it properly

slender iron
#

@buoyant wigeon "dirty" is a term used to indicate changes have been made locally since the last commit

idle owl
#

Ooh I was essentially right.

slender iron
#

yup

manic glacierBOT
stuck elbow
#

@slender iron is this blocking anything? I'm hoping I will have some time this weekend to debug it.

slender iron
#

@stuck elbow nope, was just wondering

#

I'm starting on audio now

manic glacierBOT
#

I didn't report this properly so far, because I wasn't able to pin point exactly what makes it crash. This is what I know:

  • When imported and created from the REPL, everything works perfectly fine and there are no problems or crashes.
  • When imported and created from a frozen mpy module, it crashes as soon as it tries to read the pin states inside the tick. The crash completely disables USB communication, so the disk becomes unresponsive too.
  • The crash happens in the tick function whe...
raven canopy
#

@slender iron for expanding supervisor to nRF, should I add some handling for set_rgb_... , since the LED isn't currently on the board? if you currently set it, it acts like everything is fine... i can have it return something, or raise a NotImplemented.
I guess the same would go for the [dis/en]able_reload...

slender iron
#

you can just stub it out

#

aka jsut return something as needed

raven canopy
#

which is the same as just leaving it as is? the common-hal doesn't handle them..

#

just food for thought. i know you're heads down, so don't break away for this.

slender iron
#

its fine if it silently fails

#

someone will tell us it doesn't work if they care

#

/ we'll fix it up as we refine it

raven canopy
#

ok. πŸ˜„

#

that means i get to push before dinner. yay!!

slender iron
#

πŸ˜ƒ

idle owl
#

nice!

raven canopy
#

alright. πŸ• done! time to slice. then a movie..i think. pre-teens can be fickle. πŸ˜„

manic glacierBOT
raven canopy
#

oh esp8266, you little oddball. πŸ€”

tribal pecan
#

yea I don't if the right place or not but still gonna ask
so the concept of Deep learning and machine learning intrigues me
as a Mechanical Engineering student I can see so many places that it can be used
but I have no clue on how to " GIT GUD " at it
so my question is
from where should I start ?
ps: should I install ubuntu in pc or windows is fine for a beginner like me

pastel panther
#

This is probably better suited for maybe general or project help, however I have a few resources I can point you to. One minute while I find them in my bookmarks

raven canopy
#

i just dug farther into the esp-nonos-sdk than i ever wanted. i can now proclaim, i'm still lost. 😡

#

the naming conventions (which carried over into micropython [understandbly so]) are....bizarre? hehe

pastel panther
#

A wise man one said "being lost is the first step to understanding"

#

that man was me, just now

#

πŸ˜›

raven canopy
#

well, i just read someone's "esp uart journey", and I think my "lost" was actually a state of "can't be done". πŸ˜„

manic glacierBOT
#

After a slightly exhaustive dig into the ESP8266 UART realm, I have concluded that serial_connected will not be possible on ESP8266. My previous comment on "poll UART0" didn't pan out. Here is what I think I know:

  • UART is handled on chip, with serial going through the USB-to-UART.
  • UARTs are setup the same regardless of power supply situation.
  • The chip handles UART with interrupts, filling the FIFO on RX. The interrupt is switched off when reading the FIFO, then turned back on.
  • T...
humble mural
#

Good morning everyone. What is the board the functions with BLE and CP?

pastel panther
#

There is budding support for the feather nrf52 on the 3.0/master branch but it's not really ready for regular use yet

manic glacierBOT
pastel panther
#

@humble mural I think however that there are some ble breakouts that might be useable with CP

humble mural
#

@pastel panther Thanks, I am running through several of the guides in Adafruit and I am having trouble using Wifi options. Our schools has many restrictions and firewall and they really don't allow stuff to talk to each other.

pastel panther
#

speaks UART which the feather m0 express, metro m0 express and likely others should be able to speak, however I don't know of any guides that would talk specifically about using them together

#

@humble mural are you just looking to do wireless stuff or do you have specific goals like talking to a computer/phone/internet?

humble mural
#

In short, I am an building a 2-3 year curriculum that includes as many uses and applications for "IoT" type of devices. I like BLE becasue we can run that in the classroom with no issue.

#

I'll start the kids on the CPX, then move up and on from there.

#

So I am doing a lot of the guides at home so that I can determine what works and doesn't work in the classroom setting.

#

Overtime, I would like to develop lesson plans tied in to nation standard that we can share.

pastel panther
humble mural
#

@pastel panther After all that I would like to control NeoPixels, servos etc, wirelessly.

pastel panther
#

Can I ask why IOT? not that it isn't a decent theme to organize this type of learning around

#

right

raven canopy
#

@humble mural esp8266 can act as both a station and an access point...

stuck elbow
#

even at the same time

raven canopy
#

yep

stuck elbow
#

that's better than my laptop

humble mural
#

@pastel panther Not married to the term, just a term that I can use in discussion with school personnel and they will have a concept of what we are doing.

#

@raven canopy for wifi only correct

pastel panther
#

it's probably really good for that purpose as most admins might have heard of it but probably have never heard of "embedded"

raven canopy
#

yes, wifi only. but, just wanted to make sure that you knew that 2 esp boards can talk to each other.

pastel panther
#

it seems the people who know what they're talking about have awaken so I'll defer to them

raven canopy
#

says the guy working on M4 core stuff... πŸ˜„

stuck elbow
#

I only look like I know what I'm talking about, honest

raven canopy
#

mimics deshipu

humble mural
#

@pastel panther Let me give you a quick run down of where we are at, I teach programming (high school level) and we are experiencing high level of burnout (basically kids get bored of coding in front of a computer for three years). I was brought in to change the program, keep the programming roots but infuse other skill that will make the student better prepared for college.

raven canopy
#

brb. time for coffee cup #2... β˜•

pastel panther
#

@raven canopy that's a great idae

humble mural
#

we also have to compete for students with other schools, we are a 100% magnet school, if kids don't apply, we don't have students, so the program has to have a marketing edge to it.

#

In searching for a name for what we do, we came up with the (IoT Strand of the Acadamy of Information Technology)

raven canopy
#

well, with that in mind, i can see the draw to BT/BLE. Then you can marry the programming side to something they absolutely love: their cellphone. πŸ˜„

humble mural
#

@raven canopy BTW, I had no idea two ESP8266 could talk to each other, that is a game changer for me,. I'd buy you that second cup of coffee just for that bit of news.

#

Bingo!!

stuck elbow
#

I think an esp8266 working in AP mode can accept connections from up to four other devices

#

so there are limitations

humble mural
#

People think they understand IoT, I feel embedded (though more accurate) would make parents think that we are sticking there kids somewhere) like embedded reported in the military etc.

#

how do I type the first character of your name beshipu so Discord picks it up?

pastel panther
#

the idea that you should be chasing students at a magnet school is crazy to me

#

but that's beside the point

raven canopy
#

the esp would allow you to construct a "how do we" scenario. but like you said, that's all in front of a computer screen. the off the shelf BLE apps will only do so much (that i know of; haven't messed with it myself), so look into that set of limitations too. blinka nRF is young, but it is functioning on a basic level.

pastel panther
#

I should really get 3.0 on my nrf52. I just want to figure out how to get mynewt back on before I wipe it

humble mural
#

@pastel panther It is nuts, we have some schools (regular public schools) that have enrollement issues becasue of violence, school grade etc. The district has set up very appealing (all marketing) programs at these schools to draw students to stay at their home school. People want to come to our school because rankly, it's paradise, but we are losing kids the other public schools because of the glitzy programs they offer.

pastel panther
#

Thats crazy

humble mural
#

We have to offer programs on the down low. We have students visit our school and they see what we dow but the actual program can't appear on a Magnet Application.

pastel panther
#

It's been a while since I was in HS but I was fortunate enough to get into the locala magnet school, but people were beating the door down

#

say that again

#

?

humble mural
#

@raven canopy left me finishi this thought, I'll catch up

raven canopy
#

πŸ‘ i'm going to get back to documentation work; i'll be bouncing in and out of discord.

humble mural
#

@pastel panther so My prinicpal wants the kids programming, making bluetooth helmets, programming neopixels, 3d printing case for the stuff they make so that when kids walk in to my room with their parents they are blown away. Trust me no one is doint this in our county, This will be the frist true "Maker" program in our district, just can;t call it maker because most parents just don't know. We are a title 1 school

pastel panther
#

sounds good

#

I'm happy to help any way I can

#

(I hate politics)

humble mural
#

@raven canopy I just read your comments a bit over my head. can you post a link to a guide that explains (provides an example). I have about three ESP8266 in my bookbag, I can test it out today.

#

@pastel panther me too, hate politics love working with kids!

#

thanks

raven canopy
#

@humble mural that last comment was kind of a mash of two topics. let me expound a little.

  1. using the esp8266, I was thinking that using them to communicate with each other for a targeted reason (esp1 detects a button push, tells esp2 to turn on an LED) would allow you to construct a "how can we make this work scenario". obviously you'd have to start with explaining capabilities in a way that doesn't exactly make the desired end goal blatantly apparent.
humble mural
#
  1. I understand the concept, no guide for that, or do I Google that one?
#
  1. I will look at that guide today, though I don't think I have an BLE board in my bookbag
#

Also, this is all for CP?

raven canopy
#

i don't recall Adafruit having a learn guide on having two esp8266s communicate. but, there are plenty of examples in "the wild" of having the esp8266 handle incoming requests (mostly Arduino).

#

the nRF resources for CP are pretty non-existent at this point; still young and all. once it's officially supported, they'll start flowing.

humble mural
#

I just searched it in Google, tons out there

#

How about MicroPython?

raven canopy
#

maybe? my knowledge of micropython comes mostly from circuitpython. i don't spend much time on that side of the tracks. πŸ˜„

humble mural
#

isee

#

i see

#

lunch is served, bbl.

raven canopy
#

🍽 enjoy!

pastel panther
#

hey @slender iron I pulled master again, updated my board files and got QSPI working on my m4 board, wew!

#

aaaaaad he runs away

slender iron
#

nice @pastel panther ! now you should get dma working πŸ˜ƒ

#

(had to feed hungry kitties)

pastel panther
#

haha, sure. I'll take a look. Does the code show well enough what wasn't working or can you give me some clues?

slender iron
#

I was ussing the saleae to watch it

#

I'd get two sets of four (maybe eight) clocks to read data in but then it'd stop

#

the code would hang waiting for the dma transfer to complete

pastel panther
#

hmm, ok

#

I was able to make some sense of the traffic with the normal SPI plugin, however I found a third party QSPI analyzer. Couldn't get it to compile though

slender iron
#

the spi one works just fine because the command and address look the same

#

the data just won't make sense

pastel panther
#

right; I was slowly training myself to recognize the commands. The one I found can decode the commands as well (it seems from the code)

#

bbiab, running to frys

raven canopy
#

ok. the PR emails should slow to a trickle now.. πŸ˜„

#

@slender iron subtract 42 from the PR numbers for the meeting; today was cleanup for missing Travis badges on most of the docs. rework doesn't count!

slender iron
#

rework totally counts!

#

@pastel panther I found a SPI flash plugin

raven canopy
#

@slender iron what is the [desired] RTD path for cookiecutter? going to work on the conf.py (both actually) before i get this library started. Also going to put some Windows "warnings" in based on my experience. πŸ˜„

slender iron
#

you mean url?

raven canopy
#

yeah

raven canopy
#

hmm. i might have to explore using WSL Ubuntu...

pastel panther
#

@slender iron can you point me to that plugin?

raven canopy
#

might make things like cookiecutter a little easier.

pastel panther
#

nevermind, I can google

manic glacierBOT
timber mango
#

@drowsy geyser cpx back in stock.

drowsy geyser
#

@timber mango Yep. My bag full of them arrives Tuesday. πŸ˜‰

timber mango
#

I messed up one of my three (somehow) but it's functional enough to keep using it. The other two are awesome.

drowsy geyser
#

I ordered extras since I'm giving a talk at about CircuitPython for the Microsoft makerspace. I'll have some extras to give away. πŸ˜ƒ

timber mango
#

Yeah on my TODO list is to obtain a few boxed sets (it's a 5 dollar upcharge) to hand out.

drowsy geyser
#

People go nuts when you just h and them hardware and say, "here, these are awesome!"

timber mango
#

I gave the nephews a variety at xmas time; cpx, trinket m0, feather m0 express and maybe something else or a duplicate. Figured they'd fry at least one and hoped they'd not fry the CPX right away. ;)

drowsy geyser
#

LOL! How'd it work out?

timber mango
#

They are lost boys (now men in their early 20's) and do not speak except in their basement/dungeon areas to other friends. Surprisingly, quite verbal when stuck in a car with them on family errand. So not one word. ;)

drowsy geyser
#

πŸ˜ƒ

timber mango
#

They're all hooked up to internet and are in college so I don't worry too much.

#

We went out and did mischief with our cousins (outdoors) at family gatherings. these two bow their heads and pray to handheld devices. Six of one, half dozen of the other.

drowsy geyser
#

I hear you. Conversely, I gave a CPX to a friend, who handed it to his 11 yo son and said, "go make a burglar alarm". Kid loaded up MakeCode and about five minutes later brought it back. You turn it on and if the accelerometer detects movement it beeps and flashes the lights. My friend was impressed with his kid. πŸ˜ƒ

raven canopy
#

is that how Tested got a hold of one?

timber mango
#

That's pretty good. I wonder if there was some existing knowledge in the son the friend was previously unaware of.
My niece was 2-3 yrs old and in the grocery with her mother (long ago). She conversed fluently in spanish with the produce guy. Her mother was completely unaware the girl had acquired a second language (from someone they employed about the house).

drowsy geyser
#

That's awesome!!!

timber mango
#

Her brother is now fluent in Mandarin and has had an interest in it since age 9 or so (he's mid 20s now and in a formal training program in Mandarin).

drowsy geyser
#

I envy people with language and artistic skill. Since I have none....

raven canopy
#

that is pretty awesome. i've tried to push a second (and his mother's native) on my kid...not successful.

timber mango
#

My mother was fluent in Polish when I was a child; with nobody to speak it to/with, she lost the skills. Her grandmother spoke no English (at all).

drowsy geyser
#

Same with my grandmother and her grandmother (only it was German, not Polish).

timber mango
#

I just try to tell any young people to try to preserve whatever they've got in cultural heritage. In the name of assimilation our family lost a lot of ground.

raven canopy
#

the downside to being a herding animal...

drowsy geyser
#

Agree. Mine is the same way. Though genome sequencing and ancestry.com have done a lot for preserving/exploring the family tree. My family's ancestors for example, came over on the Mayflower.

timber mango
#

Ellis Island also took away our proper names (Irish and Polish names). I think. Don't know the conventions in names to be sure. Then one great (xn) uncle decided to change the spelling of our branch of the family's name, because he was tired of getting his brothers ground mail deliveries by mistake. ;)

drowsy geyser
#

True, we've wander just a TAD off topic. πŸ˜ƒ

pastel panther
#

πŸ˜‰

timber mango
#

I'll put what I think about this in #general-chat, after watching it a bit so I don't just splashdown, there. ;)

languid sage
#

@pastel panther I saw your note about being lost... Davey Crocket was once asked if he'd ever been lost. He replied "Lost, no, but I've been bewildered for a few days at a time, on occasion. So I guess he knew quite a bit. :^)

pastel panther
#

ha, nice

#

knowing what you're doing is overrated

drowsy geyser
#

LOL

languid sage
#

some people call it lost, others call it adventuring or exploring

raven canopy
#

"The only true wisdom is in knowing you know nothing." ~ Socrates

drowsy geyser
#

Or "learning"

raven canopy
#

@languid sage i generally fashion myself as a "its about the journey, not the destination" kind of person. so, like Davey...nope, never been lost. πŸ˜„

#

even though, i'm quotable for saying "im lost" in this very channel (and elsewhere). hehe

timber mango
languid sage
#

I usually start off with a destination in mind, but some times there are unforeseen forks in the road, with no route signs. When I entered college I never dreamed/imagined the job I'd retire from many years later. As the say, when life gives you lemons, make lemonade. So, it is all about the journey.

manic glacierBOT
#

Strange things happen above (1 << 22):

Adafruit CircuitPython 3.0.0-alpha.2-dirty on 2018-03-10; Adafruit Feather M0 Express with samd21g18

>>> hex(int(float(0x300001)))
'0x300001'
>>> hex(int(float(0x3fffff)))
'0x3fffff'

>>> hex(int(float(0x400001)))
'0x400000'
>>> 0x400001
4194305
>>> int(4194305.0)
4194304

>>> hex(int(float(0x4fffff)))
'0x4ffffe'

>>> hex(int(float(0x4000001)))
'0x4000000'
>>> hex(int(float(0x4ffffff)))
'0x5000000'

>>> hex(int(float(0x3fffff...
#

So in a "lull", I found myself diving down this rabbit hole. I'm thinking that it's ATMEL/ASF USB related. I narrowed into mphalport and the stdin/stdout functions. ATMEL uses the ASF USB construct for interaction.

So, to test my budding theory, I did two things:

  1. Tested pasting a long string in both regular REPL mode, as well as paste mode (Ctrl+E). Pasted string cut off at the same point (128 chars).
    • Full Test string: `x = "Testing 128 character pasting into the REPL to see if...
manic glacierBOT
timber mango
#

@slender iron @tulip sleet for Monday .. Does CircuitPython support i2c clock frequency setting by the end-user in a friendly way? Is the default frequency modest enough to ensure good communication with a low skill level of circuit implementation?

stuck elbow
manic glacierBOT
timber mango
#

Thanks, @stuck elbow. ;) Missed that #L70 and didn't realize the readthedocs was quite so specific (by URL).

manic glacierBOT
#

I think it strange that the implementation doesn't understand it's own limitations when it comes to printing numbers. I expect it to work like cpython or say so when it can't. At least it's suprising behaviour for someone not steeped in the implementation.

And loosing whole number precision is very suprising, for me at least, but then again I have never looked at how float is implemented.

>>> int(4194304.0) == 4194304
True
>>> int(4194305.0) == 4194305
False
>>> int(4194304.0 + 1...
#

I just tested this today on the build-metro_m4_express_revb and it seems to work. The cases I tested:

  • imported and initialized from REPL
  • imported and initialized in main.py
  • imported and initialized in a .py module imported from main.py
  • imported and initialized in a .mpy module imported from main.py
  • imported and initialized in a frozen mpy module imported from main.py

I will test on the M0 to make sure, but maybe the bug got magically fixed somehow.

drowsy geyser
#

Speaking of issues, I found a bug in either simpleio or CircuitPython 3.0 Alpha 2 where PWM output works only intermittently (whilst testing @idle owl 's guide code). I opened an issue in the simpleio repo. Do I also need to open an issue in the CircuitPython repo and link the two together? I'm really not sure where the bug lies yet....

manic glacierBOT
manic glacierBOT
manic glacierBOT
dawn gull
#

I opened an issue in the CircuitPython forum and tannewt and jerryn helped me. Now it's a couple weeks later and I continue with an issue using a DotStar 30/m white strip. I've reviewed the APA102 & 102C data sheets, read Tim's blog (cpldcpu), and I am mystified at what I'm seeing. I've got a sorta big write-up going with the latest DotStar library (1.1.4) and some empirical evidence regarding the End Frame size. Where would be the best place to post this?

umbral dagger
#

I received/built a MetroWing board form @pastel panther /OshPark. Going to revisit my dotstar wing game stuff on a MetroM4 with 3.0

manic glacierBOT
umbral dagger
#

Hmmm.. except that it doesn't give me a CIRCUITPY drive. CP build from master. It's running, and REPL works fine. Just no CIRCUITPY drive.. although it sounds like it tries to mount & unmout (Ubuntu makes noises for those things)

stuck elbow
#

@umbral dagger is that the black metro m4?

#

@umbral dagger build the firmware for rev b board

#

@umbral dagger the new revision has flash connected differently

manic glacierBOT
#

I want to emulate a DS1307 on a Feather M0 so I need access to clock time. Has anyone given this some thought?
What the internal representation should be: seconds or struct tm, and how should the clock be set, board.setclock()?
I see that the samd21 clock can run in several modes.

Code so far:

inline uint64_t common_hal_time_time() {
    return (18 * 365 + 74) * 86400 + (19 * 60 + 4) * 60;
}

mp_obj_t struct_time_new(size_t n, const mp_obj_t *items) {

    // TODO: How to co...
pastel panther
#

ya, @umbral dagger make sure you're using BOARD=metro_m4_express_revb

#

'twas changed with the addition of the rev D with qspi which should be close to the final board

stuck elbow
#

@pastel panther are you also adding qspi to your board?

pastel panther
#

already did. It's tested and working

#

I have a debugged board file if you're interested but I think I'm going to shrink and stretch it into a bitsy and feather

#

I think the bitsy will omit the SWD connector and qspi debug headers

stuck elbow
#

how about the oscillator?

umbral dagger
#

@stuck elbow Black Metro M4, yes

#

Ah, so revB is the older one?

stuck elbow
#

yes

#

revB is the black one

pastel panther
#

@timber mango it's got a crystal but I'm not sure that 3.0 is using it yet so technically it's untested

#

I suppose I could write a simple clock setup but it's not at the top of my list

#

also "simple clock setup" on a samd = lol, right

stuck elbow
#

I'm asking, because ultimately I would like to make a bare minimum board for it, crystalless like the trinket

pastel panther
#

You certanly could you only need it if you use it. You could also omit the inductor for the voltage reg if you can make sure it only runs in linear mode

#

And you can also use the 2x3mm flash chip like is on the bitsy express

#

now that I look at it, the bitsy is also crystalless

#

You can also make it even more minimal if you don't need to have two simultaneous power sources which requires the two diodes, though there are some really, really small diodes out there

#

gotta run for now

umbral dagger
#

@stuck elbow @pastel panther That did it. Thanks

#

And... it's mounting readonly.

#

😦

stuck elbow
#

@pastel panther I know it's technically possible, I'm just afraid that I won't be able to figure out the correct settings

drowsy geyser
#

[Afternoon , everyone!]

idle owl
#

@dawn gull If you believe it's an issue with the DotStar library, you can open an issue on the DotStar GitHub repo. Otherwise you can open another thread on the forums if you'd like.

dawn gull
#

@idle owl Thanks for the quick response. It's more of a question about the End Frame, either Python or compiled. I'll open a new forum question with the data.

idle owl
#

@dawn gull Ah that would be great! Thanks!

raven canopy
#

why do i keep jumping head first into ASF/USB issues. the framework is so long and fragmented that i end up retracing myself every step of the way. 😣

idle owl
#

ASF is a jerk.

raven canopy
#

yeah. i get Atmel's goal of "why spend your time writing drivers?"....but, bleh.

stuck elbow
#

I wonder how hard it would be to make a modern, 32-bit microcontroller, but with the interface as simple as the AVRs have.

solar whale
#

@idle owl I think you should consider ASFs feelings before posting such negative comments πŸ˜‰

idle owl
#

@solar whale It's true, that was very inconsiderate of me.

manic glacierBOT
idle owl
raven canopy
#

hmm...i thought i checked all of them. looking now.

idle owl
#

thanks!

raven canopy
#

argh! a space snuck in...

#

or, not?

#

hmmm

#

protip: close your opening parens... πŸ˜„

idle owl
#

πŸ˜„

raven canopy
#

and, hopefully merging brentr's PR doesn't cause conflicts...

#

there. Travis is happy once again.

idle owl
#

Which PR of Brent's?

raven canopy
#

on APDS9960. from the autodoc fixes. its still open

idle owl
#

Oh good catch. Thanks.

raven canopy
#

well, the file that he changed...doesn't exist anymore. and that PR looks weird. "2 commits" with "0 files changed". πŸ€”

idle owl
#

I retriggered the build and it passed...

#

I think the changes were merged.

#

Maybe you came through and did it also and that PR got merged?

#

Because the changes are in master.

#

I think it can be closed.

#

@raven canopy Thoughts?

raven canopy
#

i'm trying to make sense of it. πŸ˜„

idle owl
#

Ok. Let me know what you conclude.

raven canopy
#

i think if you try and merge, it will conflict. closing it will cause no issue, since the changes in that PR are also in mine.

#

but, git AND github are mystical lands that often make no sense to me...so yeah. πŸ˜„

idle owl
#

πŸ˜„

opal elk
#

but I wrote that code at least a month agoand hadn't actually tested it until now

#

so I wanted to finally make a PR πŸ˜ƒ

idle owl
#

...

#

it's ucollections?!

#

I have tried to import collections multiple times and been disappointed. I didn't realise it existed in u form.

opal elk
#

Haha I only know because @tulip sleet told me basically exactly what to do

#

Oh dang I didn’t include the issue number

idle owl
#

I knew I should have asked instead of trusting a failed import.

#

Also travis failed.

opal elk
#

Booo

#

I’ll look at it now

idle owl
#

Oh... It's the automock

opal elk
#

what's the command to run the test that failed?

#

oh wait, The command "cd docs && sphinx-build -E -W -b html . _build/html" exited with 2.

#

/home/dconley/circuitpython-repos/Adafruit_CircuitPython_LIS3DH/docs/api.rst:: WARNING: default role any not found

#

computers are hard 😦

#

pushed, let's see how it goes

#

that did it! thanks.

raven canopy
#

@opal elk autodoc gets us all. πŸ˜„

opal elk
#

I need to figure out how to get the Travis build to run on my local machine to avoid β€œwhoops I did a boo boo” commits

#

Of course I referenced the wrong issue number in my second commit too. I’m on top of it tonight.

raven canopy
#

it's pretty easy. i run travis on my forks before PRing

#

i can help if you need. (i don't build on local machine...travis does it better)

opal elk
#

Ah, got it. I’ll look into it soon-ish.

idle owl
#

I run pylint and build sphinx. And that covers most travis failures.

raven canopy
#

well, i will put this disclaimer: my method increases commits. πŸ˜„

opal elk
#

But I can always delete the branch on the remote, squash commits and push a fresh copy to hide my shame!

#

(Not that I’ve ever done that at work...)

idle owl
#

We don't judge πŸ˜ƒ

raven canopy
#

why do buffers always have to be...well, buffered? harumph.

slender iron
#

<@&356864093652516868> and anyone else interested. Meeting tomorrow here on Discord at 11am Pacific / 2pm Eastern. Note: We here in the US changed to daylight savings time. So double check your times here: https://www.timeanddate.com/worldclock/fixedtime.html?msg=CircuitPython+Weekly&iso=20180312T11&p1=234

manic glacierBOT
#

Late night notes/sanity check, after beating usb.c into my brain and breaking it by using printfs.

Using the USB_RX_BUF_SIZE = 128 thread I latched onto yesterday, I think we're hitting the buffer limit on line 125 of usb.c->read_complete():

if (count > (uint8_t) (USB_RX_BUF_SIZE - usb_rx_count)) {
        atomic_leave_critical(&flags);
        return true;
}

I got to this point with my crude printf debugging (no output; only breaking). When pasting under 128 cha...

manic glacierBOT
drowsy geyser
#

[Morning, crew! πŸ˜ƒ ]

umbral dagger
#

@drowsy geyser 'morning

#

Actually, technically just for a few more minutes here.

drowsy geyser
#

Yep, had to sneak it in before 0900 (Adafruit NW here)

solar whale
#

@slender iron I’ll be listen only for the Telecon today. On a plane.

slender iron
#

<@&356864093652516868> The meeting is in an hour!

cunning crypt
#

Ooh. I'll be here

drowsy geyser
#

Yep. Moved a work meeting so I can attend. πŸ˜ƒ

raven canopy
#

I will either not be on, or late/lurking. Someone schedule a work telecon. Might need to put up a recurring calendar item for Monday 1PM CT "Highly Critical, Life-Saving Off-site Appointment". 😁

solar whale
#

I think my record was 3 telecons at once.

stuck elbow
#

I will have a live meeting at the time

solar whale
#

Cool! I can listen from the plane!

idle owl
#

Nice!

cunning crypt
#

What's next, listening from the moon?

timber mango
#

Start with McMurdo Station on Ross Island in Antarctica. ;)

cunning crypt
#

@slender iron The cat thinks your talking is garbage, it seems.

#

Mumble is cool!

#

I've used it in the past for gaming, as a replacement for TeamSpeak

solar whale
#

Hmm, audio is not very reliable. Oh well...

cunning crypt
#

@solar whale You're saying your connection isn't very sound?

slender iron
#

<@&356864093652516868> meeting starting soon!

raven canopy
#

Lurking for now..

cunning crypt
#

@slender iron You should call it the Sunday board then, because it's hole-y.

drowsy geyser
#

groan

cunning crypt
#

Mixing of metric and Imperial is super annoying.

drowsy geyser
#

@cunning crypt Especially when creating spacecraft. Tends to cause crashes....

cunning crypt
#

Or planes. Run out of fuel.

twin mica
#

must be annoying in certain cad packages, it's quiet flexible in f360 πŸ˜ƒ

cunning crypt
#

Hug Report: Group Hug, because you all are awesome.

timber mango
#

Top-down; bottom-up; middle-out.

#

.oO(..USB paste)

errant grail
#

inside-out

solar whale
#

Group hug!

raven canopy
#

@ me when I'm on deck..

pastel panther
#

Hug reports: to @idle owl and @raven canopy for continuing to rock out with the docs (out?) and everyone of #help-with-audio for already rocking on some exciting projects

slender iron
#

@raven canopy you too!

raven canopy
#

HUGS: @kattni & @tannewt for pushing through on the second round of doc update PRs. @hukuzatuna for helping out kattni with learn guides and discord support; nice to see you back on a regular basis. And a group hug!

slender iron
#

thanks!

idle owl
#

Thanks @raven canopy

timber mango
#

"spy" means SPI here. ;)

#

A potentiometer feather-wing would be a big seller for a lot more than audio applications.

cunning crypt
#

@timber mango are you saying it has a lot of Pot-ential?

#

My projects have been... not at all CircuitPython related

#

Working on replacing 130-ish ATMega328s with ATMEga328Ps

#

That's.... "fun"

pastel panther
#

Going gold in music means something about record sales

raven canopy
#

Or connectors...

#

There's that keyboard noise I needed to complete my Monday...

solar whale
#

Enjoyed great weather in Seattle! Looking forward to getting back to stmpe610 driver. Hope we keep power in storm tomorrow.

umbral dagger
#

Like @cunning crypt I've been pretty exclusively in hardware & guide writing land of late.

drowsy geyser
#

No problem! Happy to help out!

timber mango
#

CircuitPython code (or driver) for:
http://adafru.it/811 7 segment display x 4 digits
with:
http://adafru.it/450 *74HC595 Shift Register (2x, cascaded)
Probably will bit-bang the 74HC595 initially, as I just did one for the ST7565 LCD. Then I'll see if SPI makes sense for this chip (74HC595 Shift Register) or not.

tulip sleet
cunning crypt
#

I've learned the most by effectively re-inventing things...

twin mica
cunning crypt
#

@twin mica You've decided to kick things up a notch?

#

Also, "Enter the REPL" sounds like a movie.

idle owl
#

@raven canopy You'll have to go back and listen to the beginning, it was all about you. πŸ˜ƒ

raven canopy
#

Where is the...there it is: 😊

timber mango
#

BTW the PID 811 7 segment display is incredibly efficient. 18 mA to illuminate '8.8.:8.8.' (all segments lit).

pastel panther
#

Status: Figured out the last bit needed for hardware dotstar support in 3.0 and verified qspi flash is working on my m4 board so I’m ready to pull the trigger on some new board revisions, likely slightly smaller and somewhat larger. I’m also going to try and create a reference version with notes on how to create new board versions with more or fewer features. PM me if you’re interested in what I have so far.

I will probably switch gears into working my pinmux tool. If anyone has javascript canvas or 31337 CSS skills, ping me as I might need a bit of help with some UI bits I’m hoping for longer term

Also trying to teach myself about op amps to level up my audio electronics skills. Let me know if you have any tips, resources or insights.

timber mango
#

Op Amps are mostly on my short list as well.

raven canopy
#

STATUS: doc updates are done & done! supervisor.runtime.serial_connected is done; pending review & merge. Working on the "128char max paste in REPL" open issue. Have cookiecutter updates ready, but would like to do the conf.py before putting in PR. FRAM driver is still in queue.

#

Si

timber mango
raven canopy
#

He is now...

errant grail
#

Yes, as he speaks.

drowsy geyser
#

<looking at the Trellis> No mounting holes? Hmmmm. I'll need to look at the PCB design to figure out how to mount it.

raven canopy
#

There's two unused holes... 4 would be better.

timber mango
drowsy geyser
#

Ok, perfect!

errant grail
#

... and rotary encoders?

raven canopy
#

Carrier board + ribbon cable?

#

Poor DIN-9..

twin mica
errant grail
#

The old 1/8 versus 1/4 TRS debate...

raven canopy
#

Untztrument!!!

pastel panther
#

A midi-din and CV wings would be great for those of us with old synths

errant grail
#

If you go to 1/8", use the 3-conductor (TRS) version so that differential in/out is available. OldCrow would have better feedback on this, though.

timber mango
#

pitch

twin mica
raven canopy
#

:+1:

#

Haha

pastel panther
#

Please Link, Comment and Subscribe!

drowsy geyser
#

Thanks everyone!

pastel panther
#

Hit Dat Like Button!!!!

errant grail
#

At some point @slender iron will be able to "play us out" with his synth.

raven canopy
#

Thanks peoples!!! Talk to you laters...

errant grail
#

Thanks!

timber mango
#
 $ zdump -v EST5EDT | egrep 2018
pastel panther
#

πŸ‘‹

cunning crypt
#

So... does a Chiropractor have a "Back catalog"?

timber mango
#

VCF (voltage controlled filter) ?

drowsy geyser
#

Yes, just like a lumberjack has a "back log"

timber mango
#

+/- 15 VDC is common for old school op amp based circuits.

raven canopy
#

Yes, iirc

slender iron
drowsy geyser
#

^^^ needs to go look at the M4 specs. The tiny robot can load either the FeatherWing library (to control the drive motors) OR the SR-04 control code. Trying to run both gives me memory errors.

twin mica
timber mango
#

Yeah she was doing that stuff right after the POV stuff.

#

SAMD forever. ;)

raven canopy
#

"I've got a fever. And the only prescription, is more CircuitPython"

timber mango
#

Hug report: the fellow who ported CircuitPython to a new target board the other day.

>> [Friday at 9:34 PM UTC] @buoyant wigeon : CP is working ...

pastel panther
#

Can I take a minute to comment on the quality of CGrover's mic?

twin mica
errant grail
#

@pastel panther comment on the mic is okay. The vocals, though...

pastel panther
#

I really would like porting as much of this to adafruit compatible & CP boards:
http://ucapps.de/

#

lol

slender iron
tulip sleet
pastel panther
#

Oh man, a trellis version of the OP-1 would be amazing

slender iron
pastel panther
#

❀

timber mango
#

op amps were chosen for EML 101 due to their stability

pastel panther
raven canopy
#

This is work..
πŸ˜€

raven canopy
#

We could put it in C...

timber mango
#

Firmata is said to be based on a protocol not wholly unlike MIDI.

manic glacierBOT
raven canopy
#

πŸ˜‚

idle owl
#

r a b b i t h o l e ..................

pastel panther
errant grail
#

@pastel panther Thanks. A friend of mine has some custom Python DMX-MIDI applications he uses to run his for-rent PA system service. I believe he also uses the DMX wireless protocol over LoRa.

pastel panther
#

nice

tulip sleet
errant grail
#

... with a few RPi node using a grid network.

pastel panther
#

it's "research!"

raven canopy
#

I like "frontpack"

timber mango
#

"featherwing, double-wide"

pastel panther
#

Pressure sensitive pads would be sweeeeeeeeeeeet

raven canopy
#

MPC dreams is what pushed towards the lib (and ladyada)

timber mango
#

'velocity' is the oldschool word for that in music controllers

pastel panther
#

@slender iron let's be honest, we're talking about a trellis/feather modular ecosystem πŸ˜ƒ

timber mango
#

I like 1.625 " minimum between potentiometer shafts, on a (35-ish? degree) diagonal.
About 1" horizontally (maybe 1.125" horizontal pitch). Just measured this grid I created a few weeks ago.

raven canopy
#

Rotary > pots. Feedback is nice...

cunning crypt
#

@raven canopy You're not a fan of pot? I guess you don't live in Colorado then.

raven canopy
#

Haha. I do not...

manic glacierBOT
raven canopy
#

They're not that hard...

#

πŸ˜€

idle owl
#

There's no wizard emoji. I am disappointed.

raven canopy
#

There is a catch-all emoji for magical things.. πŸ˜‰

#

Alright. Gotta go earn some dollars... Later taters.

#

Wait, trellis talk..

#

You could do a new layout... Just need new traces. HT16K33 is the brains

timber mango
cunning crypt
#

🎩 ✨
@idle owl That's about as close as I can get to "Magic"

idle owl
#

@cunning crypt Ok that's pretty well done.

raven canopy
#

Looked at it. Didn't gain full understanding

manic glacierBOT
raven canopy
#

Later

manic glacierBOT
glossy radish
#

With a Trinket M0 running circuitpython, Is it possible to use the USB as a serial port. Not only as a serial console. Sending and receiving bytes and bits over usb the serial port ?

drowsy geyser
#

I don't know. That's a good question. I would expect it to interfere with the REPL

slender iron
#

@glossy radish we don't have a good answer now

glossy radish
#

So it's on the way, in the future. Best way now seems to use the trinket with CPP and Arduino.

manic glacierBOT
#

No rush! Thanks for the help!

On Mon, Mar 12, 2018 at 1:33 PM jerryneedell notifications@github.com
wrote:

Sure, but It’ll be late tonight or more likely tomorrow before I can. I
have not tried the latest version yet an will do that as well.

β€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/adafruit/circuitpython/issues/655#issuecomment-372452759,
or mute the thread
<https://github.com/notifications/...

slender iron
#

yup, on the radar @glossy radish

manic glacierBOT
stuck elbow
#

@slender iron do you have a link to the meeting recording?

slender iron
#

yup!

stuck elbow
#

thank you!

slender iron
idle owl
#

Thanks @slender iron!

slender iron
#

np, good timing. πŸ˜ƒ

#

my feather m0 express's usb isn't happy when I'm copying the bundle over

raven canopy
#

slow?

slender iron
#

its not going at all

raven canopy
#

well, that's a form of "slow". πŸ˜„

slender iron
#

switching to the metro m0 to investigate

#

yup yup

#

the status led kept going though

stoic gazelle
slender iron
#

@stoic gazelle I think you'll need a different pin

stoic gazelle
#

Are there different ways to set the pins for the feather wing? I guess I thought it'd be a set thing

slender iron
#

looks like board.D10 would work

#

SD_CS is for the feather adalogger (not wing)

stoic gazelle
#

I guess that's where the confusion started - the learn page is specifically for the adalogger featherwing

#

So I thought ooh cool it should be a good starting place :)

slender iron
#

yup yup, its likely mirrored

#

can you try D10 and let me know if it works?

stoic gazelle
#

Sure thing

slender iron
#

I'll update the guide if it does

stuck elbow
#

@slender iron I have some CSS skills

#

not much canvas experience, though

slender iron
#

I was reading someone's status

stuck elbow
#

ah, sorry

slender iron
#

np

stuck elbow
#

listening it while doing something else, and I missed the context

slender iron
#

np, just know you need to ping someone else πŸ˜ƒ

stuck elbow
#

@pastel panther I can CSS

raven canopy
#

protip: don't close all tabs when you haven't submitted typed comments...

stoic gazelle
#

@tannewt, looks like I may have a file system issue as I got an oserror: 19 when I do a soft reboot (it has the example code in the main.py with SD_CS set to D10) The 16gb SD card was formatted with fat32 from gparted

slender iron
#

what line of code generated the error?

stoic gazelle
#

I don't think it said, I'll look again

slender iron
#

sometimes we fail to reinitialize everything correctly

stoic gazelle
#

Line 16

slender iron
#

whats on the line?

stoic gazelle
#

storage.mount(vfs, "/sd")

#

Ah, I didn't see there were multiple complete examples, this is the sdcardlist example

#

I'll come back to this in a bit I need to get on the road to get home. Thank you for your time and help

slender iron
#

np, I think there is a bug with "unmounting" on reload

#

welp, I got active_read, active_write and usb_busy all true for usb_mass_storage...

#

#shouldnothappen

pastel panther
#

lol

slender iron
#

digs out the beagle

#

I think something in usb land is saying we're done when we're not...

manic glacierBOT
#

The Feather nrf52 is a bad example because it uses a USB -> UART chip like the ESP8266.

When I initially glazed at the issue, I failed to recognize the "atmel-samd" label. I really just wanted to figure out if it was a core versus a port issue (with the knowledge that USB/UART implementations differ).

What does ASF4 do when true is returned?

What I'm surmising is that it is releasing the lock on the received buffer [usb_rx_buf] and letting usb_read() return the data to `stdo...

raven canopy
#

man...was just getting into the zone, and the child unit reminded me we have walking dead to watch... life is so conflicting sometimes. πŸ˜„

proven laurel
#

Haha tough life man.

stoic gazelle
#

tannewt, not @ing since I think you're likely away but thought i'd send an update.
I tried from the with the step by step repl instructions and got an error on: storage.mount(vfs, "/sd")
which I think is probably expected

slender iron
#

thats the oserror 19?

stoic gazelle
#

yup

slender iron
#

would you mind filing an issue?

#

_spi_m_sync_trans

#

oops

stoic gazelle
#

sure thing

#

thanks

slender iron
#

thank you! that way I won't lose track of it

stoic gazelle
#

πŸ˜ƒ

#

woa thats a big smiley

manic glacierBOT
#

using an feather M0 with adalogger featherwing in trippler I get an OSError: 19 when trying to run storage.mount(vfs, "/sd")

REPL:

import board
import busio
import digitalio
import adafruit_sdcard
import storage

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

Use board.SD_CS for Feather M0 Adalogger

cs = digitalio.DigitalInOut(board.D10)

sdcard = adafruit_sdcard.SDCard(spi, cs)
vfs = storage.VfsFat(sdcard)

...

stoic gazelle
#

@slender iron let me know if anything needs clarification or additional info

slender iron
#

πŸ‘

stoic gazelle
#

(fixed missing express from issue...)

manic glacierBOT
manic glacierBOT
stoic gazelle
#

for the gps featherwing, could cloudy skies and precipitation (it is snowing) + end of antenna by the window keep me from getting fix?

manic glacierBOT
slender iron
#

@stoic gazelle yeah I think so. south facing is best I think

manic glacierBOT
slender iron
#

@solar whale I have luck using my phoen to take a picture of the chip sometimes

stoic gazelle
#

@slender iron ah i had it facing west thanks i'll try again another day when the weather is better
I'm making a (hopefully) simple pothole and stoplight tracker which will hopefully record to sd card so I can send the pothole information to the city/county road departments

raven canopy
#

@stoic gazelle ingenius!

stoic gazelle
#

i'm hoping i can use the joywing, adalogger featherwing, and gps featherwing together

raven canopy
#

as long as you don't run into pin-smashing, should be good. but, code space might get a little tight?

stoic gazelle
#

yeah i'm going 1 step at a time, if i can only use 2 i'll do the data logger and the gps and then wire up 4 buttons

#

one button for each: stop, start, other side of road, my side of the road

#

i ran into issues with sd card and gps though so i'll have move on even though those are core to the project or if need be switch to arduino - still will need to make sure no pin smashing is going on

raven canopy
#

@solar whale that looks like the right chip. if i had to guess at least...

solar whale
#

good - not easy to capture

#

mine boots and the SPI flash FS is working well now.

raven canopy
#

@stoic gazelle if you want to stay with circuitpython, and code space becomes tight, you could try and strip out non-essential functions from your libraries. thinking along the lines of, say, gps.speed (haven't dug into the lib...just an example). that'll save you space on imports.

#

@solar whale seems yours is the same one on the product page pictures.

stoic gazelle
#

ah ok i'll remember that, thanks

raven canopy
#

you'll still have to locally mpy-cross them afterwards.

marble hornet
#

hey adafruit! thank you so much!!!!!!! i love your cir-py boards and have been truing to make my own specific purpose board with cir-py for a while. and i just used adalink and a j-link edu to flash the itsybitsy_m0 bootloader back onto an itsybitsy by following your github notes and using the awesome resources you provide to teach myself. thank you so much. the cir-py community and the adafruit company have helped me learn so much. you all have my eternal gratitude. and i still need to work out some of the kinks but thank you all so much! would anyone mind giving alittle help?

solar whale
#

@stoic gazelle did you get teh SD card working - I think you have a line missing in your mount.

stoic gazelle
#

i didn't get it working

solar whale
#

just a sec - checking.

stoic gazelle
#

i was going by the guide so if we find the bug we can help pass the knowledge on to get it fixed

raven canopy
#

@marble hornet glad you're enjoying circuitpython!! what sort of help do you need? we'll try to help. it's a little quiet right now, but people generally scroll back and read what they've missed.

solar whale
#

@stoic gazelle my mistake -- that sequence works for me on am M0 Express - but I do use D5, not D10

#
import adafruit_sdcard
import busio
import digitalio
import board
import storage
import sys
# Connect to the card and mount the filesystem.
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(board.D5)
sdcard = adafruit_sdcard.SDCard(spi, cs)
vfs = storage.VfsFat(sdcard)
storage.mount(vfs, "/sd")
stoic gazelle
#

oh well i'm not set on D10 πŸ˜ƒ

#

i'll try it out

solar whale
#

import sys is foe something else - not needed.

#

OK you - have to cut teh jumper

#

meant to say - mine is on a metro_m0_expres

stoic gazelle
#

oh

solar whale
#

I can try moving it to the feather m0 express - may take a few minutes

raven canopy
#

@marble hornet also, I put your "thank you adafruit" message over in the #hug-reports channel. If you object, let me know and I will delete it.

solar whale
#

I have used a SD_Cadre breakout board on the feather M0_express - same pins - not problem

#

Also - are you using 2.x or 3.0?

marble hornet
#

@raven canopy thanks for the quick responce! well after the loader was flashed it only appears as "itsyboot" when plugged in. i dragged the .uf2 for the itsybitsy onto it after remebering where to find cir-py updates: here: https://github.com/adafruit/circuitpython/releases/tag/2.2.4 this seems to have fixed the issue

#

however

#

i am curious if i can make my own .uf2 version so I can add my own pin names and other things etc any tips? and @raven canopy thanks for putting it in #hug-reports

stoic gazelle
#

@solar whale currently 2.2.4

solar whale
#

trying it first with 3.0 since taht is waht I have installed.

stoic gazelle
#

i'm okay with upgrading if that helps, it'd be nice to not have to modify the hardware just yet if possible

#

is there a different library bundle for 3.0?

raven canopy
#

@marble hornet it is possible. this guide, while outdated and refers to micropython, will get you setup with the toolchain to build your own firmware.

solar whale
#

Mounts with D5 - now trying D10

marble hornet
#

@raven canopy thanks ill take a look.

raven canopy
#

you're welcome. also, if you do decide to build your own, i recommend using the 2.x branch. master is for dev and doesn't have everything working right now.

#

@marble hornet and, what OS are you on?

solar whale
#
jerryneedell@Ubuntu-Macmini:~/projects/feather_m0_express$ cat sdmount_d10.py 
import adafruit_sdcard
import busio
import digitalio
import board
import storage

# Connect to the card and mount the filesystem.
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(board.D10)
sdcard = adafruit_sdcard.SDCard(spi, cs)
vfs = storage.VfsFat(sdcard)
storage.mount(vfs, "/sd")
``` ```>>> import sdmount_d10
>>> import os
>>> os.listdir("/sd")
['.Spotlight-V100', '.fseventsd', 'test.txt', 'lib', 'hello.py', '.Trash-1000']
#

@stoic gazelle that was an adlogger featherwing on a feather M0 express with CP 3.0

marble hornet
#

@raven canopy im running osx but i have windows installed too, it just hasn't been setup. like no discord or even arduino ide just atmel studio. (unused atmel studio )

stoic gazelle
#
>>> import busio
>>> import digitalio
>>> import board
>>> import storage
>>>
>>> # Connect to the card and mount the filesystem.
>>> spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
>>> cs = digitalio.DigitalInOut(board.D10)
>>> sdcard = adafruit_sdcard.SDCard(spi, cs)
>>> vfs = storage.VfsFat(sdcard)
>>> storage.mount(vfs, "/sd")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: 19
solar whale
#

Teh version fo CP3.0 was a few weks old - I am updating to current master - just to check.

marble hornet
#

how does adafruit make thier .uf2 files w/ libraries included. like where the pin definitions for the board module are located? can they be customized? many thanks for all the help

raven canopy
#

for the VM, i recommend you stay with osx. as one of the very few windows guys here, it can be painful get it all working.

marble hornet
#

@raven canopy i was planning to stay with osx (im comfortable with it.) thanks for the tip though. i am unfamiliar with github, what is 2.x ?

stoic gazelle
#
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sdmount_d10.py", line 12, in <module>
OSError: 19
raven canopy
#

and that link is to the 2.x branch. you'll need to setup a GitHub account to create a fork (copy) of circuitpython . GitHub actually has a very good set of tutorials to get you familiar with using the site.

solar whale
#

@stoic gazelle - confirmed taht is still works for me with CP3.0 master. Do you ahve anything else connected to the feather_m0_express?

stoic gazelle
#

i took off the gps and joy wings so no not any more

solar whale
#

If I rad things correctly, Error 19 is "No Such Device"

stoic gazelle
#

so possibly an sd card error?

solar whale
#

waht kind af card are you using?

stoic gazelle
#

it is a fat 32 16gb card

solar whale
#

brand

stoic gazelle
#

sandisk

manic glacierBOT
stoic gazelle
#

I need to head to bed, I can try with cp 3.0 tomorrow and double checking the micro sdcard/trying other micro sdcards
thank you very much

solar whale
#

mine are only 4Gbyte - do you have anotehr card to try.

marble hornet
#

@raven canopy okay, forked , thank you

#

looking...

solar whale
#

OK -- good luck and good night!

stoic gazelle
#

yeah i'll see if i have a smaller one tomorrow

#

thank you! πŸ˜ƒ

#

and good night

raven canopy
#

good night @stoic gazelle .

#

@marble hornet i do recommend watching TonyD's youtube video on that page a couple times. helps to understand the process before diving in. took me like a week to get it all going (but...Windows πŸ˜„ )

marble hornet
#

oh so each fork is a copy, regardless of selected branch!! ill be sure to look at that video when time comes.

#

@raven canopy last question (probs not but... i neeed sleep (just had a first robo-comp this weekend)): do you know what is used to create the .uf2 file? how it is synthesized?

raven canopy
#

yeah, a fork is the WHOLE repository, to include all of the branches.

solar whale
#

Off to bed as well - hope te power is still on in the morning.... Good night all!

raven canopy
#

night @solar whale πŸ¦‰

#

and what's one more nor'easter?

pastel panther
#

night @solar whale

marble hornet
#

night @solar whale

raven canopy
#

@marble hornet I'm not exactly sure. i know that the .uf2 concept/format was developed by Microsoft...and it works. thats about it. πŸ˜„

marble hornet
#

or @pastel panther do you know how? (above)

raven canopy
marble hornet
#

@raven canopy thanks so much, ill start chewing away at cir-py more. stay safe!

raven canopy
#

again, you're welcome. there's a lot to chew on...i'm still in my early bites as well. πŸ˜‹

marble hornet
#

** bytes ?

raven canopy
#

haha. correct, you are!

pastel panther
#

sorry, can you restate your question? You're trying to build a uf2?

#

@marble hornet If you're trying to build a uf2 on osx, you'll want to get the arm dev tools cask from brew

#

let me look up the exact name

#

brew cask install gcc-arm-embedded

slender iron
#

uf2 is a reformatted bin file

raven canopy
#

i pointed him to the Vagrant setup. but, if there's a better way...well, that's even better!

pastel panther
#

you'll obviously need to install homebrew if you don't have it

slender iron
#

osx + brew is my setup

raven canopy
#

is there a better guide for building firmware, than tony's micropython ones? (not for me...i know i'm stuck in VM land with windows)

marble hornet
#

let me check if i have brew, this is a new macbook

#

i ahve it

pastel panther
#

@raven canopy not that I've seen but then again I didn't look hard

marble hornet
#

@pastel panther is the intall above good to go?

pastel panther
#

brew cask install gcc-arm-embedded is exactly what I used

slender iron
#

@raven canopy its still a good option, especially for windows

pastel panther
#

@raven canopy what version of windows? I've heard the linux subsystem for Windows 10 is actually pretty good

raven canopy
#

especially = essential (we don't enjoy make like everyone else)

#

@pastel panther i downloaded WSL Ubuntu the other day. I need to find out if folders can be shared...and USB. neither would in the little time i spent with it

#

and i read that only USB MSC passthrough is currently supported...which may or may not be all i need.

pastel panther
#

also CDC for the REPL?

raven canopy
#

yeah, CDC would be needed for REPL. but, i could still use the Windows native for that...

marble hornet
#

so a uf2 file is a bin with a different file ending?? I'am guessing in the dark here but is a .uf2 file where the python interpretter is? and the uf2 bootloader handles the magic block management and serial / usb appearance while the python runs "ontop".

pastel panther
#

@marble hornet Almost but not quite

marble hornet
#

done installing

pastel panther
#

what board are you trying to build for?

marble hornet
#

@pastel panther okay, i cloned my fork of cir-py to my local hardrive

#

i have an itsy bitsy m0 hooked up right now eventually i want to make my own board w/ a samd21g and another samd21e. im also using it mostly to make a tricorder.

pastel panther
#

@marble hornet actually your prior description of how uf2 works was pretty spot on with the caveat that the bootloader only sets up usb MSC for loading the uf2 file onto the board. After it's loaded CP (yes in the uf2 file) takes over and handles running the interpreter and setting up USB mass storage and serial for loading python files and communicating via the REPL

#

you'll want to go into <your_cp_dir>/ports/atmel-samd/

marble hornet
#

in terminal?

pastel panther
#

then run make BOARD=itsy_bitsy_m0_express

#

yes

marble hornet
#

oh okay,

#

...

raven canopy
#

once it's done compiling, you'll have a folder build-itsy_bitsy_m0_express

#

and the firmware.uf2 will be in that folder.

marble hornet
#

its throwing a " Makefile:5: *** Invalid BOARD specified. Stop."

pastel panther
#

hmm..

raven canopy
#

are you on branch master?

#

git branch

pastel panther
#

I mistyped

#

make BOARD=itsybitsy_m0_express

#

there is no space in itsybitsy

marble hornet
#

okay

raven canopy
#

ahhh

#

nice catch!

pastel panther
#

if you ls boards/ you should see a dir for it

marble hornet
pastel panther
#

oh I forgot

#

go into the root of your circuitpython checkout and type
git submodule update --recursive

marble hornet
pastel panther
#

There submodules are essentially references to other repos that your project/repo has included

#

it probably didn't build properly if you didn't get the submodules

raven canopy
#

hmm. it should error out if the submodules aren't there. well, it does for me...

marble hornet
pastel panther
#

the lowest level directory of the checkout

raven canopy
#

that was not the error i was looking for

pastel panther
#

it should have the ports dir

marble hornet
#

looking up...

#

checkout

pastel panther
#

when I say "lowest level" others mean "highest", fwiw

raven canopy
#

~/circuitpython/?

pastel panther
#

probably

#

unless you cloned it with an alternative name

#

sorry by checkout I meant clone

marble hornet
#

i didn't

#

oaky

pastel panther
#

so it should be called 'circuitpython'

#

go into that dir and run the git submodule update --recursive

marble hornet
#

just saw your message, trying....

#

run

#

navigating back to port

#

still not making the uf2 file. @pastel panther THANK you for all the help. if you want to head to bad i'm fine with waiting till tomorrow

pastel panther
#

I'm up doing stuff so I'm happy to help but I can't tell if you're doing everything precisely correct

#

I'll write a list of steps that you should follow explicitly and it should work

marble hornet
#

okay, want to take it slower?

pastel panther
#

sure

#

gimmie a minute

marble hornet
#

im going to exit and restart terminal. take all the time you need

pastel panther
#

make a local copy of circuitpython by cloning it:
git clone https://github.com/adafruit/circuitpython.git

stuff downloads
go into the directory that you just made:
cd circuitpython

update/fetch your submodules:
git submodule update --recursive

more stuff downloads
Once the submodules have successfully updated, move into the port directory for the SAMD chips:
cd ports/atmel-samd

build for the itsybitsy_m0_express:
make BOARD=itsybitsy_m0_express

If the build is successful you should see a message when its done saying that it created a firmware.uf2. If you don't see this, post or screenshot any errors you see

#

you can skip the first step if you're confidant you can get into the directory that was created as a result of your original git clone....

#

If after any step you see something that looks like an error, let us know

marble hornet
#

taking video of me typing in the commands

pastel panther
#

lol

#

whatever works

marble hornet
#

file is too large

#

i'm going to paste in the terminal if thats okay w/ you all. how do i make the code in the dark box?

pastel panther
#

put it in three backticks like so:

#

```

CODE
CODE
CODE

```

marble hornet
#
Jonahs-MacBook-Pro:~ jonahy-m$ cd .git
Jonahs-MacBook-Pro:.git jonahy-m$ git clone https://github.com/adafruit/circuitpython.git
Cloning into 'circuitpython'...
remote: Counting objects: 73490, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 73490 (delta 1), reused 1 (delta 1), pack-reused 73481
Receiving objects: 100% (73490/73490), 44.55 MiB | 3.79 MiB/s, done.
Resolving deltas: 100% (53623/53623), done.                  (skipping ls)                                                                                                                                                                                                     Jonahs-MacBook-Pro:.git jonahy-m$ cd circuitpython
Jonahs-MacBook-Pro:circuitpython jonahy-m$ git submodule update --recursive
Jonahs-MacBook-Pro:circuitpython jonahy-m$ cd ports/atmel-samd                                                                                                                                                                                                                                    Jonahs-MacBook-Pro:atmel-samd jonahy-m$ make BOARD=itsybitsy_m0_express
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
install -d build-itsybitsy_m0_express
python3 tools/gen_usb_descriptor.py \
        --manufacturer "Adafruit Industries LLC"\
        --product "Itsy Bitsy M0 Express"\
        --vid 0x239A\
        --pid 0x8012\
        build-itsybitsy_m0_express/autogen_usb_descriptor.c
Traceback (most recent call last):
  File "tools/gen_usb_descriptor.py", line 9, in <module>
    from adafruit_usb_descriptor import cdc, standard, util
ModuleNotFoundError: No module named 'adafruit_usb_descriptor'
make: *** [build-itsybitsy_m0_express/autogen_usb_descriptor.c] Error 1                      ```
#

there was no output after git submodule update --recursive

pastel panther
#

huh

#

let me look something up

marble hornet
#

okay

#

i think i need to head to sleep soon

pastel panther
#

try adding the remote option:
git submodule update --recursive --remote

#

ok

marble hornet
#

trying...

raven canopy
#

i thought it's git submodule update --init --recursive

pastel panther
#

that's probably right 😐

marble hornet
pastel panther
#

do what @raven canopy said

marble hornet
#

ooh @raven canopy 's code did something

pastel panther
#

sorry, it's been forever since I did my checkouts

marble hornet
#

im going to try making again

pastel panther
#

it should work after the submodules update

raven canopy
#

need to make mpy-cross too? no?

#

i peeked at tony's guide πŸ˜„

marble hornet
#

yay

pastel panther
#

you can, but I never use it

marble hornet
#

its making a bunch of files

pastel panther
#

I probably should eventually

#

ya, it helps when you don't have a clown telling you to run the wrong commands πŸ™ƒ

raven canopy
#

*two clowns 🀑

marble hornet
#

it made ```54136 bytes free in flash out of 253440 bytes ( 247.5 kb ).
4820 bytes free in ram for stack out of 32768 bytes ( 32.0 kb ).

Create build-itsybitsy_m0_express/firmware.bin
Create build-itsybitsy_m0_express/firmware.uf2
python2 ../../tools/uf2/utils/uf2conv.py -b 0x2000 -c -o build-itsybitsy_m0_express/firmware.uf2 build-itsybitsy_m0_express/firmware.bin
make: python2: No such file or directory
make: *** [build-itsybitsy_m0_express/firmware.uf2] Error 1```

#

clown or not thank you

#

but

raven canopy
#

do you have python installed?

marble hornet
#

i do

pastel panther
#

do which python

marble hornet
#

3.6.3

#

(v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08)

pastel panther
#

try which python2

marble hornet
#

in term?

pastel panther
#

ya

marble hornet
#

where in term?

pastel panther
#

anywhere

#

it will tell you the path to the executable

marble hornet
#
/usr/bin/python```
pastel panther
#

do it with python2

marble hornet
#
Jonahs-MacBook-Pro:atmel-samd jonahy-m$```
pastel panther
#

you probably need to install python2

marble hornet
#

okay

#

most recent py2?

pastel panther
#

ya, you should be able to install it with brew

marble hornet
#

does a .pkg not work?

raven canopy
#

line 370 of the Makefile: python2 $(TOP)/tools/uf2.........

pastel panther
#

ah

#

you can try changing to makefile

#

to use python instead of python2

marble hornet
#

okay

#

ill go in and change python2 to python ?

raven canopy
#

all of the others are 3... uf2 might be written in 2. checking.

marble hornet
pastel panther
#

you're probably looking at the wrong Makefile

marble hornet
#

atmel samd?

pastel panther
#

should be circuitpython/tools/uf2/uf2tool/Makefile

marble hornet
#

oh

pastel panther
#

though hold up as sommersoft is checking if changing it will even work

marble hornet
raven canopy
#

no, i was talking about L#370 from atmel-samd/Makefile. though, i may have been on master not 2.x. at anyrate, the line points to uf2conv.py, which is written in python2. it'll fail with 3 (print statements without parens).

pastel panther
#

ok

#

so, long story short install python2?

#

I think I'm going to just keep my mouth shut for now...

marble hornet
#

ok so install 2 .pkg work? also where shoud the final file show up? thanks so much you two!!

raven canopy
#

lol. its a team effort!

#

the final file will be: circuitpython/ports/atmel-samd/build-itsybitsy_m0_express/firmware.uf2

marble hornet
#

okay, thanks

#

rebuilding

raven canopy
#

no worries, man. getting the toolchain running is a task in itself. and usually only done once... (this was told to me when i was setting it all up; wise words)

#

at least you don't have to use the VM. that's an added layer. but, like all things, it becomes muscle memory.

marble hornet
#

wait

#

there is a firmware.bin

#

can i rename it to firmware.uf1

raven canopy
#

i'm sure you could, but i don't think it'll work.

marble hornet
#

it didn't

raven canopy
#

there should be 3 firmware files: elf, bin, and uf2

marble hornet
#

oh!!! its there now

#

OMG THAKNS YOU im going to test it , sound good ?

raven canopy
#

woohooo πŸŽ‰ πŸŽ‰

pastel panther
#

yaaay

raven canopy
#

holy mother of....when did it turn 1AM? ugh..."they" stole an hour from me yesterday and haven't given back yet. πŸ˜„

pastel panther
#

just move to the best coast and you'll get 2 extra

raven canopy
#

alright, i'm out. @marble hornet welcome to the firmware builder's club!

#

@pastel panther "the bill always comes due" <insert eijofor dr strange meme>

pastel panther
#

'night @raven canopy

raven canopy
#

πŸ¦‰ πŸ’€

marble hornet
#

im out too night thank you @pastel panther and @raven canopy

#

THANK YOU

pastel panther
#

guten nacht

raven canopy
#

nacht! schlaf schoen!

pastel panther
#

✈

#

that was that phrase flying right over my head

#

night ...something much?

raven canopy
#

haha. caught it just as i went to hit the sleep button. "sleep well"

#

viele = much (or very...it's german, you can do what you want in that language)

#

there...better. πŸ˜„

pastel panther
#

I though it was much because I though danke schoen meant thank you very much

#

nm, we can do german lessons some other time πŸ˜‰