#i am still abit confuesd what you eman
1 messages ยท Page 1 of 1 (latest)
lol
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
... 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
make sure your editor saves immediately and the code is what it should be ?
ohhh vissual code is a bit lazy with that, i totally forgot -.-
there's an option or a plugin for that I think ?
now it works jsut fine
had to remove the encode thingy since usb_cdc return bytes and not a string
right
! taerg skooL
using oversized grid layout that i move around depening on inputs
I have sample code that I tend to share to show serial communication in CP:
https://github.com/Neradoc/circuitpython-sample-scripts/tree/main/serial
did you try out HID by chance?
there's many guides using HID
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
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 ?
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
what timing are we talking about ?
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
hmmm all I know is that HID polls every 8 ms with the current implementation I believe
ohh okay
you could compile a version with 1ms, somebody was doing it
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 -.-
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
since when ?! where ? ! O_o
last time i did a build setup was 1 or 2 years ago
always was a pain
i hopy mine is still working
at least I think
there is a "windows build" action in the CI, that tests one board per port to catch errors
i tried setting it up but reverted back to using a buidl slave pi
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
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
okay
nice hint
last thing i rememebr was a pretty long command line running the docker
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
i have to thank you ๐ it is working now to make my menu library
if you want you can watch here https://discord.com/channels/326937605461770262/701571823988506705 but when my friend joins we will talk about other stuff in german so i hope you dont mind or jsut mute ๐
wait .. enum is not built in ?
let's be honest, it's barely a thing in python to begin with ๐
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 ?
you can always come back later when it's archived