#i am still abit confuesd what you eman

1 messages ยท Page 1 of 1 (latest)

frail cave
#

discord Threads !

barren kernel
#

lol

frail cave
#

I meant that

#

I didn't understand what you meant by "show you code and result in a channel"

#

you meant voice/screenshare I guess

barren kernel
#

... i think i found the issue but i can not understand why it is not crashing give me a second to put the gist togheter

#

that one is odd

#

i have no call "scan_input" in my menu.py but the call seems to not fail !?

#

forgot to rename it

frail cave
#

make sure your editor saves immediately and the code is what it should be ?

barren kernel
#

ohhh vissual code is a bit lazy with that, i totally forgot -.-

frail cave
#

there's an option or a plugin for that I think ?

barren kernel
#

now it works jsut fine

#

had to remove the encode thingy since usb_cdc return bytes and not a string

frail cave
#

right

barren kernel
#

i want to make a menu that i can control via usb and physical buttons

frail cave
#

! taerg skooL

barren kernel
#

using oversized grid layout that i move around depening on inputs

frail cave
barren kernel
#

did you try out HID by chance?

frail cave
#

there's many guides using HID

barren kernel
#

i managed to put together a HID descriptor that presents itself as 5axis 32buttons and exposes a 63byte output to the controllerthat i can interact with via hid-api but hte response time is very ... bad

#

hoped to get some experienced info if i maybe did miss something obvious or it being just that slow

frail cave
#

ah I don't know about that, I haven't dabbled in custom HID descriptors, you should post that back in the help channel

#

define slow ?

barren kernel
#

i send the hid record from the hid api to the device but it seems either the record takes a couple cycles of my main code before it is recognized or the joystick reports are delayed

#

because i use a hidden input byte in the joystick input record

#

as a back talk

frail cave
#

what timing are we talking about ?

barren kernel
#

something like a flow control, i send a record with a number and when i received it in my code i set the hidden byte to the number

#

on my pc i can have up to 5 input records without a change in the hidden byte after sending the output record

#

20ms delay

#

roughly

#

i hoped to control a bunhc of RGB leds with it but 3600b/s is too slow

#

i have read about some sort of streaming mode for HID (especially using midi) to have low latency but there are VERY few informations about that regarding circuitpyhton

frail cave
#

hmmm all I know is that HID polls every 8 ms with the current implementation I believe

barren kernel
#

ohh okay

frail cave
#

you could compile a version with 1ms, somebody was doing it

barren kernel
#

i wish there was a build setup for windows .. i only got a pi that i would have to setup from scratch to do that -.-

frail cave
#

I don't know about streaming mode, you'd have to look into tinyusb, which is the library we use for all things USB

#

it's supposed to work on windows

barren kernel
#

since when ?! where ? ! O_o

#

last time i did a build setup was 1 or 2 years ago

#

always was a pain

frail cave
#

yeah, nobody uses it, so it might be in disrepair...

#

I believe it uses WSL

barren kernel
#

i hopy mine is still working

frail cave
#

at least I think

#

there is a "windows build" action in the CI, that tests one board per port to catch errors

barren kernel
#

i tried setting it up but reverted back to using a buidl slave pi

frail cave
#

so whatever the windows setup of the CI is, it works

#

or it works good enough to pass

barren kernel
#

i will give it a shot again at some point

#

but today is my menu thingy i got the pixel calculations worked out now i needed the vcontrol input

#

and it works nice

frail cave
#

a trick is to make a fork, push to a branch, and let the github CI compile for you into the artifacts, possibly disabling other boards to avoid starting 4000 builds (which is easier said than done)

#

not practical at all in reality

barren kernel
#

okay

#

nice hint

#

last thing i rememebr was a pretty long command line running the docker

frail cave
#

it's useable when changing the config of a board, by enabling/disabling modules, but not to test core C code

#

I used to have a docker image, but I don't use it anymore

barren kernel
#

i have to thank you ๐Ÿ˜„ it is working now to make my menu library

barren kernel
#

wait .. enum is not built in ?

frail cave
#

let's be honest, it's barely a thing in python to begin with ๐Ÿ˜›

barren kernel
#

it kinda is but it is a type that i can yt least check on XD

#

when i leave the thread will it close itself ?

frail cave
#

you can always come back later when it's archived

barren kernel
#

yeah its kinda done, i just wanted to know if i would have to do anything to not clutter the server or something ๐Ÿ™‚

#

thx again have a great weeekend