#circuitpython-dev

1 messages ยท Page 229 of 1

manic glacierBOT
solar whale
#

@slender iron thanks -- Travis works in mysterious ways...

slender iron
#

ya, probably just a bug

solar whale
#

some of my repos got migrated, some have not

cunning crypt
#

@slender iron So, I'm downloading CP 4 b0, and I'm just thinking - If it would be possible to sort the downloads, that would be amazing. Currently, there's... 8 languages and 36 boards (3 of which have both bin and uf2 downloads). 312 files is a lot to sort through, even if they are in a logical order.

slender iron
#

ya, we want to have a download site to make it easy

#

they are easier to grab from s3 actually

cunning crypt
#

That is so much nicer

slender iron
#

you'll want a newer one anyway. there are some good fixes checked in

cunning crypt
#

Any way you could have it so the 'Assets' is default 'closed' instead of showing everything? Or put at the bottom? It's a little intimidating, which is fine for an alpha/beta, but for standard releases not so much

#

Oh? Cool!

slender iron
#

I can't control the way github shows it.

#

for the stable release I want to have the website basics up

cunning crypt
#

Hmm, the S3 doesn't seem to have the latest files. from the 14th

#

Aha, the /ID folder, there we go

slender iron
#

thats the language

cunning crypt
#

There's a ton of "loose" files, then, in the main folder.

#

(Regardless, I've got the correct one)

slender iron
#

I'm aware

#

that's how they used to be sorted

cunning crypt
#

Good to know you've got plans

slender iron
#

ya, always have lots to do

cunning crypt
#

I'm sure! I'm going to go poke at the new display stuff and get out of your hair

slender iron
#

great! thanks. sorry for the grumpiness been working hard on displays and know there is still lots to do

cunning crypt
#

Don't worry, I didn't feel like you were being grumpy, more busy

slender iron
#

ok, cool ๐Ÿ˜ƒ

gusty topaz
#

Guys, I'm having issues with the Featherwing RFM95 lora. I have it on a tripler, at the top I have the M0 Express and the radio featherwing is in one of the open slots. When running the RFM95 example code that comes with the TinyLora library, I got the following:

#

code.py output: Traceback (most recent call last): File "code.py", line 32, in <module> File "adafruit_tinylora/adafruit_tinylora.py", line 150, in __init__ TypeError: Can not detect LoRa Module. Please check wiring!

I get the same error even if I put the featherwing in the other available slot on the Tripler. I can reset the M0 using the reset button on the featherwing and all the solder points seem to be well made. Any suggestions?

#

Crap... forgot to solder the IRQ and Cs wires....

manic glacierBOT
manic glacierBOT
#

Building master with the compiler from developer.arm.com I see:

CC ../../lib/tinyusb/src/class/msc/msc_device.c
../../lib/tinyusb/src/class/msc/msc_device.c: In function 'proc_builtin_scsi':
../../lib/tinyusb/src/class/msc/msc_device.c:273:7: error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation]
strncpy((char*) inquiry_rsp.vendor_id , CFG_TUD_MSC_VENDOR , sizeof(inquiry_rsp.vendor_id));
...

lime trellis
#

is there anything firmware-wise I have to do to run a samd51 below 2.8V?

slender iron
#

@lime trellis you are the first to do it that I know of

lime trellis
#

that awesome! can't wait to work with the portable console.

#

and I'll report back when/if I figure out why this thing is upset

gusty topaz
lime trellis
#

@gusty topaz that looks like it should work for you. Do you have a Jlink?

gusty topaz
#

No, that was going to be my other question. Do I need one if I go through Option 2?

lime trellis
#

Yes but you wont have a get out of jail free card if you get yourself stuck anywhere along the line

#

also, make sure you grab the latest Alpha 4.X build of circuitpython (per the adafruit page you linked)

gusty topaz
#

Sorry, you said that I still need a Jlink for "Option 2" in the description on how to install it on Particle Xenon?

lime trellis
#

Oops sorry I meant that yes you'll be able to program it via option 2 without a Jlink

gusty topaz
#

great, thanks!. I don't consider myself an expert, but I've dealt with Arduino, installing MicroPython on ESP8266 and I'm not afraid of the CLI. I think I'll give it a try (although I'm pretty sure I'll have questions).

lime trellis
#

give it a shot and feel free to ping me with questions ๐Ÿ‘

gusty topaz
#

Thanks!

solar whale
#

@gusty topaz both options require the JLink

#

nrfjprog uses the JLink

gusty topaz
#

wait what?....

#

crap.

solar whale
#

but once loaded it works great ๐Ÿ˜‰

gusty topaz
#

Well... since I already had the Particle Xenon, I was willing to install CP 4 on it. But since the JLink costs pretty much the same as the new feather nrf52840, I might as well just buy it if it comes ready to install CP on it (it's out of stock, though).

lime trellis
#

Is a Jlink required @solar whale ? or just a something monitoring SWDIO SWCLK as a debugger?

solar whale
#

I've only used a JLink -- and nrfjprog is expecting one as far as I know. There may be workarounds or other tools I am not aware of.

gusty topaz
#

So, ther eis no way of installing the UF2 bootloader only by using the mini-usb port on the Xenon?

solar whale
#

I don't know of one. That does not mean it can't be done.

gusty topaz
#

The guide makes reference to a debugger

Make sure your Particle is plugged into a debugger, and that both the debugger and the Particle are connected to the PC.

#

What exactly is that?

#

Never mind, I think it's referring to the Jlink.

solar whale
#

but I don't think it is for loading a bootloader.

tulip sleet
#

I think that the bootloader that comes with the particle boards may require a signed update for the bootloader if you use DFU mode, for security reasons (I thought the Nordic bootloader was like that).

gusty topaz
#

that's too bad, I thought I was going to be able to play with the Xenon and CP4.

solar whale
#

The JLink has gotten me out of a lot of mistakes with bootloaders!

gusty topaz
#

And CP4 support for the bluefruit nRF52832 was recently dropped, right?

solar whale
#

yes

gusty topaz
#

(I have one of those laying around, still in its plastic bag).

solar whale
#

It does not support the uf2 bootlaoder at all

#

but it was possible to program via the DFU bootlaoder.

gusty topaz
#

hmm ๐Ÿ˜ฆ

solar whale
#

even than -- it had no CIRCUITPY drive

#

it worked, but the new bleio module is not avaialble for it..

gusty topaz
#

got it.

lime trellis
#

@gusty topaz I carry around a segger JLink EDU mini ($18) since it's so small. and yeah they're great at saving your butt

gusty topaz
#

@lime trellis does it come with all the needed cables?

lime trellis
solar whale
#

does Segger provide the 2x10 cable -- now Adafruit does -- originaly , you had to get it separately

gusty topaz
#

@solar whale I just noticed that, looks like Adafruit provides all what's needed to connect the Xenon. I'm now considering buying it (I'm about to place an order soon).

solar whale
#

oops wait -- you need the 2x5 cable --

gusty topaz
#

One key question: Is the Xenon planned to be formally supported by CP down the road or installing CP in it is just a cool experiment?.

solar whale
#

included ```This kit comes with a 20-pin (2x10) 0.05" cable and a 10-pin (2x5) 0.05" cable.

gusty topaz
#

@solar whale the description of the product makes reference to that cable:
"This kit comes with a 20-pin (2x10) 0.05" cable and a 10-pin (2x5) 0.05" cable." are we talking a different cable?.

#

Got it.

solar whale
#

As to ongoing support, I have no idea. Good question though.

gusty topaz
#

@tulip sleet do you know anything about the Particle Xenon/Argon having official CP support down the road?

solar whale
#

Bed time here -- good night all ๐Ÿ’ค

lime trellis
#

night @solar whale

#

ah!!! found it! @slender iron

PSA: if trying to run CP on a samd51 <2.8V, you need to adjust the brownout detection

gusty topaz
#

Good night, thanks @solar whale

manic glacierBOT
manic glacierBOT
manic glacierBOT
tulip sleet
#

@gusty topaz We make our own Feather nRF52840 board that's "official" (and there will be more such boards. We're happy to include builds for other boards (and we do) in the CircuitPython source tree. But the main point of the Particle boards is to use their IoT service and software.

gusty topaz
#

@tulip sleet thanks, that makes sense. I was just wondering if builds were going to continue to be offered for Particle products.

lone sandalBOT
valid falcon
#

I'm working on a pinewood derby car using the Hallowing and circuit python to control sounds and lights. I'm using the adafruit_lis3dh library to "feel" for different types of movement. The current triggers that set of different lights and sound are shake and when the car is tilted at a specific downward angle (meaning it's on the track and ready to race). I'd like to add the ability to know when the car is in forward motion and that is where I'm stumped. Anyone willing to point me in the right direction to recognize constant acceleration using the lis3dh library?

raven canopy
#

@valid falcon off the top of my head, you'll want to watch a combination of the z & y axis. while it descends the ramp, z should be positive and y should be negative. i would have to trial-and-error my way through the thresholds though...

valid falcon
#

Thanks @raven canopy . I'm good with trial and error. I'm thinking of trying lis3dh_free_fall too.

raven canopy
#

note: i swapped z & y. forgot that z was the vertical plane on the LIS.

solar whale
#

@valid falcon if I am thinking correctly, when you let the car go, it will "sense" a drop in acceleration in the direction "down the ramp" -- the extreme case is free fall.

#

so basically you are looking for a change in the acceleration being measured when it is let go.

meager fog
#

@umbral dagger hihi i have a bbspi q

valid falcon
#

@solar whale yep that's the goal. I think I'm close. Thank you.

lone sandalBOT
main meteor
#

BBSPI? Bit-bang SPI?

lone sandalBOT
lone sandalBOT
meager fog
#

@umbral dagger p0ke ๐Ÿ˜ƒ

manic glacierBOT
lone sandalBOT
umbral dagger
#

@meager fog Sorry... wasn't paying attention to this screen.

lone sandalBOT
meager fog
#

@umbral dagger all good im writing esp32 code

#

so for the bitbang spi thing - i think we can do something simpler, we just make ab object with same interface as busio.SPI

#

but it uses digitalio underneeth

umbral dagger
#

Rather than base it on pigpio?

#

I.e. handroll the bitbanging on top of, say, gpiozero?

lone sandalBOT
meager fog
#

@umbral dagger you can use digitalio like normal

#

blinka will automatically use libgpiod to do the digialio

#

hacking on esp32 in background

umbral dagger
#

@meager fog Ah. Ok.

meager fog
#

@umbral dagger then it'll work on other chips like OrangePi or onion io or whatnot

lone sandalBOT
river quest
#

@idle owl thanks for takin' care of the PR from discord for the open source listing

idle owl
#

@river quest You're welcome!

haughty bobcat
manic glacierBOT
lone sandalBOT
manic glacierBOT
lone sandalBOT
manic glacierBOT
manic glacierBOT
#

A much-simplified approach to touch sensing!

This is a capacitive touch sensing routine using a single digital
pin. The pin should be connected to the sensing pad, and to ground
via a 1Mohm or thereabout drain resistor. When a reading is taken,
the pin's capacitance is charged by setting it to a digital output
'high' for a few microseconds, and then it is changed to a high
impedance input. We measure how long it takes to discharge through
the resistor (around 50us), using a busy-w...

#

Manually tested on Feather NRF52832 and Feather NRF52840 Express boards, with code like:

import board
import touchio
import time

def auto_set_threshold(t):
    t.threshold = int(sum(t.raw_value for _ in range(0,100)) / 95))

t0 = touchio.TouchIn(board.A0)
t1 = touchio.TouchIn(board.A1)

auto_set_threshold(t0)
auto_set_threshold(t1)

while True:
    print("%4d %d %4d %d" % (t0.raw_value, t0.value, t1.raw_value, t1.value))
manic glacierBOT
manic glacierBOT
foggy wyvern
#

hi everyone, i'm starting with micropython on esp32 devkit board, and I would like to know what IDE is better to use, I tried with PyCharm but not support for esp32. What can you advise me ?

desert iris
#

Try uPyCraft (Windows) or simply adafruit-ampy, its still the best tool. Another great tool for Micropython is mpfshell. I like both ampy and mpfshell

foggy wyvern
#

yes I figured this out with ampy the first time I tried it I got an error. Now with the last firmware it's ok

#

thx for the help

manic glacierBOT
#

I am porting a friend's version of 2014 to cp and the code can't seem to use the __int__method:

here is a smaller but identical use case of what the problem is:

>>> 
>>> class x():
...     def __init__(self, value):
...         self.val = value
...         print(self.val)
...     
...     def __int__(self):
...         return self.val
...         
...         
... 
>>> x
<class 'x'>
>>> g = x(7)
7
>>> g.val
7
>>> g
<x object at 20002fd0>
>>> int(g)
Traceback (mo...
marble hornet
#

it looks correct on github w/out discord adjusting

raven canopy
#

yeah, just an artifact of supporting Markdown... ๐Ÿ˜„

marble hornet
#

isn't tech so cool!

manic glacierBOT
river quest
#
Adafruit Industries - Makers, hackers, artists, designers and engineers!

Zenith is the #circuitpython channel is exploring some new graphics and ideas for Mu.

haughty bobcat
#

@river quest Wow that's great! I'm in contact with Nicholas and we're going to add a design section to the docs so everyone in the MU development community can help out.

river quest
#

great idea, keep me posted, i'll keep updating/posting so folks know about that and can help/contribute

haughty bobcat
#

Ok, hope we can get the real program matching the splash screen. Changing the icons should do it but someone could go above and beyond and change the CSS.

#

I'll keep ya posted

river quest
#

๐Ÿ˜ƒ

#

MadeWith mu blinka

manic glacierBOT
manic glacierBOT
#

__int__ isn't supported.

This implements it:

 diff --git a/py/obj.c b/py/obj.c
index fb59eec82..8646f2d9d 100644
--- a/py/obj.c
+++ b/py/obj.c
@@ -242,7 +242,7 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
     return false;
 }

-mp_int_t mp_obj_get_int(mp_const_obj_t arg) {
+mp_int_t mp_obj_get_int(mp_obj_t arg) {
     // This function essentially performs implicit type conversion to int
     // Note that Python does NOT provide implicit type conversion from
...
haughty bobcat
#

@river quest

#

Hey if you have any nicer images of Blinka I'd love to see them. Specifically vectors.

slender iron
haughty bobcat
#

oh..great

#

thanks so much!

river quest
haughty bobcat
#

wow that is a lot of art

#

thanks

river quest
#

blinka ๐ŸŽจ enjoy ๐Ÿ˜ƒ

exotic pumice
#

I soldered wires for swd to my cpx and now I can't use the bootloader, is that normal?

#

I get the green leds but no drive or ttyACM0

#

I don't have my swd device on me either ๐Ÿ˜ฆ

#

do you think I overwrote part of the bootloader?

gilded cradle
#

The only time I've used the swd pins (on my itsybitsy m4) was to reinstall the bootloader because I had somehow erased it. I'm not familiar with how the cpx behaves without a bootloader, but it sounds like there's a possibility of that. Perhaps somebody with more familiarity can chime in?

exotic pumice
#

the bootloader is at least partially there because I can get red and green neopixels out of the reset button

#

but something's funky

gilded cradle
#

Yeah, mine had nothing light up except a short blip when plugged in.

manic glacierBOT
marble hornet
#

thanks ๐Ÿ˜

manic glacierBOT
#
[adafruit/circuitpython] New branch created: tannewt\-patch\-7
slender iron
#

anyone around to review โ˜ ?

#

thanks @pastel panther ! will merge once travis is happy

manic glacierBOT
manic glacierBOT
#

I was going to report something similiar but I am running Trinket M0 and just uploaded 4.0 Beta and associated libraries. This obvious wasn't fixed in Alpha. So, with a newly purchased Trinket M0 and the main.py that it comes loaded with I get this same error at the same point in Main. I back loaded it to 3.xx and that works. Now if I comment out that line. This is the same line as mentioned in original bug. I get another error.
main.py output:
Traceback (most recent call last):
F...

manic glacierBOT
manic glacierBOT
manic glacierBOT
lone sandalBOT
manic glacierBOT
manic glacierBOT
#
[adafruit/circuitpython] New tag created: 4\.0\.0\-beta\.1
manic glacierBOT
manic glacierBOT
#

Hiya Dan, You're not wrong, and either is gcc :-)

There's a broken logic there, if the packet received is not from DHCP_SERVER_PORT it skips the whole block which sets type. I think your setting of type=0 as a default is not incorrect ... if the packet received is not a DHCP packet it should return an invalid type which will prevent the DHCP_run state machine from continuing on.

The code is a bit of a mess around there ... I'm happy to say this is the WizNet sample code imported in...

manic glacierBOT
manic glacierBOT
gusty topaz
#

General question on CP: Would the M0 Express running CP be able to handle a GPS Featherwing, OLED Featherwing and a Featherwing datalogger (microSD breakout)?

solar whale
#

@gusty topaz I serioulsy doubt it -- the SDCard module uses quite a bit of RAM as does the OLED.. I recommend upgrading to an M4.

gusty topaz
#

too bad, I already placed my order over the weekend ๐Ÿคฆ๐Ÿป

#

hmmm but now that I think about it, I have a Paticle Xenon and I'm waiting on the Jlink to arrive to flash it with CP4.0. That, in theory should work. Right?

solar whale
#

yes -- it should work well.

gusty topaz
#

awe-some!

idle owl
solar whale
#

@tulip sleet your BLE CRICKIT Demo was easy to adapt to control my 4servo arm! ๐Ÿ‘

tulip sleet
#

GREAT!

solar whale
#

exactly what I wanted to do be able to do with it!

idle owl
#

Anyone around have a moment and a mic to help me test audio for the meeting later?

stuck elbow
#

@idle owl sure

idle owl
#

@stuck elbow Thanks! Jump in the channel when you get a chance

idle owl
#

<@&356864093652516868> Weekly meeting in about 10 minutes!

errant grail
#

Lurking in the studio today...

raven canopy
#

๐Ÿ‘‹

tidal kiln
#

lurking

meager fog
#

lurkin'

pastel panther
#

shmerkin'

tulip sleet
#

gherkin

marble hornet
#

Slurping for now, group hug

#

Can speak now

pastel panther
#

Gotta run! ๐Ÿ‘‹

raven canopy
#
  • @jerryn for ID'ing, & @Maker Melissa for fixing the FRAM address issues.
  • @ShawnHymel for continuing to add the SparkFun boards.
  • Group Hug to cover all the things I'm forgetting!
inland tusk
#

I am lurking today

fathom lava
#

Yeah, some of the pins were different between MKRZero and SparkFun's SAMD21 Dev ๐Ÿ˜ƒ

slender iron
#

@meager fog any hug reports and status updates?

meager fog
#

im on voice

slender iron
#

k, you're next ๐Ÿ˜ƒ

#

(i'm used to you being text)

meager fog
#

yepperz

#

yeah i have a moment today - have a meeting at 2:30

slender iron
#

great!

meager fog
#

๐Ÿฆ…

#

๐Ÿฆ… ๐Ÿฑ

slender iron
#

any hugs?

#

๐Ÿ˜ƒ

#

thanks!

raven canopy
#

๐Ÿš€

meager fog
#

๐Ÿš€ ๐Ÿฆ…

#

jinx

#

ohh i forgot one other thing, i wrote a USB Midi library wrapper

#

try it out!

raven canopy
#

Last Week:

  • adabot:
    • Tabulated core download stats; reduces section length by 16 lines
    • Started work to mitigate intermittent Travis cron failures with the library report.
  • FrequencyIn:
    • Still fighting both accurate event counting and associated logic/math. Apologies for the incoherent status update on this last week. ๐Ÿ˜„

This Week:

  • FrequencyIn
  • adabot:
    • Finish cron failures mitigation
    • Work on newline issue for Google Docs transcription
inland tusk
#

@meager fog would be interested in seeing it for my electronic ocirna

marble hornet
#

!!yes please

inland tusk
#

ingyes interest

raven canopy
#

I'd totally hang out for that!

inland tusk
#

interesting definitely

solar whale
#

count me in!

prime flower
#

2048 !

raven canopy
#

๐Ÿ‘ ๐ŸŽ‰ @marble hornet!!! 2 year projects take serious focus!

prime flower
#

Last Week:

this week

  • starting up second semester of grad school midweek
  • another! circuitpython lora/lorawan guide - multiple feather nodes transmitting to the new radio bonnet which is running
    circuitpython rfm9x, and Adafruit IO IO Python to send data to adafruit io...and TTN!

Add low-power long-range radio communication to your Raspberry Pi Project

#

@solar whale whoo radio projects

raven canopy
#

I want to make it to PyCon...but too merch dollars. ๐Ÿ™

marble hornet
#

bye all

gilded cradle
#

Bye

prime flower
#

๐Ÿ‘‹

marble hornet
#

have a great week

raven canopy
#

Thanks everyone! Have a great day/week!

errant grail
#

Bye! Thanks from lurk-land.

stuck elbow
#

by the way, if anybody is coming to FOSDEM next week, I'm there

marble hornet
#

byyyyyye

stuck elbow
#

well, actually this week (weekend)

idle owl
raven canopy
#

63 & sunny here...

marble hornet
#

David s pumpkins?

gilded cradle
#

53 here

raven canopy
#

๐Ÿ‘‹

manic glacierBOT
marble hornet
#

@meager fog I hope your meeting went well

#

@slender iron should I use beta or compile from master ?

#

Oh Nm

slender iron
#

master always I think ๐Ÿ˜ƒ

meager fog
#

@umbral dagger heya for the CP/M do you need a grandcentral or can you use a metro m4

#

(or feather m4)

umbral dagger
#

@meager fog Any M4 will work but you need an SD card shield/wing

meager fog
#

ok can you add a note for that

umbral dagger
#

The grandcentral has that (awesome!) and is shiney & new.

#

k

meager fog
#

might be worth lettin' people know its possible

#

i just know someone's gonna ask ๐Ÿ˜ƒ

marble hornet
#

@slender iron in send(command, data) for FourWire what is command? not the pin?

meager fog
#

@umbral dagger also you have a a fork of the CPM repo? that way they dont have to make the changes

umbral dagger
#

I've just been fiddling local. Forking and sending in a PR is the next step.

haughty bobcat
#

Iโ€™ve also gotta submit a PR, but for MU. Some time this week. Will be my first. :)

meager fog
#

@umbral dagger ok please do and add to guide, so epople don't bug ya for code help ๐Ÿ˜ƒ

main meteor
#

"epople" is my new favorite word

haughty bobcat
#

Iโ€™ve been making spelling mistakes like that all day.

#

Switching the first and second letter.

main meteor
#

I was working overnight on a project, and kept typing "make" as "amke", so I set an alias to it. The project was called "label", but as the night wore on, I started typing "lable", so I added that to the Makefile as an alternate build target. The next morning, my cow-orker came in to see me typing garbage like "amke lable" and the computer dutifully doing the right thing anyway.

haughty bobcat
#

cow-orker?

#

My new favorite word

#

It seems we are all making spelling mistakes today.

main meteor
#

I believe some engineer at Sun had a similar issue once upon a time, because I was porting some code to another computer and it refused to compile, as a switch statement had a "defualt" case. The Sun C compiler accepted this variant, but the Masscomp one didn't.

haughty bobcat
#

๐Ÿ˜

umbral dagger
#

@meager fog Done.

manic glacierBOT
slender iron
#

@marble hornet what are you trying to do? I don't think its hooked up yet

marble hornet
#

how do i put the Shape on the display?

slender iron
#

make a sprite with it

#

looks for sample code

marble hornet
#

~doing same~

manic glacierBOT
slender iron
#
splash = displayio.Group(max_size=len(fonts) * len(demos)+1)
p = displayio.Palette(2)
p.make_transparent(0)
p[1] = 0xffffff
c = circle.Circle(20)
splash.append(c)```
#
from displayio import Shape

class Circle(Shape):
    def __init__(self, radius, *, filled=False):
        super().__init__(radius, radius, mirror_x=True, mirror_y=True)

        self.set_boundary(0, 4, radius // 2 - 1)
        self.set_boundary(1, 2, radius // 2 - 1)
        self.set_boundary(2, 4, radius // 2 - 1)
#

something like that

marble hornet
#

๐Ÿ‘

manic glacierBOT
marble hornet
#

i just can't get it to work

#

i'll come back to it later, i think i need a break

slender iron
#

breaks are good

#

leaves for a walk

marble hornet
#

is it not dark where you are?

digital slate
#

so got some new boards back in

#

uf2 bootloader comes up fine

#

I had swapped out the NOR flash on board

#

now have the part mentioned in the mpconfigboard.h for the Feather M4 express, the board that I'm trying to emulate

#

but now I'm back to not having CIRCUITPY show up

#

GD25Q16C on the 3.x branch

#

(I had previously gotten the wrong part and the good folks here walked me through recompiling for the W25Q16JV part I had on board)

exotic pumice
#

are you seeing any usb activity?

#

could it be a VID/PID issue?

digital slate
#

oops

#

think I found it

#

will need to test with a soldering iron

#

but it looks like I may have put a cap to ground on to the power pin...but no actual power

#

yeeeep

#

that was it

#

found it without even needing a soldering iron

#

appreciate it though, @exotic pumice !

#

off a-bodging I go!

exotic pumice
#

glad you found it

main meteor
#

Bodging you say? ๐Ÿ˜ƒ

exotic pumice
#

I was wondering if you'd turn up

digital slate
#

bodge done, that's what it was

#

๐Ÿ˜ƒ

slender iron
#

great @digital slate ! glad you got it working

tulip sleet
#
Adafruit Industries - Makers, hackers, artists, designers and engineers!

Spotted on Twitter โ€ฆ TI-Planet | TI-Python: import sys reveals CircuitPython Adafruit!. If weโ€™re reading this correctly the upcoming TI-83 Premium CEย calculator will have a TI-Pythโ€ฆ

tidal kiln
#

โฌ† neat

lone sandalBOT
exotic pumice
#

for a second there I thought this was boolean or not bitwise or and I was really confused as to what this code did

static uint32_t read_word(uint16_t* bmp_header, uint16_t index) {
    return bmp_header[index] | bmp_header[index + 1] << 16;
}
main meteor
#

Heh, I've done that.

#

exclusive or is the odd man out, which adds to the confusion

exotic pumice
#

mm

#

so, ondiskbitmap goes to the spi flash for every pixel? not enough ram?

slender iron
#

yup, slow but scalable

serene cairn
meager fog
#

are you running stock raspbia

#

you may be able to skip that step

serene cairn
#

I am, and I have. I will report back if there are any further gotchas. Thanks!

manic glacierBOT
serene cairn
#

I ran the example "blinka.py" script and it seemed satisfied wi th the environment.

exotic pumice
#

does the python repl have a vi mode?

#

I keep trying to jump to the start and end of what I'm typing

gilded cradle
#

I don't think so, but you can use home/end on pc or fn+left/right on a mac.

#

At least with the one in mu

manic glacierBOT
exotic pumice
#

so far I got the gif header and palette parsed

#

@haughty bobcat

#

I think that's pretty good for today

slender iron
#

nice job @exotic pumice !

exotic pumice
#

thanks

manic glacierBOT
manic glacierBOT
manic glacierBOT
#

@dhalbert this PR may not fix all the scenario, since I don't know how to make them. But it will fix the test in your tinyusb-sd-work branch. Here is the finding I come to

haughty bobcat
#

@exotic pumice So great! :)

#

Iโ€™ll be happy to test anything you have

#

ST7735 and ST7789 is what I have

#

And SSD1306...but those are just monchrome.

#

ST7735 is used on the hallowing...and probably other upcoming Adafruit things like the Gizmo. Iโ€™d focus on that.

stuck elbow
main meteor
exotic pumice
#

I'm just working my way through the w3 spec for now.

manic glacierBOT
manic glacierBOT
manic glacierBOT
tough flax
#

Things are looking great on the XBox controller front - thank you all ๐Ÿ˜ƒ

#

Does anyone have an easy pointer to code that detects "jerks" on the CPX using CP?

manic glacierBOT
tough flax
#

That could be true physics Jerks (the derivative of acceleration) or just "sudden movement in any direction"

idle owl
#

The shake code uses a series of samples and then detects if it exceeds a threshold... Would that help?

tough flax
#

Sure - link?

exotic pumice
#

beat me to it

idle owl
#

The CPX lib calls it from LIS3DH lib, so the CPX lib doesn't have any of the raw code in it.

manic glacierBOT
tough flax
#

Thanks @idle owl

solar whale
#

I'll leave it to you ... good luck!

lone sandalBOT
idle owl
#

@tulip sleet I approved and merged your Learn code.

tulip sleet
#

tnx! still working on the guide

idle owl
#

That's how it goes with "quick" guides ๐Ÿ˜„

tulip sleet
#

this is like the "one minute of video requires one hour of editing" kind of ratio.

prime flower
#

Looks like Mu is getting a a package manager for Raspberry Pi users

manic glacierBOT
solar whale
#

@tidal kiln just a though ton that i2c forum issue -- the user is doing lots of it as sudo, that should not be necessary and may be confusing things.

tidal kiln
#

maybe. it's looking like a module name conflict at this point.

#

and what i posted this morning over in...general? (not sure) doesn't actually work

#

it imports the board package, not module

#
pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from adafruit_blinka import board
>>> dir(board)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
>>> 
lone sandalBOT
solar whale
#

he said he did a pip3 install board which installs the "dojo board" package I think.. same issue as you referred to earlier -- he started over with a new SDCard and it worked!

tidal kiln
#

yep

#

i thought they actually were wanting that other module also? for whatever they're working on.

solar whale
#

yeas they did -- but at least blinka was working -- not sure how to solve the dojo board confict,, not sure what both are needed for -- a virtual env may make it easier to jump back and forth,

tidal kiln
#

but what if you wanted to use whatever that other one is and also use blinka in same program?

solar whale
#

I don't know --- don't do that ๐Ÿ˜‰

#

there is probably a way, need a python guru

tidal kiln
#

yep. i've tried a few things, but can't find anything that works in a non-hackish and simple way.

solar whale
#

ahh -- the user just updated the forum -- clean install worked!

tidal kiln
#

same person?

solar whale
#

not the one wanting both "board" modules

tidal kiln
#

right. just weird to see same generally odd issue twice in one day.

#

meh. matrix glitch.

manic glacierBOT
solar whale
#

โšก

manic glacierBOT
manic glacierBOT
umbral dagger
#

Any comments on this?

        analog_out.value = i```
Shouldn't it be 
```  for i in range(0, 1024):
        analog_out.value = i```
exotic pumice
#

or even for i in range(1024)

umbral dagger
#

Yes. Specifically the use of the analog output. Is it expecting valid values in the upper 10 bits and ignoreing the lower 6? That seems unlikely to me.

exotic pumice
#

I don't know the hardware well enough to answer that one

umbral dagger
#

The guide talks about it getting divided down in the DAC, 'll have to dig into the datasheet... still seems odd.

exotic pumice
umbral dagger
#

@exotic pumice Fast? How so?

#

Speaking of fast I want to run some benchmarks on it to see how much faster than the original hardware is is.

ruby lake
#

Built my CP/M machine in 1984

exotic pumice
#

It doesn't seem that long ago when ladyada first suggested that project. And weren't you working on a bunch of other stuff in between?

umbral dagger
#

I generally have several projects on to go. If one stalls I can work on something else while the first precolates in my subconcious.

main meteor
#

I've done assembler on a 6800 and a few other machines, but not that one.

exotic pumice
umbral dagger
#

I thought I got all those ๐Ÿ˜ฆ

exotic pumice
#

there's 3 of them

ruby lake
umbral dagger
#

@exotic pumice Thanks.. I don't see anymore (or rather page search doesn't ๐Ÿ˜ƒ )

exotic pumice
#

nice

manic glacierBOT
umbral dagger
#

@main meteor My assembly time was 6502 and Z80. A tiny bit of 6800.

exotic pumice
#

6502 assembly is fun. I modded C64 pacman

#

and documented it a bit

umbral dagger
#

I did a bunch of work on the Apple ][ line as well as lots of custom hardware. My Z80 work was pretty much all custom hardware.

exotic pumice
#

cool

raven canopy
#

@umbral dagger did you get your answer from above?

umbral dagger
#

I started out doing hardware; all my coding was in assembly other than the initial learnign using Basic.

#

@raven canopy That just seems to be how it is.

raven canopy
#

from the AnalogOut docs:

value
The value on the analog pin between 0 and 65535 inclusive (16-bit). (write-only)
Even if the underlying digital to analog converter (DAC) is lower resolution, the value is 16-bit.
umbral dagger
#

Ok, that makes sense for a family of MCUs.

#

Each one scales based on the hardware resolution.

raven canopy
#

yeah. i'm not exactly sure why you'd be stepping by 64, but i'm sure the full context would explain that.

#

just did the math. makes sense now. ๐Ÿ˜†

umbral dagger
#

Yeah. I took that out of my example; the SAMD21 is a 10-bit converter, the '51 has a 12=bit.

raven canopy
#

open question: as a user, is 10ms an acceptable interval to get a new reading for frequency capture? values are much smoother & accurate at that rate, vs 1 & 5 ms....

exotic pumice
#

what does that make the max input frequency?

manic glacierBOT
raven canopy
#

haven't gotten there yet. avoiding interrupts has been a challenge. ๐Ÿ˜„ with interrupts, i got up to 64kHz iirc.

exotic pumice
#

it wouldn't have helped me where I wanted frequencyin, but I found out pretty quick I needed a logic analyzer

raven canopy
#

correction..512kHz. 64 was with pulsein i think.

#

yeah, i haven't even started to compare again with the salaea. figuring out any adjustment is later.

raven canopy
#

CTRLB.READSYNC is killing me. forces overflow before the count is updated. factor in the 4+ periods of latency between EIC->EVSYS...i've got math to google. hehe.

exotic pumice
#

syncbusy is the one that always gets me

raven canopy
#

oddly enough, i could never get the wait loop to trigger on it. though, it is still part of the condition.

exotic pumice
#

oops

#

I kinda wanna go to pycascades just to sit down with scott and get stuff figured out

raven canopy
#

hehe. figuring "stuff" out is good. ๐Ÿ˜„

exotic pumice
#

I'm only 3 hours from Seattle

raven canopy
#

math is off...but i'm feeding 4MHz so far with no affect on CP. "One small step..."

exotic pumice
#

you got 4MHz read in correctly?

raven canopy
#

well, its reading as 3.651063 MHz, but that is probably due to my mangling of the math.

exotic pumice
#

now that's useful

raven canopy
#

not locking up CP is my fav part.

exotic pumice
#

anything over 1MHz is pretty useful

#

3 is excellent, neopixel speed

raven canopy
#

hmm. PWMOut doesn't like anything above 6MHz. will probably need to use AudioOut for something of that magnitude. probably a good idea to compare square and sine anyway.

exotic pumice
#

use gclkio

#

it puts a gclk onto gpio

#

I can toss you a bin if you like, I already have it set up

#

or an elf

#

whichever is easier

raven canopy
#

bin works just as well. is it a static frequency, or can i change it?

#

and, 6MHz is reading out as 5.48...

exotic pumice
#

I'd have to recompile to change the clock speed

raven canopy
#

k. i won't turn down free testware at any rate. ๐Ÿ˜„

exotic pumice
#

what speed you want?

#

and 21 or 51?

#

51 is pretty broken atm

#

but I got 6mhz out of it

raven canopy
#
  1. 10MHz if you can. not sure anything in CP can get that high.
exotic pumice
#

is 12 ok? just easier math

raven canopy
#

12 it is!

exotic pumice
#

metro m0 or?

raven canopy
#

currently a feather m0.

exotic pumice
#

ok

#

that works

haughty bobcat
#

@exotic pumice AliExpress is amazing

#

Adafruit is great too but I usually only get made in NYC dev boards because they are always so well designed. Everything else is AliExpress for me

raven canopy
#

hmm. just thought about "max". using a 16 bit TC, i can only count 65535 events per 10ms. need to find out if EVACT.COUNT triggers the overflow. that'll get me at least another 65535 events.

exotic pumice
#

just making a few changes for '21

#

should be 12mhz on d13

#

haven't checked myself yet

raven canopy
#

that...is spooky coincidence. i'm already using D13. ๐Ÿ‘€

#

and, thanks @exotic pumice! that'll come in handy as i tighten this up.

exotic pumice
#

not working for me unfortunately

raven canopy
#

@exotic pumice don't spend too much time fiddling. if you had 6mhz working, that one will do fine too. still a good alternative for testing. now, time to sit down with my brain-math-cells and new, steady data.

exotic pumice
#

I had 6 mhz on metro m4 but dan tried the same bin and got like 1.5 so I don't think that one is helpful

raven canopy
#

alright. i'll give the 12MHz one a go soon, and see what i get.

#

i mean, as long as i can get the actual output with the salaea, i can bounce results against it.

exotic pumice
#

oh, I know what it is!

#

I forgot I had to change something elsewhere to get this to work on m4

raven canopy
#

bit vs vec? i have so many #ifdefs for that. ๐Ÿ˜„

exotic pumice
#

this is rust, no, I have to enable io on the clock

#

inside the hardware abstraction library

#

now if only the docs would stop crashing my browser

#

tested working at 12mhz

#

bossac -e -w -v -b -R -o 0x2000 clock_out.bin

#

you guys should think about adding gclk_io support for circuitpython, all you have to do is set up a specific gclk depending which pin you're using, and then put the pin in function h on 21 or function m on 51

#

and have oe enabled on the gclk

#

want me to rewrite pulse_out?

#

not sure about the duty cycle bit

#

alternatively, FrequencyOut

#

maybe not a great idea considering how many gclks you guys end up using for other stuff

#

it's super freaking useful though

raven canopy
#

i'd talk to Scott or Dan about that. there may be room GCLK wise; just need to handle checking for availability.

#

i mean, the framework is there in samd-peripherals. with this new setup, i may even be able to abandon spinning up DPLL1 on the M4.

exotic pumice
#

Another atsamd-rs dev and I were wondering what you guys were using DPLL1 for

raven canopy
#

it isn't used at the moment on master. DPLL0 is, but i forget what its latched to. I grabbed it to fix accuracy when i was using the TC's "internal" capture; open DFLL was drifting the numbers badly.

exotic pumice
#

DPLL0 is DFLL * 2.5

#

which is the main clock

#

120MHz

raven canopy
#

might be...yep, main clock.

#

didn't want to boldly state it, since i couldn't remember for sure. ๐Ÿ˜„

exotic pumice
#

this is the stuff I've been working on for a while so I know it well

#

I even know that the ldr is 59 to make it 2.5x

raven canopy
#

i took such a long break from this, i forgot most of what i learned going though that. which was also the only time i've dug into setting clocks, so no other retention there.

exotic pumice
#

I think it's harder on atsamd than other vendors

raven canopy
#

if i could go back in time, i would force younger me to dig closer to the metal and not rely on all the high-level magic. โฒ

#

alright, brain shutdown time. ๐Ÿ‘‹

exotic pumice
exotic pumice
#

come to the rust side, we have small binaries.

manic glacierBOT
manic glacierBOT
manic glacierBOT
tough flax
#

Thank you @tulip sleet and @split ocean for your help with this

manic glacierBOT
lone sandalBOT
manic glacierBOT
sacred edge
#

Need Help \ Explanation with my code...

tulip sleet
#

@sacred edge you can post your code. The #help-with-circuitpython channel is slightly more appropriate and might have more eyes open right now.

manic glacierBOT
sacred edge
#

ok.. Thanks

solar whale
#

@tulip sleet trying to reproduce the crash on the nrf52840 w/o USB -- so far it seems to work well

tulip sleet
#

It was really odd. I wasn't intentionally trying to do that. I just touched the USB plug to the socket when I was about to plug it in and it crashed. But it was hard to reproduce. This may not be related to the tinyusb code at all.

solar whale
#

are you tryin to connect to USB while it is running?

tulip sleet
#

yes, I wanted to see if it behaved ok in that situation

#

admittedly not something that would happen a lot in real life

solar whale
#

first try survived ๐Ÿ˜‰

#

so did second -- I'll quit while I'm ahead!

tulip sleet
#

I had to do the tapping a dozen times to make it happen.

#

it might be static or something, though this room is not very staticky.

manic glacierBOT
#

I have added re-init usb hardware after sd is disabled/enabled. This will help usb to detect vbus while disable/enable bleio dynamically. I do a bit of testing, but you should test it there to be sure.

@hathach Will the re-init cause a USB disconnect/reconnect/re-enumeration from the host's point of view? This is OK but I just want to know, so we do an SD disable/enable only when necessary.

Since @jerryneedell's testing is working out, we can merge this for now unless you have further ...

#

FYI - I just put pr 1503 on my feather_nrf52840 attached to a crickit and it is working with USB disconnected -- power via 5V wall wart on crickit. I have not been able to reproduce Dan's crashes.

Thanks @jerryneedell for testing it out :+1: :+1:

@hathach Will the re-init cause a USB disconnect/reconnect/re-enumeration from the host's point of view? This is OK but I just want to know, so we do an SD disable/enable only when necessary.

Since @jerryneedell's testing is working...

sacred edge
#

CPX A0 appears to be dead..

manic glacierBOT
celest zenith
#

How do I fix "fatal: no tag exactly matches 'xxx'" I assume it is an out of date submodule but I can't seem to find the right git incantation.

solar whale
#

@celest zenith try ```git submodule update --init --recursive
git submodule foreach --recursive 'git fetch --tags'
git submodule sync

#

or some combination of those incantations ๐Ÿ˜‰

manic glacierBOT
celest zenith
#

@solar whale thanks

#

The foreach was the trick

manic glacierBOT
solar whale
#

I find standing on my left foot helps too ๐Ÿ˜‰

inland tusk
#

@slender iron is the usb-midi included in version 4 yet?

stuck elbow
#

it is

manic glacierBOT
half pendant
#

I some how caused my Metro Express M0 CPU to start smoking. I unplugged it right away and removed all the wires I had plugged in. It has cooled down now, but every time I plug it back into my computer, the CPU starts heating up and the board doesn't show up in my file management window on my computer even when I put into BootLoader mode.

#

Any help?

#

The neopixel light is also red.

#

I think it might have been plugged into a bad 9V battery

#

Does anyone know of a way to save the board?

main meteor
#

It could be a power supply issue (like the voltage regulator), but I suspect that CPU chip is ruined, and the only way to fix the board would be to replace the CPU. If you have hot air rework facilities and a source of SAMD21 chips, it should be doable but somewhat fiddly.

half pendant
#

that is way over my head. bummer.

exotic pumice
#

@slender iron should I add FrequencyOut to my list?

main meteor
#

That was a nice thing about the original DIP Arduinos: it was easy to unplug the CPU chip and replace it.

half pendant
#

The DC jack doesn't work anymore, but the board still powers from my computer. Does that mean that the problem was through the DC jack?

#

aka the battery?

main meteor
#

Hmm. When you said "every time I plug it back into my computer, the CPU starts heating up", I figured it didn't work from the computer.

#

It may be the DC power circuitry then.

half pendant
#

The board turns on with the USB, but i cannot get it to do anything and the CPU starts getting really hot.

#

Do you still think it is a lost cause?

manic glacierBOT
main meteor
#

Sadly, that seems the most probable to me. ๐Ÿ˜ฆ Perhaps someone else here more familiar with the board may have a better idea.

manic glacierBOT
half pendant
#

okay. Thanks anyway.

manic glacierBOT
lone sandalBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
raven canopy
manic glacierBOT
slender iron
#

@exotic pumice I don't think we need a frequencyout. pwmout should be able to do it

exotic pumice
#

ok, just thought maybe for higher frequencies

#

gclk_io can do any speed the gclks can, like 120+ MHz

#

and it's super easy to set up, but if you don't think it'd be useful I understand

manic glacierBOT
slender iron
#

ya, I usually just do it in the C when I need

ruby lake
#

I think I am #921 ๐Ÿ˜‰

manic glacierBOT
#

the code below returns this error:

Traceback (most recent call last):
File "main.py", line 39, in <module>
File "/file_location", line ###, in val
AttributeError: 'super' object has no attribute 'val'

class parent():
    def __init__(self, initval):
        self._val = initval

    @property
    def val(self):
        return self._val

    @val.setter
    def val(self, valin):
        self._val = valin
        print('in parent')

def child(parent):

    @prope...
manic glacierBOT
manic glacierBOT
manic glacierBOT
#
[adafruit/circuitpython] New branch created: tannewt\-patch\-8
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
#

So, I am trying to add a custom port for an atmel-samd based board (SAMD21), and a lot of work for that has already been done - great!

The problem I am facing is that, due to my larger bootloader (0x4000 instead of 0x2000) the compiled code doesn't fit. I also want to try to add in some other features which would also need up more flash.

So.....what better idea than to reduce the size of the flash filesystem! And...on we go down the rabbit hole. As it turns out, the flash filesystem...

manic glacierBOT
#

Can you interact with the file system from the REPL?

It appears to be blank, just nothing there. while mkdir and chdir don't error, os.getcwd() still just "/", so probably borken

I'm not sure what you asking about CIRCUITPY_INTERNAL_NVM_SIZE.

The name of that #define kinda implies to have to do something with the flash. Looking more into it, on non-express-boards it seems to be set to 0, and on [express-boards](https://github...

manic glacierBOT
manic glacierBOT
manic glacierBOT
umbral dagger
#

Anyone want to test out a bit-bang SPI library for RaspPi & the like (I.e. using blinka) ? https://github.com/dastels/adafruit_python_bbspi
Bundled in that repo is example code for the BME280 but it'd be good to see it working with other sensors, especially using modes 1 & 2. (The BME280 can use 0 & 3, which it's bee tested with)

manic glacierBOT
manic glacierBOT
slender iron
#

<@&356864093652516868> My plan is to stream debugging tomorrow afternoon starting around 2pm Pacific.

manic glacierBOT
manic glacierBOT
marble hornet
#

@slender iron I don't know how many HS students are in here but we often get our right at 2:00. I'll be able to come but that is a very popular dismiss time in and around mass

#

Just to put it out there: I don't think too big of a concern

slender iron
#

I'm thinking it'll be 2-3 hours so you should be fine

manic glacierBOT
#
[adafruit/circuitpython] New branch created: tannewt\-patch\-9
solar whale
#

@slender iron where will the stream be -- any special tools/acoounts needed to access?

#

ohh -- just realized its at 2PM PST -- may not work, but I'll see. No worries...

umbral dagger
solar whale
#

@umbral dagger will try to find time to try the bbspi tomorrow or over the weekend.

gilded cradle
#

Nice

slender iron
#

@solar whale I'll do it on my twitch and record it like last time

modern wing
#

I'll try to watch -- now that my work certifications are completed (passed them today), I can come out of hibernation.

main meteor
#

Congrats! That had to be frustrating.

modern wing
#

Thank you -- they push recerts on each person every few years. It's a memorization test....and a test of the english language.

Choose the "best" answer of four options -- 1 is totally wrong, 3 are correct. Which one is technically the "most" correct?

#

I shouldn't have even been on here the last few weeks, but I had to get my nose out of the PDFs.

solar whale
#

so -- you are now certifiable ๐Ÿ˜‰

modern wing
#

Oh @solar whale, been that way for far too long! ๐Ÿ˜›

main meteor
#

Oof, I hate tests that are basically mindreading tests.

modern wing
#

I've taken enough of them to know exactly what I was getting into. And this is one of the more comprehensive ones we have.

Normally a 40 hour class + tons of study. All on one's own.

#

But it is DONE. ๐ŸŽŠ๐ŸŽ‰

manic glacierBOT
manic glacierBOT
manic glacierBOT
solar whale
#

@umbral dagger I'm a bit confused. does using the bbspi require a modified version of each sensor library? I see you have one for the bme280.

umbral dagger
#

That's TBD

#

The thought at the moment is that the module will be adafruit_bitbangio

marble hornet
#

@umbral dagger

#

oops type

#

typo

#

sorry

manic glacierBOT
manic glacierBOT
solar whale
#

@slender iron on Hallowing with PR_1513 should anything be seen on the screen at boot?

slender iron
#

ya, I think so

solar whale
#

hmm -- I did not see anything -- what should I expect?

slender iron
#

a blinka

#

I can double check a bit later

#

I may not have it setup quite right

solar whale
#

ok -- no rush -- just curious -- displayio is kind of mysterious to me ....

slender iron
#

ya, I realize I haven't taught it well

#

ya, I see what its missing

#

in code.py you can do board.DISPLAY.show(None)

solar whale
#

ok will try

#

another FYI my existin slide show now gives ```Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 29, in <module>
ValueError: TFT_BACKLIGHT in use

slender iron
#

yup, it's built in display handles it now

#

so you don't need to pass it into slideshow

solar whale
#

ok -- I'll do some updates - BTW using code.py with just ```
import board
board.DISPLAY.show(None)

slender iron
#

hrm, it should at least show the blinka. lemme brush my teeth and then I'll try it

solar whale
#

ok -- sorry for all the intteruptions -- no rush

slender iron
#

np, I'm happy to have you testing it

#

@solar whale try this uf2

solar whale
#

ok -- will try in about 5 min

slender iron
#

kk

manic glacierBOT
solar whale
#

hmm -- sorry - still don't see anything - should I have code.py or no with this build?

manic glacierBOT
solar whale
#

@slender iron not having much luck I also do not se anythin on screen when I run this ```import board
from adafruit_slideshow import PlayBackOrder, SlideShow
import pulseio

Create the slideshow object that plays through once alphabetically.

slideshow = SlideShow(board.DISPLAY, None, folder="/",
loop=False, order=PlayBackOrder.ALPHABETICAL)

while slideshow.update():
pass

slender iron
#

weird

slender iron
solar whale
#

great song!

slender iron
#

haha, ๐Ÿ˜ƒ

solar whale
#

do I need anythin on the board besides slideshow.mpy

slender iron
#

it shouldn't need anything

solar whale
#

and my .pngs

slender iron
solar whale
#

just erased filesytem and rebooted -- nada

#

ooohh -- it works on battery!!

#

not on USB!

slender iron
#

hrm, that's weird

solar whale
#

now it is working on USB --- very odd -- just had to unplug

slender iron
#

possible the display got unhappy

#

looks to see if we software reset the display

#

yup, looks like we try to

solar whale
#

ok -- slideshow works now too ...

#

was your build from pr 1513 as is or did you have to fix something?

#

nevermind -- just pulled/built master -- works fine!

slender iron
#

ya, I think its stock

solar whale
#

thanks for the help -- guess it just needed a power cycle

slender iron
#

np ๐Ÿ˜ƒ

#

k, errands, lunch then streaming

manic glacierBOT
solar whale
#

@tulip sleet do you have a simple example of what the new BUTTON_x definitions are used for -- I'm just not seeing it ... the pythonic side of my brain is not working.

idle owl
#

@solar whale I think like this, though I haven't tested it: ```from adafruit_ble.uart import UARTServer
from adafruit_bluefruit_connect.packet import Packet
from adafruit_bluefruit_connect.button_packet import ButtonPacket

uart_server = UARTServer()

while True:
uart_server.start_advertising()
while not uart_server.connected:
pass

# Now we're connected

while uart_server.connected:
    if uart_server.in_waiting:
        packet = Packet.from_stream(uart_server)
        if isinstance(packet, ButtonPacket):
            if packet.pressed:
                if packet.BUTTON_1:
                    # The Up button was pressed.
                    print("1 button pressed!")
                elif packet.BUTTON_2:
                    # The Down button was pressed.
                    print("2 button pressed!")

# If we got here, we lost the connection. Go up to the top and start
# advertising again and waiting for a connection.
#

or it might even eliminate the packet.pressed, I haven't checked

solar whale
#

ah OK -- but the old way of packet.button == '1' still works -- just add the new .BUTTON_1 is an option

idle owl
#

I believe so yes.

solar whale
#

thanks -- now I'll go back and look at the code to see if I understand it better ...

solar whale
#

hmm tried a quick test and all presses act like BUTTON_1 -- I may be doing it wrong ...

tulip sleet
#

no, should be packet.button == ButtonPacket.BUTTON_1. It's just a name for the string "1"

#

maybe I messed up the example?

solar whale
#

there is no example, is there?

tulip sleet
#

uh, no, sorry

solar whale
#

np

tulip sleet
#

it's just the string, just the code

#

like a keycode.

solar whale
#

ok --long winded way to type '1'

tulip sleet
#

right, because nobody knows that "5" is UP

solar whale
#

๐Ÿ˜‰

idle owl
#

Ah.

tulip sleet
#

without looking at the Bluefruit LE Connect guide

solar whale
#

now I get it!!

idle owl
#

could import the buttons, and then it would simply be BUTTON_1.

#

er.. no it wouldn't.

tulip sleet
#

could do a from ButtonPacket import *, but I don't think it's worth it

idle owl
#

noop.

#

I don't like it that way

solar whale
#

OK -- now it works ๐Ÿ˜ƒ

#

What causes a "Reload Exception" I often get one after reboot -- just once then no more

slender iron
#

the os writing to the disk

solar whale
#

oh -- not waiting long enough after copying new file I guess

slender iron
#

just using that instead of a keyboard interrupt you don't trigger

solar whale
#

ok - but I copy a new code.py -- it reboots -- I connect my bluetooh app then it does the reload trap and reboots - and disconnects

#

does it always reboot twice?

#

usually not connected to see it.

slender iron
#

it depends on the os

solar whale
#

ah -- ok -- I am not used to using code.py so have not paid attention to it much.

slender iron
#

<@&356864093652516868> gonna start streaming in the next few minutes

pastel panther
#

@slender iron on twitch?

solar whale
#

@slender iron I'll just be on for the first bit -- sorry I can't stay

slender iron
#

yup

modern wing
#

thanks for the heads up

slender iron
#

will be in the voice channel but won't record it

modern wing
#

You're live

solar whale
#

Thanks - great stuff! sorry I can't stay -- good luck!

pastel panther
#

turning into a ๐ŸŽƒ , ttyl ๐Ÿ‘‹

modern wing
#

I've been paying half attention -- got pulled for some stuff and focused on that. But I'm mostly mentally here now (if I ever was to begin with).

raven canopy
#

i tried to math during this. reading code has much more gravity.. ๐Ÿ˜„

modern wing
#

I'm weak on memory allocation -- did it once a few years ago. I understood like 40%-50% of what was being discussed today.

#

The other 50-60%? -scratches head in confusion-

manic glacierBOT
manic glacierBOT
manic glacierBOT
manic glacierBOT
exotic pumice
#

I got to the hard part of the gif loader, decompressing the image data

#

and I can't even temporarily skip it to see what else I can work on because I don't know the size of the image data

solar whale
#

@slender iron very nice! Trying displayio on 2.4 inch TFT w/feather m4... lots to learn but off to a good start!

solar whale
manic glacierBOT
marble hornet
#

could you post some example code if you have the chance?

#

@solar whale

#

please

solar whale
#

for the initial startup -- based on an old example from Scott -- may not be fully up to date - but it works

#

for the text writing demo - I had to modify adafruit_display_text.py to change Sprites to TileGrid then I ran this to print some text, make a box, move the text, change colors. again based on a possibly outdated example - your mileage may vary ๐Ÿ˜‰

manic glacierBOT
manic glacierBOT
pastel panther
#

hey @slender iron I'm going to start on the cp32/wrover

manic glacierBOT
slender iron
#

@pastel panther awesome! I haven't gotten to it. I've been working on keyboard support

pastel panther
#

almost done with the new footprint; making some updates so I can get a decent stencil

slender iron
#

nice!

idle owl
#

@gilded cradle Regarding CharLCD, I think something changed in pulseio because this isn't the first time this has popped up. Please make a note in that PR that the failure is unrelated and go ahead and merge. Then file an issue on the lib about it and we can look into it more deeply next week.

#

@gilded cradle Nevermind, Ladyada already submitted a fix for it.

gilded cradle
#

Thanks, I was afk. Just got back though.

idle owl
#

No worries!

marble hornet
#

Thanks jerryn

manic glacierBOT
manic glacierBOT
carmine kestrel
#

OK

#

if i wanted to make a custom build of circuitpython ?

solar whale
manic glacierBOT
carmine kestrel
#

i mean i need to make a full image of the cirtuitpython afaik

carmine kestrel
#

like compile it

solar whale
#

@carmine kestrel see this guide for mre information

carmine kestrel
#

๐Ÿ˜›

solar whale
#

yes

carmine kestrel
#

thanks

#

fun with custom USB yay!

solar whale
#

I hope that helps - I may have misunderstood your question.

carmine kestrel
#

yup

#

i was looking for the info in a readme in the repo

#

didn't see it

#

wasn't clear from the output of make with no arguments

#

๐Ÿ˜›